rpcinfo: command not found

rpcinfo is a command-line utility that allows users to make Remote Procedure Call (RPC) calls to RPC servers and report information about the services they provide. RPC is a protocol used for communication between client and server processes on a network.

Here are some of the main features of rpcinfo:

  • Make RPC calls: rpcinfo allows users to make RPC calls to remote servers and report information about the services they provide.
  • Querying remote services: rpcinfo can be used to query a remote server to determine which RPC services it provides, and to report information about those services, such as their version numbers, transport protocols, and endpoints.
  • Troubleshooting: rpcinfo can be used to troubleshoot RPC-related issues by verifying that RPC services are running and that clients can connect to them.
  • Simple and powerful: rpcinfo is a simple yet powerful tool that can provide valuable information about RPC services on a network.

If you encounter the below error while running the command rpcinfo:

rpcinfo: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install rpcbind
Ubuntu apt-get install rpcbind
Alpine apk add rpcbind
Arch Linux pacman -S rpcbind
Kali Linux apt-get install rpcbind
CentOS yum install rpcbind
Fedora dnf install rpcbind
Raspbian apt-get install rpcbind

rpcinfo Command Examples

1. Show full table of all RPC services registered on localhost:

# rpcinfo

2. Show concise table of all RPC services registered on localhost:

# rpcinfo -s localhost

3. Display table of statistics of rpcbind operations on localhost:

# rpcinfo -m

4. Display list of entries of given service name (mountd) and version number (2) on a remote nfs share:

# rpcinfo -l remote_nfs_server_ip mountd 2

5. Delete the registration for version 1 of the mountd service for all transports:

# rpcinfo -d mountd 1

Summary

Overall, rpcinfo is a useful tool for system administrators and developers who need to work with RPC services on a network. Its ability to make RPC calls, query remote services, and report information about those services makes it a versatile tool that can be used in a variety of applications.

Related Post