Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostname(1)

gethostid(2)

sethostid(2)

hostid(1)  —  Commands

OSF

NAME

hostid − Sets or displays the identifier of the local host

SYNOPSIS

hostid [hexadecimal_number | internet_address]

DESCRIPTION

The hostid command displays the identifier (either a unique hostname or a numeric argument) of the local host as a hexadecimal number.  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 an internet_address or hexadecimal_number argument. 

EXAMPLES

     1.To display the identifier of the local host, enter:

$ hostid

0xc009c803

The hostid command displays the identifier of the host as a hexadecimal number. 

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

RELATED INFORMATION

Commands: hostname(1). 

Functions:  gethostid(2), sethostid(2). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026