rstat.3n (2010 09)

r
rstat(3N) rstat(3N)
int if_ierrors; /* inbound errors on all interfaces */
int if_opackets; /* outbound packets on all interfaces */
int if_oerrors; /* outbound errors on all interfaces */
int if_collisions; /* collisions seen on all interfaces */
unsigned v_swtch; /* total context switches */
long avenrun[3]; /* average number of running jobs */
struct timeval boottime; /* time of last boot */
struct timeval curtime; /* current system time */
};
RPC Info
Program number:
RSTATPROG
XDR routines:
int xdr_stats(xdrs, stat)
XDR *xdrs;
struct stats *stat;
int xdr_statsswtch(xdrs, stat)
XDR *xdrs;
struct statsswtch *stat;
int xdr_statstime(xdrs, stat)
XDR *xdrs;
struct statstime *stat;
int xdr_timeval(xdrs, tv)
XDR *xdrs;
struct timeval *tv;
Procs:
RSTATPROC_HAVEDISK
Takes no arguments, returns long which is true if remote host has a disk.
RSTATPROC_STATS
Takes no arguments, return struct statsxxx , depending on version.
Versions:
RSTATVERS_ORIG
RSTATVERS_SWTCH
RSTATVERS_TIME
WARNINGS
User applications that call this routine must be linked with /usr/lib/librpcsvc.a
. For example,
cc my_source.c -lrpcsvc
AUTHOR
rstat() was developed by Sun Microsystems, Inc.
SEE ALSO
rup(1), rstatd(1M).
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010