[/ICODE]The log file is huge and lot of information, i would like to parse and make a report .
below is the log file looks like:
REPORT DATE: Mon Aug 10 04:16:17 CDT 2017
SYSTEN VER: v1.3.0.9
TERMINAL TYPE: prod
SYSTEM: nb11cu51
UPTIME: 04:16AM up 182 days 57 mins min
MODEL, TYPE, and SN: IBM,9026-P70,01100699F
PROCESSOR TYPE: PowerPC_RS64-II
NUMBER OF PROCESSORS: 4
rmt0 P2/Z1-A5 SCSI 8mm Tape Drive (20000 MB)
Manufacturer................EXABYTE
Machine Type and Model......IBM-20GB
Device Specific.(Z1)........41eA
Serial Number...............60171713
Device Specific.(LI)........A0000004
Part Number.................59H4117
FRU Number..................59H4120
EC Level....................E30396
Device Specific.(Z0)........0180020283000030
Device Specific.(Z3)........
rmt1 P2-I6/Z1-A0 IBM Magstar MP Tape Subsystem
Manufacturer................IBM
Machine Type and Model......03570C11
Serial Number...............0000000A6844
Device Specific.(FW)........544D
Loadable Microcode Level....A0B00E27
tmscsi1 P2-I6/Z1-A6 SCSI I/O Controller Initiator Device
Device Specific.(Z0)........0300
Manufacturer................IBM
Machine Type and Model......PCI SCSI-2UW-0
pci2 P2 PCI Bus
Device Specific.(YL)........P2
Device Specific.(YL)........P2-I7/Q1
ssa0 P2-I7/Q1 IBM SSA 160 SerialRAID Adapter (14109100)
Part Number................. 09L569B
FRU Number.................. 34L5318
Serial Number...............S0237219
EC Level.................... F23699
Manufacturer................IBM053
ROS Level and ID............B800 0000
Loadable Microcode Level....05
Device Driver Level.........00
Displayable Message.........SSA-ADAPTER
Device Specific.(Z0)........SDRAM=064
Device Specific.(Z1)........CACHE=00
Device Specific.(Z2)........UID=006094BE000037F4
Device Specific.(YL)........P2-I7/Q1
ssa1 P2-I8/Q1 IBM SSA 160 SerialRAID Adapter (14109100)
Part Number................. 09L5695
FRU Number.................. 34L5388
Serial Number...............S0270187
EC Level.................... F23699
Manufacturer................IBM053
ROS Level and ID............B800 0000
Loadable Microcode Level....05
Device Driver Level.........00
Displayable Message.........SSA-ADAPTER
Device Specific.(Z0)........SDRAM=064
Device Specific.(Z1)........CACHE=
rmt1 P2-I6/Z1-A0 IBM Magstar MP Tape Subsystem
Manufacturer................IBM
Machine Type and Model......03570C11
Serial Number...............0000000A6844
Device Specific.(FW)........544D
Loadable Microcode Level....A0B00E27
tmscsi1 P2-I6/Z1-A6 SCSI I/O Controller Initiator Device
Device Specific.(Z0)........0300
Manufacturer................IBM
Machine Type and Model......PCI SCSI-2UW-0
pci2 P2 PCI Bus
Device Specific.(YL)........P2
ssa0 P2-I7/Q1 IBM SSA 160 SerialRAID Adapter (14109100)
hdisk0 P2/Z1-A9 16 Bit SCSI Disk Drive (9100 MB)
Manufacturer................IBM
Machine Type and Model......DNES-309170W
FRU Number..................25L3101
ROS Level and ID............53414755
Serial Number...............AJJ55889
EC Level....................F42017
Part Number.................25L1861
Device Specific.(Z0)........000003029F00013A
Device Specific.(Z1)........25L2871
Device Specific.(Z2)........0933
Device Specific.(Z3)........00176
Device Specific.(Z4)........0001
Device Specific.(Z5)........22
Device Specific.(Z6)........F42036
hdisk1 P2/Z1-Aa 16 Bit LVD SCSI Disk Drive (9100 MB)
Manufacturer................SEAGATE
Machine Type and Model......DPSS-309170N
FRU Number..................07N3675
ROS Level and ID............53393347
Serial Number...............ZD11B560
EC Level....................F79851
Part Number.................07N3721
Device Specific.(Z0)........000003029F00013A
Device Specific.(Z1)........07N4912
Device Specific.(Z2)........0933
Device Specific.(Z3)........00231
Device Specific.(Z4)........0001
Device Specific.(Z5)........22
Device Specific.(Z6)........F79851
pdisk0 USSAB540-D4 SSA160 Physical Disk Drive (9100 MB)
Manufacturer................IBM
Machine Type and Model......DRVC09B
Part Number.................34L8483
ROS Level and ID............0023
Serial Number...............680BA636SA
EC Level....................E32094
Device Specific.(Z2)........CUSHA023
Device Specific.(Z3)........34L8483
Device Specific.(Z4)........00068
pdisk01 USSAB540-D4 SSA160 Physical Disk Drive (9100 MB)
Manufacturer................MAC
Machine Type and Model......DRVC09A
Part Number.................34L8483
ROS Level and ID............0023
Serial Number...............680BA636TT
EC Level....................E32094
Device Specific.(Z2)........CUSHA023
Device Specific.(Z3)........34L8483
Device Specific.(Z4)........00068
The output should like this :
SYSTEM: nb11cu51
MODEL: IBM
TYPE: 7026-H70
SN:0110068BF
NUMBER OF PROCESSORS: 4
Total pdisk:2
Total hdisk:2
Total Tape Drive (rmt0,1): 2
SearialRAID adapeter (ssa0,1): 2
Device Manufacturer Machine Type Model FRU Number Serial Number Part Number
hdisk0 IBM DNES-309170W 25L3101 AJJ55889 25L1861
hdisk1 SEAGATE DPSS-309170N 07N3675 ZD11B560 07N3721
pdisk0 IBM DRVC09B NA 680BA636SA NA
pdisk01 MAC DRVC09A NA 680BA636TT NA
rmt0 EXABYTE IBM-20GB 59H4120 A0000004 59H4117
ssa0 09L569A IBM053 34L5318 S0237219 09L569A