ZGENHOSTID(8) | System Manager's Manual | ZGENHOSTID(8) |
zgenhostid
—
generate host ID into /etc/hostid
zgenhostid |
[-f ] [-o
filename] [hostid] |
Creates /etc/hostid file and stores the host ID in it. If hostid was provided, validate and store that value. Otherwise, randomly generate an ID.
-h
-f
-o
filename/etc/hostid
#
zgenhostid
#
zgenhostid
"$(hostid
)"
#
zgenhostid
deadbeef
#
zgenhostid
-f
-o
/tmp/hostid
0x01234567
zgenhostid
emulates the
genhostid(1) utility and is provided
for use on systems which do not include the utility or do not provide the
sethostid(3) function.
May 26, 2021 | OpenZFS |