From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,606232bd93825c2 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,2377e0cd038be3f1 X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1993-04-20 14:05:23 PST Xref: gmd.de comp.sys.dec:7153 comp.unix.ultrix:8721 Newsgroups: comp.sys.dec,comp.unix.ultrix Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!news.service.uci.edu!ucivax!cwi!steveh From: steveh@cwi.com (Steve Holtsberg ) Subject: Is there DEC equivalent of "hostid()" (i.e., unique ID for machine) Message-ID: Organization: CaseWare Inc. Date: Tue, 20 Apr 1993 19:36:08 GMT Id there a programmatically accessible function that can be called under DEC ULTRIX that will give a unique id for each machine? Also, is there a shell command that will give the same id? I know that the following will not work: 1. gethstid(2) This returns an id that is set via sethostid, by root, in /etc/rc.local, and is usually the IP address. Many machines can have the same IP address, and since the id is settable via sethostid, it cannot be counted on as being unique. 2. pfstat(8) This one is really close. pfstat is a shell command that returns the ethernet address (among other things), which is unique. However, there is no corresponding system call that I know of. Does such a system call exist? The shell command pfstat is not usable, because its output must be parsed, and the format is not documented or guaranteed not to change in new releases. Also, another question. I've seen notes indicating that pfstat resides in /usr/bin and other notes saying it is in /usr/sbin/systemid. What's the story? Thanks in advance. Steven Holtsberg steveh@cwi.com