Solaris CPU load from Perl

From: alex dyas (adyas@twowaytv.co.uk)
Date: Thu Jun 06 2002 - 13:54:18 EDT


Hi all,

(Env - Solaris 2.7 and 2.8)

I'd like to be able to determine the CPU's busy/idle states through
Perl, much like the readout of top. A few attempts have so far proven
fruitless:

- vmstat - this is fine on machines that haven't been up for long, but
there is a problem after a few months that causes negative numbers to
appear for some of the values. i can't rely on this. (
http://www.sunmanagers.org/archives/2000/1277.html )

- Solaris:: packages. The script needs to be portable so I don't want to
have to install packages everywhere.

Any comments/suggestions appreciated.

Alex...

-- 
-= alex dyas - webmaster - twowaytv - uk =-
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:25 EDT