WANTED: ethernet address or other unique ID for DEC-station
Tom Ivar Helbekkmo
tih at barsoom.nhh.no
Thu Dec 13 20:24:54 AEST 1990
emmerik at utrcu1.UUCP (Emmerik P.J.L. van) writes:
>Wanted: a way of obtaining a unique identifier for a DEC
> workstation from a program.
The normal way to do this would be to use the 'hostid', I suppose.
You set it from your /etc/rc.local at boot, normally using the
internet address of the machine. Thus, I have:
/bin/hostid 81b1260f
in my /etc/rc.local. Then, I can use the gethostid() call from a
program to get this value. The hostid is supposed to be a unique
identifier for the machine 'among all Unix systems in existence'.
-tih
--
Tom Ivar Helbekkmo, NHH, Bergen, Norway. Telephone: +47-5-959205
tih at barsoom.nhh.no, thelbekk at norunit.bitnet, edb_tom at debet.nhh.no
More information about the Comp.unix.programmer
mailing list