accessing iostat -x %b with a scripting language
Johan Dowdy
jdowdy at ncircle.com
Tue May 13 20:20:20 UTC 2008
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 at verysmall.org> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
--
Johan Dowdy - CISSP
Senior Systems Administrator
nCircle Network Security
415.318.2880
"Any sufficiently advanced technology is indistinguishable from magic."
-- Arthur C. Clarke
More information about the freebsd-questions
mailing list