🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #8256

Question: trying to use rstat()

#8256
From: Troy Taylor - Network Dude
Date: Tue, 04 Jun 1991 18:40
18 lines
1426 bytes
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
--
Technical Details
Message-ID: <3450@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: autodesk!troyt@uunet.uu.net (Troy Taylor - Network Dude)
Newsgroups: comp.sys.sun
Subject: Question: trying to use rstat()
Keywords: No Digest Subjects in Unmoderated Mode
Message-ID: <3450@brchh104.bnr.ca>
Date: 4 Jun 91 18:40:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sunspots, Psuedo-Unmoderated
Lines: 18
Approved: sun-spots@rice.edu
X-Original-Date:    22 May 91 21:35:14 GMT