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 https://opensource.org/licenses/CDDL-1.0.
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]
21 .\" Copyright (c) 2017 by Lawrence Livermore National Security, LLC.
29 .Nd generate host ID into /etc/hostid
39 file and stores the host ID in it.
42 was provided, validate and store that value.
43 Otherwise, randomly generate an ID.
46 .Bl -tag -width "-o filename"
48 Display a summary of the command-line options.
50 Allow output overwrite.
54 instead of the default
57 Specifies the value to be placed in
59 It should be a number with a value between 1 and 2^32-1.
65 be unique among your systems.
68 be an 8-digit-long hexadecimal number, optionally prefixed by
77 .It Generate a random hostid and store it
79 .It Record the libc-generated hostid in Pa /etc/hostid
80 .Dl # Nm Qq $ Ns Pq Nm hostid
81 .It Record a custom hostid Po Ar 0xdeadbeef Pc in Pa /etc/hostid
83 .It Record a custom hostid Po Ar 0x01234567 Pc in Pa /tmp/hostid No and overwrite the file if it exists
84 .Dl # Nm Fl f o Ar /tmp/hostid 0x01234567
97 utility and is provided for use on systems which
98 do not include the utility or do not provide the