1830057 Members
2091 Online
109998 Solutions
New Discussion

iostat & DISK bps

 
SOLVED
Go to solution
Nikee Reddy
Regular Advisor

iostat & DISK bps

Hello,

In our system we have around 60 disks presented. when I run the iostat command I see all the disk IO details including of those disks with '0' IO.

Is there any way for me to find only those disks which has an IO value morethan '0'?

Thanks,
Nikee
3 REPLIES 3
RAC_1
Honored Contributor
Solution

Re: iostat & DISK bps

iostat 4 4|awk '{if($2!=0)print}'

Anil
There is no substitute to HARDWORK
Franky_1
Respected Contributor

Re: iostat & DISK bps

Hi,

use

iostat|awk '$2!="0"{print $0}'

Regards

Franky
Don't worry be happy
Oved
Advisor

Re: iostat & DISK bps

I Think that sar is more accurate than iostat.

try "sar -d "

you will get data for every disk device file, only if it did I/O. You also get an average at the end (after "count" iterations).

Good Luck,
Oved