Name

rpcinfo

Synopsis

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

Description

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 it 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 of the RPC services registered on the local machine, use:

$ rpcinfo -p

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

$ rpcinfo -p klaxon

To show all machines on the local net that are running the Network Information ...

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.