Reference

sunrpc(3tnm)

Call and probe selected Sun RPC services.


        
    

    
        

NAME

Tnm::sunrpc - Call and probe selected Sun RPC services.


        
    


        

DESCRIPTION

The Tnm::sunrpc command allows to call and probe selected Sun RPC (RFC 1831, RFC 1832) services.

SUNRPC COMMAND

Tnm::sunrpc info host

The Tnm::sunrpc info command returns a list of all registered 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.

Tnm::sunrpc probe host program version protocol

The Tnm::sunrpc probe command tests a Sun RPC service identified by program version protocol on host by calling procedure 0. This command returns a list of two elements. The first element is the time needed to complete the RPC call (measures in milliseconds). The second list element is a string which describes if the probe was successful.

Tnm::sunrpc stat host

The Tnm::sunrpc stat command makes an rstat RPC call to host and returns a list of name type value triples describing the status of the remote machine. This command fails if host is not reachable or does not support the rstat service.

Tnm::sunrpc mount host

The Tnm::sunrpc mount command retrieves a list of all NFS file systems currently mounted from host. Each element of the list includes the directory name and the host which serves the directory.

Tnm::sunrpc exports host

The Tnm::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.

Tnm::sunrpc ether host open
Tnm::sunrpc ether host stat
Tnm::sunrpc ether host close

The Tnm::sunrpc ether command allows to query an etherd daemon for ethernet statistics. You first have to register at the remote etherd using the open command option. Afterwards, you can query the etherd using the stat command option, 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.

Tnm::sunrpc pcnfs host info [array]
Tnm::sunrpc pcnfs host list [array]
Tnm::sunrpc pcnfs host queue printer [array]
Tnm::sunrpc pcnfs host status printer array

The Tnm::sunrpc pcnfs command allows to retrieve printer status information provided by the pcnfsd daemon. The first command retrieves the daemon identification. 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 contains 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 command retrieves printer specific status information about the printer itself. The status is written into the array variable.

SEE ALSO

scotty(1), Tnm(n), Tcl(n)

AUTHORS

Juergen Schoenwaelder <[email protected]>

History