Commit | Line | Data |
---|---|---|
f778cef7 | 1 | .\" Copyright (c) 1987 Sun Microsystems |
2024efb4 KB |
2 | .\" Copyright (c) 1990, 1991, 1993 |
3 | .\" The Regents of the University of California. All rights reserved. | |
f778cef7 KM |
4 | .\" |
5 | .\" %sccs.include.redist.man% | |
6 | .\" | |
2024efb4 | 7 | .\" @(#)portmap.8 8.1 (Berkeley) %G% |
f778cef7 | 8 | .\" |
b42074ab CL |
9 | .Dd |
10 | .Dt PORTMAP 8 | |
11 | .Os BSD 4.3 | |
12 | .Sh NAME | |
13 | .Nm portmap | |
14 | .Nd | |
15 | .Tn DARPA | |
16 | port to | |
17 | .Tn RPC | |
18 | program number mapper | |
19 | .Sh SYNOPSIS | |
20 | .Nm portmap | |
21 | .Op Fl d | |
22 | .Sh DESCRIPTION | |
23 | .Nm Portmap | |
f778cef7 | 24 | is a server that converts |
b42074ab | 25 | .Tn RPC |
f778cef7 | 26 | program numbers into |
b42074ab | 27 | .Tn DARPA |
f778cef7 KM |
28 | protocol port numbers. |
29 | It must be running in order to make | |
b42074ab | 30 | .Tn RPC |
f778cef7 | 31 | calls. |
b42074ab | 32 | .Pp |
f778cef7 | 33 | When an |
b42074ab | 34 | .Tn RPC |
f778cef7 | 35 | server is started, it will tell |
b42074ab | 36 | .Nm portmap |
f778cef7 | 37 | what port number it is listening to, and what |
b42074ab | 38 | .Tn RPC |
f778cef7 KM |
39 | program numbers it is prepared to serve. |
40 | When a client wishes to make an | |
b42074ab | 41 | .Tn RPC |
f778cef7 KM |
42 | call to a given program number, |
43 | it will first contact | |
b42074ab | 44 | .Nm portmap |
f778cef7 KM |
45 | on the server machine to determine |
46 | the port number where | |
b42074ab | 47 | .Tn RPC |
f778cef7 | 48 | packets should be sent. |
b42074ab CL |
49 | .Pp |
50 | .Nm Portmap | |
f1749587 | 51 | must be started before any |
b42074ab | 52 | .Tn RPC |
f1749587 | 53 | servers are invoked. |
b42074ab | 54 | .Pp |
f1749587 | 55 | Normally |
b42074ab | 56 | .Nm portmap |
f1749587 KM |
57 | forks and dissociates itself from the terminal |
58 | like any other daemon. | |
b42074ab | 59 | .Nm Portmap |
f1749587 | 60 | then logs errors using |
b42074ab CL |
61 | .Xr syslog 3 . |
62 | .Pp | |
63 | Option available: | |
64 | .Bl -tag -width Ds | |
65 | .It Fl d | |
66 | (debug) prevents | |
67 | .Nm portmap | |
f1749587 KM |
68 | from running as a daemon, |
69 | and causes errors and debugging information | |
70 | to be printed to the standard error output. | |
b42074ab CL |
71 | .El |
72 | .Sh SEE ALSO | |
73 | .Xr inetd.conf 5 , | |
74 | .Xr rpcinfo 8 , | |
75 | .Xr inetd 8 | |
76 | .Sh BUGS | |
f778cef7 | 77 | If |
b42074ab | 78 | .Nm portmap |
f778cef7 | 79 | crashes, all servers must be restarted. |
b42074ab CL |
80 | .Sh HISTORY |
81 | The | |
82 | .Nm | |
83 | command appeared in | |
84 | .Bx 4.3 |