From: CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 24-APR-1989 14:30 To: MRGATE::"ARISIA::EVERHART" Subj: Re: Routine to get ethernet address Message-Id: <8904241826.AA09863@crdgw1.ge.com> Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Mon, 24 APR 89 10:42:06 PDT Received: from circus.llnl.gov by KL.SRI.COM with TCP; Mon, 24 Apr 89 10:14:51 PDT Date: Mon, 24 Apr 89 10:12 PST From: "Keith L. Burris -- Promoted to System Hacker...4th class" Subject: Re: Routine to get ethernet address To: info-vax@kl.sri.COM X-Vms-To: CIRCUS::IN%"info-vax@kl.sri.com" Date sent 24-APR-1989 10:04:49 >In article <28200003@m.cs.uiuc.edu>, aslam@m.cs.uiuc.edu writes: >> Dear Netlanders, >> >> If someone has written a C (or fortran) routine that returns the ethernet >> address of the machine, I'd greatly appreciate a copy. I am running VMS 5.1 >> with VMS C ver. 2.4. >How about we post the answer as I would also greatly appreciate a copy. Folks: I'm not a C programmer but if you know how to get to an address, here are the appropriate address': If you were at the three arrow prompt... >>> e/p/w 20001920 through 2000192a will return a value of something like FFXX where the XX will be the first (and successive) two digits of the enet address. Throw the FF away. Therefore, it may look something like this for 08-00-2B-3C-1D-77 >>> e/p/w 20001920 = FF08 >>> e/p/w 20001922 = FF00 >>> e/p/w 20001924 = FF2B >>> e/p/w 20001926 = FF3C >>> e/p/w 20001928 = FF1D >>> e/p/w 2000192A = FF77 Of course, the usual caveat applies but this has always worked for me when there was some reason why bootfile or test xx did not work. -- Keith Keith L. Burris USnail: Arpa Internet: Lawrence Livermore Nat'l Laboratory BURRIS%LCAM1@CIRCUS.LLNL.GOV P.O. Box 808 - Mail Stop L-54 SneakerNet: T1276, Room 111 Livermore, Ca. 94550-What is that #? YellNet: (415) 422-0359 Disclaimer: The opinions expressed here are mine, all mine and should not be referred to by intelligent people.