![Forrest logo](/images/logo.png)
rpcinfo:tldr:208d4
The rpcinfo
command is used to query information about RPC (Remote Procedure Call) services available on a networked system. RPC is a method by which various processes on different systems can communicate with each other over a network.
Here is the general syntax of the rpcinfo
command:
rpcinfo [options] [host]
The command can be executed on a local or remote system, with the following options:
-p
: Lists all the registered programs and the RPC version numbers available on the specified host. This is the most commonly used option.-u
: Queries for UDP-based services.-t
: Queries for TCP-based services.-s
: Queries for services registered with the portmapper.-d
: Enables debug mode.
By default, if no options or host name is provided, rpcinfo
will display information about RPC services on the local system.
The output of the command includes the program number, version number, transport protocol (UDP or TCP), service name, and port number for each RPC program. Other details such as the RPC program's owner, program's arguments, and the protocol presented to the remote service may also be displayed.
The rpcinfo
command helps in troubleshooting RPC-based application connectivity issues, determining which RPC services are available on a system, and obtaining information required for configuring RPC-based applications or services.