in reply to Finding out Processor Usage
Monks, correct me if I have platform tunnel vision, but on both my AIX machine and my sun machine I use sar -uto output cpu utilization stats. Very easy to parse. For instance: sar -u 1 10 gives me 10 polls of my cpu utilization (usr, sys, wio and idle) at 1 second intervals, the -o flag lets me specify a file (in binary) to output the stats to, then running sar -f on that file lets me extract the stats. I've heard that on linux the systat package (http://perso.wanadoo.fr/sebastien.godard/) will let you use sar as well.
|