RPC Library Functions rstat(3RPC)
NAME
rstat, havedisk - get performance data from remote kernel
SYNOPSIS
cc [ flag ... ] file ... -lrpcsvc [ library ... ]
#include
#include
enum clntstat rstat(char *host, struct statstime *statp);
int havedisk(char *host);
PROTOCOL
/usr/include/rpcsvc/rstat.x
DESCRIPTION
These routines require that the rpc.rstatd(1M) daemon be
configured and available on the remote system indicated by
host. The rstat() protocol is used to gather statistics from
remote kernel. Statistics will be available on items such
as paging, swapping, and cpu utilization.
rstat() fills in the statstime structure statp for host.
statp must point to an allocated statstime structure.
rstat() returns RPCSUCES if it was successful; otherwise
a enum clntstat is returned which can be displayed using
clntperrno(3NSL).
havedisk() returns 1 if host has disk, 0 if it does not, and
-1 if this cannot be determined.
The following XDR routines are available in librpcsvc:
xdrstatstime
xdrstatsvar
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 30 Dec 1996 1
RPC Library Functions rstat(3RPC)
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level MT-Safe
SEE ALSO
rup(1), rpc.rstatd(1M), rpcclntcalls(3NSL), attributes(5)
SunOS 5.11 Last change: 30 Dec 1996 2
|