Question: trying to use rstat()
Troy Taylor - Network Dude
autodesk!troyt at uunet.uu.net
Wed Jun 5 04:40:00 AEST 1991
We're trying to run a simple C routine that can gather CPU usage of remote
Sun machines; a simple monitoring program, like Sunview perfmeter.cpu, but
instead it will give text output. It should give output similar to a
vmstat command, except I want to make sure that the routine gets it's info
from rstatd and not a simple rsh command to the host...
In trying to use the rstat() function to gather CPU usage, the function
returns a successful return, but the structure values are static. None
of the values ever change on a given host. _Not right_... What am I missing
here? Is there a utility that I'm not aware of that will already do this
sort of thing? The machines we're running are using SunOS 4.1. Any pointers
will be appreciated...
If there is any interest, I will forward any discoveries via mail. I do not
have time to query these news groups, so please send any responses via mail.
..thanks
--
More information about the Comp.sys.sun
mailing list