sunrpc(n) Tnm Tcl Extension sunrpc(n)_________________________________________________________________NAMEsunrpc - Call and probe selected Sun RPC services.
_________________________________________________________________DESCRIPTION
The sunrpc command allows to call and probe selected Sun
RPC (RFC 1831, RFC 1832) services.
SUNRPC COMMANDsunrpc info host
The sunrpc info command returns a list of all reg-
istered Sun RPC services on host. Each list element
contains the program number, the program version,
the protocol name, the port number and the name of
the RPC service. The command fails, if host is
unknown or if the portmapper does not respond to
our request.
sunrcp probe host program version protocol
The sunrcp probe command tests a Sun RPC service
identified by program version protocol on host by
calling procedure 0. This procedure returns a list
of two elements. The first element is the time
needed to complete the RPC call and the second ele-
ment is a string which describes if the probe was
successful.
sunrpc stat host
The sunrpc stat command makes an rstat RPC call to
host and returns a list of name type value triples
describing the status of the machine. This command
fails if host is not reachable or does not support
the rstat service.
sunrpc mount host
The sunrpc mount command retrieves a list of all
NFS file systems currently mounted from host. Each
element of this list includes the directory name
and the host which exports the directory.
sunrpc exports host
The sunrpc exports command retrieves a list of all
NFS file systems exported by host. Each element of
this list contains the exported directory name and
the list of hosts that are allowed to mount the
exported directory. An empty host list means that
an exported directory can be mounted by everyone.
sunrpc ether host open
Tnm 1
sunrpc(n) Tnm Tcl Extension sunrpc(n)sunrpc ether host
sunrpc ether host close
The sunrpc ether command allows to query an etherd
daemon for ethernet statistics. You first have to
register at the remote etherd using the open com-
mand option. Afterwards, you can query the etherd
which will return a list of name type value triples
describing the packets counted since the last
query. You should unregister at the remote etherd
using the close option once you are no longer
interested in ethernet statistics.
sunrpc pcnfs host info [array]
sunrpc pcnfs host list [array]
sunrpc pcnfs host queue printer [array]
sunrpc pcnfs host status printer array
The sunrpc pcnfs command allows to retrieve printer
status information provided by the pcnfsd daemon.
The first command retrieves the daemon identifica-
tion. The optional array variable will be filled
with details about the supported procedures. The
second command returns the list of all printer
names known by the pcnsfd daemon on host. The
optional array is indexed by printer name and con-
tains additional information about each printer.
The queue subcommand retrieves the printer queue
and returns the actual queue length. Information
about queued print jobs is written to the array
variable if given. The array is indexed by the
queue position and contains information about the
print job in key value pairs. The last pcnfs com-
mand retrieves printer specific status information
about the printer itself. The status is written
into the array variable.
SEE ALSOscotty(1), Tnm(n), Tcl(n)AUTHORS
Juergen Schoenwaelder <schoenw@cs.utwente.nl>
Tnm 2