Content-type: text/html Manpage of ZGENHOSTID

ZGENHOSTID

Section: Maintenance Commands (8)
Updated: SMM
Index Return to Main Contents

BSD mandoc
Linux  

NAME

zgenhostid - generate and store a hostid in /etc/hostid  

SYNOPSIS

[hostid ]  

DESCRIPTION

If /etc/hostid does not exist, create it and store a hostid in it. If the user provides [hostid ] on the command line, store that value. Otherwise, randomly generate a value to store.

This emulates the genhostid(1) utility and is provided for use on systems which do not include the utility.  

OPTIONS

[hostid ] Specifies the value to be placed in /etc/hostid It must be a number with a value between 1 and 2^32-1. This value must be unique among your systems. It must be expressed in hexadecimal and be exactly 8 digits long.  

EXAMPLES

Generate a random hostid and store it
# zgenhostid
Record the libc-generated hostid in /etc/hostid
# zgenhostid $(hostid)
Record a custom hostid (0xdeadbeef) in etc/hostid
# zgenhostid deadbeef

 

SEE ALSO

genhostid(1), hostid(1), spl-module-parameters5


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 22:16:52 GMT, January 23, 2020