coreutils: hostid invocation
1
1 21.6 ‘hostid’: Print numeric host identifier
1 ============================================
1
1 ‘hostid’ prints the numeric identifier of the current host in
1 hexadecimal. This command accepts no arguments. The only options are
1 ‘--help’ and ‘--version’. ⇒Common options.
1
1 For example, here’s what it prints on one system I use:
1
1 $ hostid
1 1bac013d
1
1 On that system, the 32-bit quantity happens to be closely related to
1 the system’s Internet address, but that isn’t always the case.
1
1 ‘hostid’ is installed only on systems that have the ‘gethostid’
1 function, so portable scripts should not rely on its existence.
1
1 An exit status of zero indicates success, and a nonzero value
1 indicates failure.
1