OpenSolaris Solaris Forum  
     

Left Nav Register FAQ Members List Default Password Members List Linux Commands Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container
 

Go Back   OpenSolaris Solaris Forum » Solaris General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-06-2011, 03:28 PM
Junior Member
 
Join Date: Jul 2011
Posts: 1
Default iostat -En output formatting

Hi All,

I have a problem extracting the device names 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

Thanks & Regards,
Arun Vijapur

Last edited by arun.vijapur; 07-06-2011 at 03:30 PM. Reason: typo in Title
Reply With Quote
Sponsored Links

Reply

Bookmarks

Tags
-en, errors, formatting, iostat, soft

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:23 PM.


Powered by vBulletin. Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.