I have a problem extracting the device names on Solaris 8 SPARC when using 'iostat -En' command since the device names are too long.
For example :
iostat -en output
---- errors ---
s/w h/w trn tot
0 1 0 1 c6t50060E8005BDEC37d124
iostat –En ouput
c6t50060E8005BDESoft Errors: 0 Hard Errors: 1 Transport Errors: 0
Vendor: HP Product: OPEN-V -SUN Revision: 6005 Serial No: 50 0BDEC01D2
Size: 36.20GB <36203397120 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
When I use iostat -En
as you can see c6t50060E8005BDEC37d124
has become c6t50060E8005BDESoft
.
How can I format it to be displayed as shown below:
c6t50060E8005BDEC37d124 Soft Errors: 0 Hard Errors: 1 Transport Errors: 0
Vendor: HP Product: OPEN-V -SUN Revision: 6005 Serial No: 50 0BDEC01D2
Size: 36.20GB <36203397120 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
And I want to use -E
option as I need to check for 'Product' value, please don't suggest to use -en