macro and text revision (-mdoc version 3)
[unix-history] / usr / src / usr.sbin / portmap / portmap.8
CommitLineData
f778cef7 1.\" Copyright (c) 1987 Sun Microsystems
b42074ab 2.\" Copyright (c) 1990, 1991 The Regents of the University of California.
f778cef7
KM
3.\" All rights reserved.
4.\"
5.\" %sccs.include.redist.man%
6.\"
b42074ab 7.\" @(#)portmap.8 5.3 (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
16port to
17.Tn RPC
18program number mapper
19.Sh SYNOPSIS
20.Nm portmap
21.Op Fl d
22.Sh DESCRIPTION
23.Nm Portmap
f778cef7 24is a server that converts
b42074ab 25.Tn RPC
f778cef7 26program numbers into
b42074ab 27.Tn DARPA
f778cef7
KM
28protocol port numbers.
29It must be running in order to make
b42074ab 30.Tn RPC
f778cef7 31calls.
b42074ab 32.Pp
f778cef7 33When an
b42074ab 34.Tn RPC
f778cef7 35server is started, it will tell
b42074ab 36.Nm portmap
f778cef7 37what port number it is listening to, and what
b42074ab 38.Tn RPC
f778cef7
KM
39program numbers it is prepared to serve.
40When a client wishes to make an
b42074ab 41.Tn RPC
f778cef7
KM
42call to a given program number,
43it will first contact
b42074ab 44.Nm portmap
f778cef7
KM
45on the server machine to determine
46the port number where
b42074ab 47.Tn RPC
f778cef7 48packets should be sent.
b42074ab
CL
49.Pp
50.Nm Portmap
f1749587 51must be started before any
b42074ab 52.Tn RPC
f1749587 53servers are invoked.
b42074ab 54.Pp
f1749587 55Normally
b42074ab 56.Nm portmap
f1749587
KM
57forks and dissociates itself from the terminal
58like any other daemon.
b42074ab 59.Nm Portmap
f1749587 60then logs errors using
b42074ab
CL
61.Xr syslog 3 .
62.Pp
63Option available:
64.Bl -tag -width Ds
65.It Fl d
66(debug) prevents
67.Nm portmap
f1749587
KM
68from running as a daemon,
69and causes errors and debugging information
70to 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 77If
b42074ab 78.Nm portmap
f778cef7 79crashes, all servers must be restarted.
b42074ab
CL
80.Sh HISTORY
81The
82.Nm
83command appeared in
84.Bx 4.3