4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
22 .\" Copyright (c) 2017 by Lawrence Livermore National Security, LLC.
24 .Dd September 13, 2020
29 .Nd generate and store a hostid in
39 file and stores hostid in it.
42 on the command line, validates and stores that value.
43 Otherwise, randomly generates a value to store.
44 .Bl -tag -width "hostid"
46 Display a summary of the command-line options.
55 Specifies the value to be placed in
57 It should be a number with a value between 1 and 2^32-1.
58 If it is 0, zgenhostid will generate a random hostid.
61 be unique among your systems.
64 be expressed in hexadecimal and be exactly
66 digits long, optionally prefixed by
73 .It Generate a random hostid and store it
77 .It Record the libc-generated hostid in Pa /etc/hostid
79 # zgenhostid "$(hostid)"
81 .It Record a custom hostid (0xdeadbeef) in Pa /etc/hostid
85 .It Record a custom hostid (0x01234567) in Pa /tmp/hostid
86 and ovewrite the file if it exists
88 # zgenhostid -f -o /tmp/hostid 0x01234567
95 .Xr spl-module-parameters 5
100 utility and is provided for use on systems which
101 do not include the utility or do not provide