nodename(1)
Requires Optional LAN/X.25 Software
NAME
nodename − assign a network node name or determine current network node name
SYNOPSIS
nodename [name]
DESCRIPTION
nodename used without any parameters returns the network node name for the system on which it is executed, and can be executed by any normal user. nodename used with a name parameter assigns name as the network node name for the system, and can be executed only by users with appropriate privileges.
name is the Network Services (NS) node name chosen for the system, and must be of the form node.domain.organization. node, domain, and organization can each be up to 16 alphanumeric, underscore, (_) or hyphen (−) characters; the first character must be alphabetic. domain and organization are arbitrary labels, and may be useful for grouping nodes and collections of nodes. However, they do not indicate anything about the structure of the network.
The name assigned by nodename is used by the LAN diagnostic, rlb, the Probe proxy server, the NS/9000 NFT service, and any user-defined Netipc application.
By convention, the node field of the node name should duplicate the host name field in the /etc/hosts file.
WARNINGS
Caution is necessary when using the nodename(1) and hostname(1) commands. While both commands assign a network name to the local host, they serve different functions within the network. NS and NetIPC applications use names assigned by the nodename command, wheras ARPA services use names assigned by the hostname command. See hostname(1) for more information.
DIAGNOSTICS
Messages indicate a user attempted to assign a node name without having appropriate privileges, in which case no new node name is assigned.
AUTHOR
nodename was developed by HP.
SEE ALSO
dscopy(1), hostname(1), proxy(1M), rlb(1M), ipcgetnodename(2), ipcsetnodename(2).
Hewlett-Packard Company — HP-UX Release 8.05: June 1991