You might want to read man pages and do google - having said that.
You might want to review following command.
Basic syntax for iostat is : iostat <options> interval count
typically if you run it for longer durations you might want to adjust the interval and count
Say I want to run iostat for 24 hours at interval of 10 seconds ... Basic calculation would be --- 24 hours x 60 minutes x 60 seconds = 86400.
That was the timing option I was talking about.
iostat <options> 10 8640
Basic command : iostat -xtc 10 8640
intermediate command : iostat -xtc 10 8640 > mystats & (Send the job in background while I do some other stuff)
Advanced command - You might want to work on that
- using awk script to format the data rows. - You might even want to format it in HTML format.
-c The -c option is exclusive of the -d option and displays only
the CPU usage report.
-t Print the time for each report displayed.
-x Display extended statistics. This option is exclusive of the -p
one, and works with post 2.5 kernels since it needs
/proc/diskstats file or a mounted sysfs to get the statistics.
This option may also work with older kernels (e.g. 2.4) only if
extended statistics are available in /proc/partitions (the ker-
nel needs to be patched for that).
Article I liked
http://www.princeton.edu/~unix/Solar...ot/iostat.html (Notes on Odd Behavior Section) I have yet to verify this on Red Hat environment.