From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,32daa9b7c11268ca X-Google-Attributes: gid1164f8,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: System identification number under DEC-Unix or openVMS on alpha ? Date: 1995/12/31 Message-ID: <1995Dec30.232641.1@eisner.decus.org>#1/1 X-Deja-AN: 123228266 x-nntp-posting-host: eisner.decus.org references: <4c0uik$al8@cicg-communication.grenet.fr> <1995Dec29.075901.7362@vmsmail.gov.bc.ca> <4c16ev$ej8@cicg-communication.grenet.fr> x-nntp-posting-user: KILGALLEN organization: LJK Software newsgroups: comp.sys.dec In article <4c16ev$ej8@cicg-communication.grenet.fr>, hewat@ill.fr (Alan Hewat) writes: > ewilts@vmsmail.gov.bc.ca (Ed Wilts) writes: > >> hewat@ill.fr (Alan Hewat) writes: >>> What is the command to get the unique system identification number for >>> a DEC alpha running Unix ? running openVMS ? I have done 'man -k' and >>> looked through the FAQ without sucess. To write a program on VMS which determines the Ethernet address, you need to read the I/O User's Guide either from paper or from CD-ROM via the Bookreader program. The programming to retrieve this information is not trivial enough for an email description. Remember that if DECnet Phase IV is running, you want the permanent Ethernet address, not the current Ethernet address. > Thanks for your very rapid reply. Now, if I could only find out how to get > the Ethernet hardware address from both a command and within an app. I'd be > able to port my application to DEC (hint, hint :-) There is no generic VMS command to return the hardware address of an Ethernet adapter. It is not provided by the SHOW DEVICE command, for example. You could try parsing the output of some intricate set of System Dump Analyzer commands, but of course those commands would likely be different for different versions of VMS and perhaps even for different models of Ethernet adapters on the same version of VMS. Also the System Dump Analyzer is not present on every VMS system -- it is an installation option up to the customer. You could try parsing the output of DECnet management commands, but of course there are two different implementations of DECnet available on VMS, with entirely different management commands. Also some machines do not have any DECnet installed -- that is another installation option. You could try parsing the output of TCP/IP management commands -- since there are five different vendors of TCP/IP for VMS it seems to me at least one of them may have a method to extract this information. Of course not all customers have any TCP/IP installed. Did I mention that parsing command output is risky, since vendors do not guarantee the output will not change from version to version ? If by chance you should succeed in producing output that shows the Ethernet address, keep in mind that it is 48 bits long and DCL numeric variables on VMS hold at most 32 bits, so you better keep it as a text string. =============================== One cheap but effective method of piracy deterrance is to display as part of the software operation "This copy licensed to the XYZ workgroup within ABC corporation". When you have enough sales that piracy is a problem they you will have enough money to buy a PAKgen license at the retail price even if DEC is not going to include it in the ASAP SDK. Larry Kilgallen LJK Software