version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
---- |
|
|
2 |
__NAME__ |
|
|
3 |
|
|
|
4 |
|
|
|
5 |
rpcinfo - report RPC information |
|
|
6 |
__SYNOPSIS__ |
|
|
7 |
|
|
|
8 |
|
|
|
9 |
rpcinfo -p [[host] |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
rpcinfo [[-n portnum] -u host program [[version] |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
rpcinfo [[-n portnum] -t host program [[version] |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
rpcinfo -b program version |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
rpcinfo -d program version |
|
|
22 |
__DESCRIPTION__ |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
rpcinfo makes an RPC call to an |
|
|
26 |
RPC server and reports what it |
|
|
27 |
finds. |
|
|
28 |
__OPTIONS__ |
|
|
29 |
-p Probe the portmapper on host, and print a list of allregistered RPC programs. If host is not specified,it defaults to the value returned by hostname |
|
|
30 |
(1). |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
-u |
|
|
34 |
Make an RPC call to procedure 0 of program on the specified host using UDP , and report whether a response was received. |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
-t |
|
|
38 |
Make an RPC call to procedure 0 of program on |
|
|
39 |
the specified host using TCP , and report |
|
|
40 |
whether a response was received. |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
-n |
|
|
44 |
Use portnum as the port number for the -t and -u options |
|
|
45 |
instead of the port number given by the |
|
|
46 |
portmapper. |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
-b |
|
|
50 |
Make an RPC broadcast to procedure 0 of the |
|
|
51 |
specified program and version using UDP and |
|
|
52 |
report all hosts that respond. |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
-d |
|
|
56 |
Delete registration for the RPC service of |
|
|
57 |
the speci- fied program and version. This option can be |
|
|
58 |
exer- cised only by the super-user. |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
The program argument can be either a name or a |
|
|
62 |
number. |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
If a version is specified, rpcinfo attempts to call that |
|
|
66 |
version of the specified program. Otherwise, rpcinfo |
|
|
67 |
attempts to find all the registered version numbers for the |
|
|
68 |
specified program by calling version 0 (which is presumed |
|
|
69 |
not to exist; if it does exist, rpcinfo attempts to obtain |
|
|
70 |
this information by calling an extremely high version number |
|
|
71 |
instead) and attempts to call each registered version. Note: |
|
|
72 |
the version number is required for -b and -d |
|
|
73 |
options. |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
__EXAMPLES__ |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
To show all of the RPC services registered on |
|
|
80 |
the local machine use: |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
example% rpcinfo -p |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
To show all of the RPC services registered on |
|
|
87 |
the machine named klaxon use: |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
example% rpcinfo -p klaxon |
|
|
91 |
|
|
|
92 |
|
|
|
93 |
To show all machines on the local net that are running the |
|
|
94 |
Yellow Pages service use: |
|
|
95 |
|
|
|
96 |
|
|
|
97 |
example% rpcinfo -b ypserv 'version' | |
|
|
98 |
uniq |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
where 'version' is the current Yellow Pages version obtained |
|
|
102 |
from the results of the -p switch above. |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
To delete the registration for version 1 of the walld ser- |
|
|
106 |
vice use: |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
example% rpcinfo -d walld 1 |
|
|
110 |
__SEE ALSO__ |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
rpc(5), portmap(8) |
|
|
114 |
'' RPC Programming Guide''. |
|
|
115 |
__BUGS__ |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
In releases prior to SunOS 3.0, the Network File System |
|
|
119 |
(NFS) did not register itself with the portmapper; rpcinfo |
|
|
120 |
cannot be used to make RPC calls to the |
|
|
121 |
NFS server on hosts running such |
|
|
122 |
releases. |
|
|
123 |
|
|
|
124 |
|
|
|
125 |
BSD December 17, 1987 1 |
|
|
126 |
---- |