From: steveh@cwi.com (Steve Holtsberg )
Subject: Is there DEC equivalent of "hostid()" (i.e., unique ID for machine)
Date: Tue, 20 Apr 1993 19:32:58 GMT [thread overview]
Message-ID: <C5srMy.Fqs@cwi.com> (raw)
In-Reply-To: 1993Apr20.115604.1@ccs.yorku.ca
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
next prev parent reply other threads:[~1993-04-20 19:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-04-19 1:23 Need help reading a DEC-10 backup tape Kurt Reisler
1993-04-19 13:25 ` David M. Desroches
1993-04-19 14:55 ` Brent Sterner
1993-04-19 14:56 ` Alan Greig
1993-04-19 20:37 ` Karen Rabideau
1993-04-20 1:58 ` harvey
1993-04-19 13:32 ` Bob Koehler
1993-04-19 18:36 ` Paul Repacholi
1993-04-23 15:49 ` Richard Snider
1993-04-26 15:49 ` Larry Stewart
1993-05-03 0:46 ` Kurt Reisler
1993-04-20 3:34 ` tanner
1993-04-20 16:56 ` Tony Brack
1993-04-20 19:32 ` Steve Holtsberg [this message]
1993-04-21 12:54 ` Is there DEC equivalent of "hostid()" (i.e., unique ID for machine) Dave Bernard
1993-04-21 9:38 ` Need help reading a DEC-10 backup tape Alan Greig
1993-04-21 13:27 ` Paul Repacholi
-- strict thread matches above, loose matches on Subject: below --
1993-04-20 19:36 Is there DEC equivalent of "hostid()" (i.e., unique ID for machine) Steve Holtsberg
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