Forrest logo
back to the rpcinfo tool

rpcinfo:tldr:d05bd

rpcinfo: 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}
try on your machine

The command rpcinfo -l ${remote_nfs_server_ip} ${mountd} ${2} is used to get information about the RPC (Remote Procedure Call) services available on a remote NFS (Network File System) server.

Let's break down the command:

  1. rpcinfo: It is a command-line utility that allows you to query RPC services on a network.

  2. -l: This option is used to list all registered RPC programs and their version numbers on the specified host.

  3. ${remote_nfs_server_ip}: Here, ${remote_nfs_server_ip} is a placeholder for the IP address or hostname of the remote NFS server. You need to replace it with the actual IP address or hostname.

  4. ${mountd}: Similarly, ${mountd} is a placeholder for the name of the RPC program for mounting file systems on the NFS server. In this case, it is used to specify that we want to get information about the mountd program.

  5. ${2}: This placeholder ${2} is used to specify the version number of the mountd program. 2 is the default version.

So, when you run this command and substitute the placeholders with actual values, it will fetch the information about the mountd program (used for mounting NFS file systems) on the specified remote NFS server.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the rpcinfo tool