HOSTID(1)                                                            HOSTID(1)


NAME
     hostid - set or print identifier of current host system

SYNOPSIS
     hostid [ hexnum | hostname ]
     hostid -h hostname

DESCRIPTION
     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.

FILES
     /etc/hosts     hostname-address database

SEE ALSO
     gethostid(2), sethostid(2), sysinfo(1), network(1M), hosts(4)


                                                                        Page 1