HOSTID(1) HOSTID(1)
hostid - set or print identifier of current host system
hostid [ hexnum | hostname ]
hostid -h hostname
The hostid command with no arguments prints the identifier of the current
host in hexadecimal. This numeric value is expected to be unique across
all hosts and is commonly set to the host's Internet address. The
super-user can set the host ID by giving an argument that is a
hexadecimal value or a hostname. With the -h option, the argument must
be a hostname. If the argument is a hostname, hostid sets the ID to the
name's Internet address listed in /etc/hosts. Hostid sets the exit
status to 0 if it successfully changed the host ID and to 1 if not. The
script /etc/init.d/network uses hostid to set the ID during system
startup to the Internet address of the hostname found in /etc/sys_id.
/etc/hosts hostname-address database
gethostid(2), sethostid(2), sysinfo(1), network(1M), hosts(4)
PPPPaaaaggggeeee 1111 [ Back ]
|