Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

perfmeter(1)

rup(1C)

rstatd(8C)

RSTAT(3R)  —  RPC SERVICES

NAME

rstat, havedisk − get performance data from remote kernel

SYNOPSIS

#include <rpcsvc/rstat.h>
havedisk(host)
char ∗host;
rstat(host, statp)
char ∗host;
struct statstime ∗statp;

DESCRIPTION

Havedisk returns 1 if host has a disk, 0 if it does not, and −1 if this cannot be determined.  Rstat fills in the statstime structure for host, and returns 0 if it was successful. The relevant structures are:

struct stats {/∗ RSTATVERS_ORIG ∗/
int cp_time[CPUSTATES];
int dk_xfer[DK_NDRIVE];
unsigned v_pgpgin;/∗ these are cumulative sum ∗/
unsigned v_pgpgout;
unsigned v_pswpin;
unsigned v_pswpout;
unsigned v_intr;
int if_ipackets;
int if_ierrors;
int if_opackets;
int if_oerrors;
int if_collisions;
};
struct statsswtch {/∗ RSTATVERS_SWTCH ∗/
int cp_time[CPUSTATES];
int dk_xfer[DK_NDRIVE];
unsigned v_pgpgin;/∗ these are cumulative sum ∗/
unsigned v_pgpgout;
unsigned v_pswpin;
unsigned v_pswpout;
unsigned v_intr;
int if_ipackets;
int if_ierrors;
int if_opackets;
int if_oerrors;
int if_collisions;
unsigned v_swtch;
long avenrun[3];
struct timeval boottime
};
struct statstime {/∗ RSTATVERS_TIME ∗/
int cp_time[CPUSTATES];
int dk_xfer[DK_NDRIVE];
unsigned v_pgpgin;/∗ these are cumulative sum ∗/
unsigned v_pgpgout;
unsigned v_pswpin;
unsigned v_pswpout;
unsigned v_intr;
int if_ipackets;
int if_ierrors;
int if_opackets;
int if_oerrors;
int if_collisions;
unsigned v_swtch;
long avenrun[3];
struct timeval boottime;
struct timeval curtime;
};

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

SEE ALSO

perfmeter(1), rup(1C), rstatd(8C)

Sun Release 3.5  —  Last change: 10 August 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026