Question about rstat()

Charles Hannum mycroft at kropotki.gnu.ai.mit.edu
Tue May 28 13:02:57 AEST 1991


In article <5110 at autodesk.COM> troyt at Autodesk.COM (Troy Taylor - Network Dude) writes:

   I'm trying put together a small utility that will check cpu 
   status of remote Sun servers. It seems like the rstat() utility 
   will do the job, except I'm not too sure how to interpret the info...

If that's really all you want, then it looks like you want:

CPU - user     cp_time_0 51130
CPU - nice     cp_time_1 1412
CPU - system   cp_time_2 48213
CPU - idle     cp_time_3 573995

There may be more than four CPU states on your machine, in which case these
will not add up to the total picture.



More information about the Comp.unix.programmer mailing list