From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,34fd2ec1b427a99b X-Google-Attributes: gid1164f8,public From: fuller@pt9113.ped.pto.ford.com Subject: Re: Unique system id on Digital Unix 3.2/4.0? Date: 1996/03/27 Message-ID: <4jac7d$ptk@pt9201.ped.pto.ford.com>#1/1 X-Deja-AN: 144354995 references: <4j7raq$57k@jade.in.on.ca> organization: Ford Motor Co., Powertrain Electronics reply-to: fuller@pt9113.ped.pto.ford.com newsgroups: comp.sys.dec In article <4j7raq$57k@jade.in.on.ca>, emspace@PROBLEM_WITH_YOUR_MAIL_GATEWAY_FILE.in.on.ca (Dr. S. Ghosh) writes: > I want to be able to uniquely identify a system. The command hostid >exists which on Solaris gives a unique number identifying the system. The >man page on digital unix implies that this is also the case for digital >unix. However, on 2 separate systems, I get 0. > > Is there a trick to this? Is the documentation wrong? Is there a >way of doing this? Did you read the entire man page for "hostid"? It says that you can set the hostid from your startup, in much the same way that you set your hostname. Then, users can read the hostid via either the command or a system call. If you get a 0 back, then it just means that the system manager didn't set it. +===================+========================+================================+ | ____ | Stuart R. Fuller | fuller@pt9113.ped.pto.ford.com | | / / | Digital Equipment Corp.| fuller@ohfss1.enet.dec.com | | /____ _/_ | Detroit, MI, USA, Earth| 76703.501@compuserve.com | | / / / / +========================+================================+ | /___/ /_ /___/\ | Opinions expressed here are mine, and mine alone | +===================+=========================================================+