Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: clineja@mit.edu (Jason Cline)
Subject: Re: Unique system ID for DU systems?
Date: 1997/07/11	[thread overview]
Message-ID: <5q690r$ob4@senator-bedfellow.MIT.EDU> (raw)
In-Reply-To: 5q10r6$osc@dogbert.cc.ndsu.NoDak.edu



Some programs I use employ the hardware Ethernet address on DU machines
instead of the hostid, though I don't offhand know the system call to resolve
it.

Jason <clineja@mit.edu>

Tim Mooney (mooney@dogbert.cc.ndsu.NoDak.edu) wrote:
: In article <ED0Dtp.7zD@fsa.bris.ac.uk>,
: Mark Taylor <chmbt@zeus.bris.ac.uk> wrote:
: > Does anybody know if there is a call in Digital Unix which
: > will give you a machine ID unique to box it's called on?
: > If not, what is the next best thing to use?  MAC address?

: gethostid() is the call that is meant to do that, but it's generally
: just based on the IP address and (worse yet) it's not set by default, so
: virtually all DU machines will return 0 as a result of that call.  See the
: man pages for gethostid and hostid(1) to see what I mean.




      reply	other threads:[~1997-07-11  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-08  4:00 Unique system ID for DU systems? Mark Taylor
1997-07-09  4:00 ` Tim Mooney
1997-07-11  4:00   ` Jason Cline [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox