Xref: utzoo comp.unix.ultrix:5603 comp.unix.programmer:689 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!nuug!barsoom!barsoom!tih From: tih@barsoom.nhh.no (Tom Ivar Helbekkmo) Newsgroups: comp.unix.ultrix,comp.unix.programmer Subject: Re: WANTED: ethernet address or other unique ID for DEC-station Keywords: ethernet-address unique-ID DECstation Message-ID: Date: 13 Dec 90 09:24:54 GMT References: <750@utrcu1.UUCP> Sender: news@barsoom.nhh.no (USENET News System) Organization: Norwegian School of Economics Lines: 18 emmerik@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@barsoom.nhh.no, thelbekk@norunit.bitnet, edb_tom@debet.nhh.no