From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,78d92ef3f2e65314 X-Google-Attributes: gidfee84,public From: clineja@mit.edu (Jason Cline) Subject: Re: Unique system ID for DU systems? Date: 1997/07/11 Message-ID: <5q690r$ob4@senator-bedfellow.MIT.EDU>#1/1 X-Deja-AN: 256278321 References: <5q10r6$osc@dogbert.cc.ndsu.NoDak.edu> Organization: Massachvsetts Institvte of Technology Newsgroups: comp.unix.osf.osf1 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 Tim Mooney (mooney@dogbert.cc.ndsu.NoDak.edu) wrote: : In article , : Mark Taylor 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.