[comp.sys.sun] Question: trying to use rstat

troyt@uunet.uu.net (Troy Taylor - Network Dude) (06/05/91)

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
--

troyt@uunet.uu.net (Troy Taylor - Network Dude) (06/05/91)

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