genhostid − generate and set a hostid for the current host
genhostid
genhostid generates a random hostid and stores it in /etc/hostid, if /etc/hostid does not already exist.
hostid(1), gethostid(2), sethostid(2)