LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rpcinfo

Query RPC service registrations

TLDR

Show full table of all RPC services on localhost
$ rpcinfo
copy
Probe portmapper and list all registered programs
$ rpcinfo -p [hostname]
copy
Show concise table of RPC services
$ rpcinfo -s [hostname]
copy
Display rpcbind statistics
$ rpcinfo -m
copy
List entries for a specific service and version on a remote host
$ rpcinfo -l [hostname] [mountd] [2]
copy
Check if a service is available via TCP
$ rpcinfo -t [hostname] [nfs]
copy
Delete registration for a service version (requires root)
$ rpcinfo -d [mountd] [1]
copy

SYNOPSIS

rpcinfo [options] [host]

DESCRIPTION

rpcinfo queries RPC servers and reports registered services. It is primarily used to diagnose RPC connectivity issues and view available network services like NFS, mountd, and other RPC-based services.The tool provides information about program numbers, versions, protocols, and ports for registered RPC services. It can probe specific services to check availability, broadcast to discover services on the network, and manage service registrations.

PARAMETERS

-p host

Probe the portmapper on host and list all registered RPC programs.
-s host
Show concise table of all registered services.
-m
Display rpcbind operation statistics.
-l host program version
List all entries matching the given program and version.
-t host program [version]
Probe the service via TCP using an RPC call to procedure 0.
-u host program [version]
Probe the service via UDP using an RPC call to procedure 0.
-b program version
Make an RPC broadcast and report all responding hosts.
-d program version [transport]
Delete registration for the specified program and version. If transport is specified, unregister only on that transport, otherwise on all transports (root only).
-a servaddress **-T** transport program [version_]
Ping procedure 0 of the specified program at the given universal address on the specified transport.
-T transport
Specify the transport to use (e.g., tcp, udp).
-n portnum
Use portnum instead of the portmapper-assigned port for -t and -u probes.

CAVEATS

Requires rpcbind to be running on the target host. The -d option requires root privileges. The -b broadcast option requires network broadcast support.

HISTORY

Part of standard Unix network utilities for RPC service management. Essential for NFS troubleshooting and configuration.

SEE ALSO

Copied to clipboard
Kai