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:36:08 GMT [thread overview]
Message-ID: <C5srs9.G7E@cwi.com> (raw)
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 reply other threads:[~1993-04-20 19:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-04-20 19:36 Steve Holtsberg [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-04-19 1:23 Need help reading a DEC-10 backup tape Kurt Reisler
1993-04-20 16:56 ` Tony Brack
1993-04-20 19:32 ` Is there DEC equivalent of "hostid()" (i.e., unique ID for machine) Steve Holtsberg
1993-04-21 12:54 ` Dave Bernard
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