Date: Tue, 13 May 2008 12:47:22 -0700 From: Johan Dowdy <jdowdy@ncircle.com> To: Iv Ray <pobox@verysmall.org>, FreeBSD Questions <questions@freebsd.org> Subject: Re: accessing iostat -x %b with a scripting language Message-ID: <C44F3E5A.99770%jdowdy@ncircle.com> In-Reply-To: <4829EA76.7020806@verysmall.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C44F3E5A.99770%jdowdy>
