Manpage of ZGENHOSTID
Section: Maintenance Commands (8)
Return to Main Contents
- generate and store a hostid in
does not exist, create it and store a hostid in it. If the user provides
on the command line, store that value. Otherwise, randomly generate a
value to store.
This emulates the
utility and is provided for use on systems which do not include the utility.
Specifies the value to be placed in
It must be a number with a value between 1 and 2^32-1. This value
be unique among your systems. It must be expressed in hexadecimal and be
exactly 8 digits long.
- Generate a random hostid and store it
- Record the libc-generated hostid in /etc/hostid
# zgenhostid $(hostid)
- Record a custom hostid (0xdeadbeef) in etc/hostid
# zgenhostid deadbeef
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:41:20 GMT, October 05, 2020