summaryrefslogtreecommitdiffstats
path: root/misc-utils/hostid.1
blob: 9830a53d861fc32cd9faa34d8ca072b660e6ec78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.TH hostid 1
.SH NAME
hostid \- set or print system's host id.
.SH SYNTAX
.B hostid
[\-v] [\|\fIdecimal-id\fR\|]
.SH DESCRIPTION
.\".NXR "hostid command"
The
.B hostid
command prints the current host id number in hexadecimal and both
decimal and hexadecimal in parenthesis if the \-v option is given.
This numeric value is expected to be unique across all hosts
and is normally set to resemble the host's Internet address.

Only the super-user can set the hostid by giving an argument. This value is
stored in the file /etc/hostid and need only be performed once.

.SH AUTHOR
Hostid is written by Mitch DSouza \- (m.dsouza@mrc-apu.cam.ac.uk)

.SH SEE ALSO
gethostid(2), sethostid(2)