hostrfs(1M)
NAME
hostrfs − convert IP addresses to RFS format
SYNOPSIS
/usr/sbin/hostrfs hostname [ portnum ]
AVAILABILITY
SUNWrfsu
DESCRIPTION
hostrfs converts IP addresses to a format suitable for use by Remote File Sharing (RFS). It takes a hostname and an optional portnumber and produces an address in the following format:
\x<AF-INET><portnum><IP-address>0000000000000000
Each field given above is a hex ASCII representation. The AF_INET field is the address family which always has the value 0002. portnum is the two-byte TCP port number; if not specified on the command line it defaults to 1450. IP-address is the IP address of the hostname given on the command line followed by 16 trailing zeroes.
The output of this command may be directly used as the network address field for the address of an RFS name server in the rfmaster(4) file. It may also be used as input to the nlsadmin(1M) command to initialize the addresses on which the listener program listens for service requests.
EXAMPLES
The output of
example% hostrfs heller
is
\x00021450819035320000000000000000
The output of the command can be used to initialize the network address on which the RFS listener program listens for remote service requests, for example:
example# nlsadmin −l ‘hostrfs wopr‘ tcp
SEE ALSO
SunOS 5.1 Network Interfaces Programmer’s Guide
SunOS 5.2 — Last change: 14 Sep 1992