OS Manuals

/usr/bin/zgenhostid

Advanced filesystem and volume manager

From zfs 2.4.4-r4 (os), captured 2026-11-05 by running zgenhostid --help (exit 1). permalink

/usr/bin/zgenhostid: invalid option -- '-'
usage: zgenhostid [-fh] [-o path] [value]

  -f		 force hostid file write
  -h		 print this usage and exit
  -o <filename>	 write hostid to this file

If hostid file is not present, store a hostid in it.
The optional value should be an 8-digit hex number between 1 and 2^32-1.
If the value is 0 or no value is provided, a random one will be generated.
The value must be unique among your systems.
Options (3)
OptionDescriptionSource
-fforce hostid file writehelp + man
-hDisplay a summary of the command-line options.help + man
-o filenameWrite to filename instead of the default /etc/hostid.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.