Quote:
Originally Posted by bichonfrise74
Hi,
I'm writing a script which parses the iostat and transform it to something more meaningful. My question is whether the output of iostat specifically iostat -x is the same for all Linux distribution.
If they are not the same, is the difference because of the linux version or because of the iostat version?
Thanks.
|
Even basic commands can have differences between distributions. The version of iostat will be different between versions and further different distributions like debian and red hat also often make minor modifications of the programs also. You cannot count on them displaying the information the same way every time.
Additionally, I've seen several customized versions of sysstat floating around, so I would be exceptionally careful about making any assumptions. That being said, here's output of iostat -x on my debian lenny system.
Code:
core:~# iostat -x
Linux 2.6.26-1-686 (core) 04/24/2009 _i686_
avg-cpu: %user %nice %system %iowait %steal %idle
2.54 0.00 0.28 1.16 0.00 96.02
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 0.08 10.76 1.02 9.61 27.81 164.15 18.06 0.40 37.48 1.48 1.57
sda1 0.00 0.00 0.00 0.00 0.00 0.01 49.36 0.00 17.30 5.29 0.00
sda2 0.00 0.00 0.00 0.00 0.01 0.01 47.86 0.00 5.71 4.52 0.00
sda3 0.08 10.75 1.01 9.61 27.80 164.13 18.06 0.40 37.49 1.48 1.57