From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: Re: Unique system ID for DU systems?
Date: 1997/07/09 [thread overview]
Message-ID: <5q10r6$osc@dogbert.cc.ndsu.NoDak.edu> (raw)
In-Reply-To: ED0Dtp.7zD@fsa.bris.ac.uk
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.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
next prev parent reply other threads:[~1997-07-09 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 [this message]
1997-07-11 4:00 ` Jason Cline
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