Re: accessing iostat -x %b with a scripting language






What do you mean by "access"?

A simple way to get the output would be(presuming the 8th column has the
data you want):
iostat -x | awk '{ print $8 }'
This could be redirected to a file or processed ins a shell script etc.

What is it that you want to "do' with the output?

-J



On 5/13/08 12:22 PM, "Iv Ray" <pobox@xxxxxxxxxxxxx> wrote:

Is there a standard way to access, with a scripting language (php, perl,
etc.) the output of -

iostat -x

I am particularly interested in the %b column (HDD utilization).

I am not sure if reading the output and regex-ing the Nth column is the
right approach, or there is a more intelligent one.

Iv
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"

--
Johan Dowdy - CISSP
Senior Systems Administrator
nCircle Network Security

415.318.2880

"Any sufficiently advanced technology is indistinguishable from magic."
-- Arthur C. Clarke

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"