← 返回命令列表

Linux command

rpcinfo 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show full table

rpcinfo

Probe portmapper

rpcinfo -p [hostname]

Show concise table

rpcinfo -s [hostname]

Display rpcbind statistics

rpcinfo -m

List entries for a specific service and version

rpcinfo -l [hostname] [mountd] [2]

Check if a service is available

rpcinfo -t [hostname] [nfs]

Delete registration

rpcinfo -d [mountd] [1]

说明

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.

参数

-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 _serv_address_ -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.

FAQ

What is the rpcinfo command used for?

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.

How do I run a basic rpcinfo example?

Run `rpcinfo` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _host_ do in rpcinfo?

Probe the portmapper on host and list all registered RPC programs.