*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> hostid (1)              
Title
Content
Arch
Section
 

hostid(1)

Contents


NAME    [Toc]    [Back]

       hostid - Sets or displays the identifier of the local host

SYNOPSIS    [Toc]    [Back]

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


DESCRIPTION    [Toc]    [Back]

       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 identifier is stored in network standard byte order.

EXAMPLES    [Toc]    [Back]

       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 hexadecimal 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    [Toc]    [Back]

      
      
       Commands:  hostname(1)

       Functions:  gethostid(2), sethostid(2)



                                                        hostid(1)
[ Back ]
 Similar pages
Name OS Title
hostname Tru64 Sets or displays the name of the current host system
dtsdate HP-UX Sets local clock from a remote dtsd server host
tt_netfile_file HP-UX map between canonical and local pathnames on the local host
tt_file_netfile HP-UX map between local and canonical pathnames on the local host
rcp Tru64 Copies files on the same host, between a local host and a remote host, and between two remote hosts
ssh-hostbased-setup Tru64 Sets up Secure Shell host-based authentication by verifying and if necessary, copying a public host ...
printenv Tru64 Displays or sets the current environment, or displays the values of environment variables
env Tru64 Displays or sets the current environment, or displays the values of environment variables
gethostid HP-UX get an identifier for the current host
gethostid FreeBSD get/set unique identifier of current host
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service