ZGENHOSTID(8) | System Manager's Manual (smm) | ZGENHOSTID(8) |
zgenhostid
—
generate and store a hostid in
/etc/hostid
zgenhostid |
[-f ] [-o
filename] [hostid] |
Creates /etc/hostid file and stores hostid in it. If the user provides [hostid] on the command line, validates and stores that value. Otherwise, randomly generates a value to store.
-h
-f
-o
filename/etc/hostid
# zgenhostid
# zgenhostid "$(hostid)"
# zgenhostid deadbeef
# zgenhostid -f -o /tmp/hostid 0x01234567
genhostid(1), hostid(1), sethostid(3), spl-module-parameters(5)
zgenhostid
emulates the
genhostid(1) utility and is provided for use on systems
which do not include the utility or do not provide
sethostid(3) call.
September 13, 2020 | Linux |