Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

portmap(8) [redhat man page]

PORTMAP(8)						    BSD System Manager's Manual 						PORTMAP(8)

NAME
portmap -- DARPA port to RPC program number mapper SYNOPSIS
portmap [-d] [-v] DESCRIPTION
Portmap is a server that converts RPC program numbers into DARPA protocol port numbers. It must be running in order to make RPC calls. When an RPC server is started, it will tell portmap what port number it is listening to, and what RPC program numbers it is prepared to serve. When a client wishes to make an RPC call to a given program number, it will first contact portmap on the server machine to determine the port number where RPC packets should be sent. Portmap must be started before any RPC servers are invoked. Normally portmap forks and dissociates itself from the terminal like any other daemon. Portmap then logs errors using syslog(3). Option available: -d (debug) prevents portmap from running as a daemon, and causes errors and debugging information to be printed to the standard error output. -v (verbose) run portmap in verbose mode. This portmap version is protected by the tcp_wrapper library. You have to give the clients access to portmap if they should be allowed to use it. To allow connects from clients of the .bar.com domain you could use the following line in /etc/hosts.allow: portmap: .bar.com You have to use the daemon name portmap for the daemon name (even if the binary has a different name). For the client names you can use the keyword ALL, IP addresses, hostnames or domain names. For further information please have a look at the tcpd((8)), hosts_allow((5)) and hosts_access((5)) manual pages. SEE ALSO
xinetd.conf((5)), rpcinfo((8)), pmap_set((8)), pmap_dump((8)), xinetd((8)) tcpd((8)) hosts_access((5)) hosts_options((5)) BUGS
If portmap crashes, all rpc servers must be restarted. HISTORY
The portmap command appeared in BSDBSD 4.3. 4.3 Berkeley Distribution March 16, 1991 4.3 Berkeley Distribution

Check Out this Related Man Page

rpcinfo(8)						      System Manager's Manual							rpcinfo(8)

NAME
rpcinfo - report remote procedure call (RPC) information SYNOPSIS
/usr/sbin/rpcinfo -p [host] /usr/sbin/rpcinfo [-n portnum] -u host program-number [version-number] /usr/sbin/rpcinfo [-n portnum] -t host program-number [version-number] /usr/sbin/rpcinfo -b program-number version-number /usr/sbin/rpcinfo -d program-number version-number OPTIONS
Makes an RPC broadcast to procedure 0 of the specified program and version using UDP and report all hosts that respond. Deletes registra- tion for the RPC service of the specified program and version. This option can be executed only by the superuser. Uses portnum as the port number for the -t and -u options instead of the port number given by the portmapper. Probes the portmapper portmap(8), running on host, and print a list of all registered RPC programs. If host is not specified, rpcinfo defaults to the value returned by either hostname(1) or gethostname(2). Makes an RPC call to procedure 0 of program-number using the user datagram protocol (UDP), and report whether a response was received. Makes an RPC call to procedure 0 of program-number using the transmission control protocol (TCP), and report whether a response was received. DESCRIPTION
The rpcinfo command makes a remote procedure call (RPC) call to an RPC server and displays its findings based on the specified options. The program-number argument can be either a name or a number. If a version is specified, rpcinfo attempts to call that version of the specified program. Otherwise, rpcinfo attempts to find all the registered version numbers for the specified program by calling version 0. If version 0 exists, rpcinfo attempts to obtain this information by calling an extremely high version number. The rpcinfo command then attempts to call each registered version. EXAMPLES
To show all of the RPC services registered on the local machine, use: # rpcinfo -p To ping the mountd service registered on the machine named klaxon, use: # rpcinfo -u klaxon mountd To show all machines on the local network that are running the ypserv daemon, use: # rpcinfo -b ypserv 'version' | uniq where 'version' is the current NIS version obtained from the results of the -p option. To delete the registration for version 1 of the ypbind daemon, use: # rpcinfo -d walld 1 FILES
Names for RPC program numbers SEE ALSO
Commands: hostname(1), portmap(8) Networking: tcp(7), udp(7) rpcinfo(8)
Man Page