hostid man page on DigitalUNIX

Printed from http://www.polarhome.com/service/man/?qf=hostid&af=0&tf=2&of=DigitalUNIX

hostid(1)							     hostid(1)

NAME
       hostid - Sets or displays the identifier of the local host

SYNOPSIS
       /usr/sbin/hostid [hostname | hexadecimal_number | internet_address]

DESCRIPTION
       The  hostid  command  displays  the  32-bit identifier of the host as a
       hexadecimal number in host standard byte order. The identifier must  be
       unique  across all hosts and is commonly set to the Internet address of
       the specified host.  The superuser can set the host ID by specifying  a
       hostname,  internet_address, or hexadecimal_number argument.  The iden‐
       tifier is stored in network standard byte order.

EXAMPLES
       To display the identifier of the local host, enter: $ hostid

       0xc009c803

	      The hostid command displays the identifier  of  the  host	 as  a
	      hexadecimal  number  in  host  standard  byte order.  To set the
	      identifier of the local host  to	the  local  Internet  address,
	      enter: $ hostid 555.5.55.555

	      The hostid command converts the Internet address to its hexadec‐
	      imal equivalent, and then sets the local host to this address.

	      Note  that  the  sample  Internet	 address  in   this   example,
	      555.5.55.555,  is	 not  a valid Internet address and would cause
	      hostid to return an error.

SEE ALSO
       Commands:  hostname(1)

       Functions:  gethostid(2), sethostid(2)

								     hostid(1)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net