[NTLUG:Discuss] Host ID
Mark Bickel
eusmb at exu.ericsson.se
Mon Jun 17 14:14:32 CDT 2002
> From: Michael Patrick <michael at techiesplace.com>
> To: discuss at ntlug.org
> Subject: Re: [NTLUG:Discuss] Host ID
> List-Archive: <http://www.ntlug.org/pipermail/discuss/>
> Date: Mon, 17 Jun 2002 14:01:36 -0500
It's a Sun thing. Hostid is tied to ID PROM on Sparc motherboard.
Can't see how it would apply to PC architecture.
/Mark
# man gethostid
Standard C Library Functions gethostid(3C)
NAME
gethostid - get unique identifier of current host
SYNOPSIS
#include <unistd.h>
long gethostid(void);
DESCRIPTION
The gethostid() function returns the 32-bit identifier for
the current host, which should be unique across all hosts.
This number is usually taken from the CPU board's ID PROM.
SEE ALSO
hostid(1), sysinfo(2)
SunOS 5.8 Last change: 12 Feb 1993
# man hostid
User Commands hostid(1)
NAME
hostid - print the numeric identifier of the current host
SYNOPSIS
/usr/bin/hostid
DESCRIPTION
The hostid command prints the identifier of the current host
in hexadecimal. This numeric value is likely to differ when
hostid is run on a different machine.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| Availability | SUNWcsu |
|_____________________________|_____________________________|
SEE ALSO
sysinfo(2), gethostid(3C), attributes(5)
SunOS 5.8 Last change: 14 Sep 1992
> Hmmm... are you talking about hostname?
>
> Michael
>
> On Mon, Jun 17, 2002 at 02:00:56PM -0500, Daphne Martindell wrote:
> > Does anyone knows of the linux command to get
> > the host id? You can type "hostid" in Solaris
> > to get the host id. The command "hostid"
> > does not work on linux.
More information about the Discuss
mailing list