O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

rpcinfo

Synopsis

                  rpcinfo [options] [host] [program] [version]

NFS/NIS command. Report RPC information. program can be either a name or a number. If a version is specified, rpcinfo attempts to call that version of the specified program. Otherwise, it attempts to find all the registered version numbers for the specified program by calling Version 0, and then attempts to call each registered version.

Options

-b program version

Make an RPC broadcast to the specified program and version using UDP, and report all hosts that respond.

-d program version

Delete the specified version of program’s registration. Can be executed only by the user who added the registration or a privileged user.

-n portnum

Use portnum as the port number for the -t and -u options, instead of the port number given by the portmapper.

-p [host]

Probe the portmapper on host and print a list of all registered RPC programs. If host is not specified, it defaults to the value returned by hostname.

-t host program [version]

Make an RPC call to program on the specified host using TCP, and report whether a response was received.

-u host program [version]

Make an RPC call to program on the specified host using UDP, and report whether a response was received.

Examples

To show all the RPC services registered on the local machine, use:

$ rpcinfo -p

To show all the RPC services registered on the machine named klaxon, use:

$ rpcinfo -p klaxon

To show all machines on the local network that are running the Network Information Service (NIS), ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required