* Unique system ID for DU systems?
@ 1997-07-08 4:00 Mark Taylor
1997-07-09 4:00 ` Tim Mooney
0 siblings, 1 reply; 3+ messages in thread
From: Mark Taylor @ 1997-07-08 4:00 UTC (permalink / raw)
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?
thanks,
Mark
-----------------------------------------------------------------------
| Mark Beauchamp Taylor - physicist trapped in a chemist's body. |
| mark.taylor@bris.ac.uk http://zeus.bris.ac.uk/~chmbt/index.html |
| Department of Chemistry, University of Bristol, UK -------
-----------------------------------------------------| ... It's the future! |
------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Unique system ID for DU systems?
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
0 siblings, 1 reply; 3+ messages in thread
From: Tim Mooney @ 1997-07-09 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unique system ID for DU systems?
1997-07-09 4:00 ` Tim Mooney
@ 1997-07-11 4:00 ` Jason Cline
0 siblings, 0 replies; 3+ messages in thread
From: Jason Cline @ 1997-07-11 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-07-11 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox