Re: accessing iostat -x %b with a scripting language
- From: Johan Dowdy <jdowdy@xxxxxxxxxxx>
- Date: Tue, 13 May 2008 12:47:22 -0700
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"
- Follow-Ups:
- Re: accessing iostat -x %b with a scripting language
- From: Iv Ray
- Re: accessing iostat -x %b with a scripting language
- References:
- accessing iostat -x %b with a scripting language
- From: Iv Ray
- accessing iostat -x %b with a scripting language
- Prev by Date: Re: Converting AVI and MPEG Into Still Images
- Next by Date: Re: rsync'able ports tree instead of csup?
- Previous by thread: accessing iostat -x %b with a scripting language
- Next by thread: Re: accessing iostat -x %b with a scripting language
- Index(es):