1 .\" @(#)rpcinfo.1m 1.23 93/03/29 SMI; from SVr4
2 .\" Copyright 1989 AT&T
3 .\" Copyright 1991 Sun Microsystems, Inc.
4 .\" $NetBSD: rpcinfo.8,v 1.6 2000/06/02 23:19:38 fvdl Exp $
5 .\" $FreeBSD: src/usr.bin/rpcinfo/rpcinfo.8,v 1.9 2002/10/16 15:38:28 charnier Exp $
6 .\" $DragonFly: src/usr.bin/rpcinfo/rpcinfo.8,v 1.3 2005/08/01 01:49:18 swildner Exp $
13 .Nd report RPC information
55 utility makes an RPC call to an RPC
56 server and reports what it finds.
58 In the first synopsis,
60 lists all the registered RPC services with
66 is not specified, the local host is the default.
69 is used, the information is displayed in a concise format.
71 In the second synopsis,
73 lists all the RPC services registered with
76 Also note that the format of the information
77 is different in the first and the second synopsis.
78 This is because the second synopsis is an older protocol used to
79 collect the information displayed (version 2 of the
83 The third synopsis makes an RPC call to procedure 0
90 and reports whether a response was received.
92 is the transport which has to be used for contacting the
94 The remote address of the service is obtained by
95 making a call to the remote
100 argument is a number that represents an RPC program number
105 attempts to call that version of the specified
109 attempts to find all the registered version
110 numbers for the specified
112 by calling version 0,
113 which is presumed not to exist;
116 attempts to obtain this information by calling
117 an extremely high version number instead,
118 and attempts to call each registered version.
120 the version number is required for
126 .Bl -tag -width indent
127 .It Fl T Ar transport
128 Specify the transport on which the service is required.
129 If this option is not specified,
131 uses the transport specified in the
133 environment variable, or if that is unset or empty, the transport
137 This is a generic option,
138 and can be used in conjunction with other options as
141 .It Fl a Ar serv_address
144 as the (universal) address for the service on
149 and report whether a response was received.
152 option is required with the
161 available version numbers for that program number.
162 This option avoids calls to remote
164 to find the address of the service.
167 is specified in universal address format of the given transport.
169 Make an RPC broadcast to procedure 0
174 and report all hosts that respond.
177 is specified, it broadcasts its request only on the
179 If broadcasting is not supported by any
181 an error message is printed.
182 Use of broadcasting should be limited because of the potential for adverse
183 effect on other systems.
185 Delete registration for the RPC service of the specified
192 unregister the service on only that transport,
193 otherwise unregister the service on all
194 the transports on which it was registered.
195 Only the owner of a service can delete a registration, except the
196 super-user who can delete any service.
198 Display a list of entries with a given
204 Entries are returned for all transports
205 in the same protocol family as that used to contact the remote
208 Display a table of statistics of
210 operations on the given
212 The table shows statistics for each version of
214 (versions 2, 3 and 4), giving the number of times each procedure was
215 requested and successfully serviced, the number and type of remote call
216 requests that were made, and information about RPC address lookups that were
218 This is useful for monitoring RPC activities on
223 as the port number for the
227 options instead of the port number given by
229 Use of this option avoids a call to the remote
231 to find out the address of the service.
241 using version 2 of the
244 and display a list of all registered RPC programs.
247 is not specified, it defaults to the local host.
248 Note: Version 2 of the
250 protocol was previously known as the portmapper protocol.
252 Display a concise list of all registered RPC programs on
256 is not specified, it defaults to the local host.
258 Make an RPC call to procedure 0 of
263 and report whether a response was received.
267 option as shown in the third synopsis.
269 Make an RPC call to procedure 0 of
274 and report whether a response was received.
278 option as shown in the third synopsis.
281 To show all of the RPC services registered on the local machine use:
283 .Dl "example% rpcinfo"
285 To show all of the RPC
286 services registered with
292 .Dl "example% rpcinfo klaxon"
294 The information displayed by the above commands can be quite lengthy.
297 option to display a more concise list:
299 .Dl "example$ rpcinfo -s klaxon"
300 .Bl -column "program" "version(s)" "unix,tcp,udp,tcp6,udp6" "nlockmgr" "super-user"
301 .It "program version(s) netid(s) service owner"
302 .It "100000 2,3,4 unix,tcp,udp,tcp6,udp6 rpcbind super-user"
303 .It "100008 1 udp,tcp,udp6,tcp6 walld super-user"
304 .It "100002 2,1 udp,udp6 rusersd super-user"
305 .It "100001 2,3,4 udp,udp6 rstatd super-user"
306 .It "100012 1 udp,tcp sprayd super-user"
307 .It "100007 3 udp,tcp ypbind super-user"
310 To show whether the RPC
311 service with program number
316 registered on the machine named
318 for the transport TCP
321 .Dl "example% rpcinfo -T tcp klaxon prognum versnum"
324 services registered with version 2 of the
326 protocol on the local machine use:
328 .Dl "example% rpcinfo -p"
330 To delete the registration for version
333 (program number 100008)
334 service for all transports use:
336 .Dl "example# rpcinfo -d 100008 1"
338 .Dl "example# rpcinfo -d walld 1"