SUMMARY: Re: iostat -x report -- numbers not changing

From: Adam and Christine Levin (levins@westnet.com)
Date: Thu Aug 19 1999 - 11:26:18 CDT


I had one response, from Benno <benoit@mathematik.uni-marburg.de>, with a
great list of web resources. Thanks!

I ended up on the phone with Sun, and they answered the question. The
problem was that I wanted to see the date/time before spitting out the
iostat info, so I used a quick while loop in shell that ran date and then
iostat -x.

Problem: I always get the same numbers.
Reason: iostat requires an interval over which to report. Without any
such interval, you'll get the statistics from boot time.
Solution: write a small perl script that opens a pipe from iostat -x 2 and
print the date and time every y seconds before spitting out the stuff from
iostat.

Thanks,
-Adam



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:25 CDT