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: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: Unique system ID for DU systems? Date: 1997/07/09 Message-ID: <5q10r6$osc@dogbert.cc.ndsu.NoDak.edu>#1/1 X-Deja-AN: 255839653 References: Organization: North Dakota Higher Education Computing Network (NDHECN) Newsgroups: comp.unix.osf.osf1 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. 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