From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7d4aee085cd8f166 X-Google-Attributes: gid1164f8,public From: hoffman@xdelta.enet.dec.nospam (Hoff Hoffman) Subject: Re: help - how to get CPU id (serial#) on Alpha 1000 Date: 1997/12/17 Message-ID: <679eeg$lnq@usenet.pa.dec.com>#1/1 X-Deja-AN: 299132485 References: <6751pj$265@maroon.tc.umn.edu> Reply-To: hoffman@xdelta.zko.dec.nospam Distribution: world Organization: Digital Equipment Corp Newsgroups: comp.sys.dec In article <6751pj$265@maroon.tc.umn.edu>, mari0021@tc.umn.edu writes: :the 'uname -m' command gives the serial number of the CPU :on an AIX but not on the Alpha running Digital UNIX. : :Does anyone know how to get the unique CPU serial number/id on the Alpha 1000? :I've searched the entire documentation CD, but the closest I got was the :'uerf' command run in superuser mode which gives a 'system id' among other :things, and 'pset_info' which only shows the CPU number (that is, 0 for 1 cpu). Most Alpha and most VAX systems do not have "solid" serial numbers -- and those few systems that do have something that vaguely resembles a serial number can sometimes have that value changed via console commands or backplane switchpacks. For something that can be used in lieu of a serial number, consider the Ethernet Address. For details and example C code, see the Ethernet section at the URL: http://www.partner.digital.com/www-swdev/pages/Home/TECH/faqs/ovms/ovms.html The serial number check is something that tends to be used primarily in software licensing schemes, and is something that tends to regularly get mis-implemented. I would tend to recommend using an existing licensing package if at all possible, as this puts the headaches on somebody else. Many folks try to use the entire SID register as a serial number, and it doesn't work that way -- one can only depend on the architected portion of the SID, the processor-dependent portion can -- and does -- vary. On the Alpha SRM console (used by OpenVMS and UNIX), the hardware restart parameter block (HWRPB) is another option. Look at the ten ASCII character field beginning at offset 64. (Donno how to get at the console HWRPB from UNIX, however.) And I'd use the Ethernet address first... -------------------------- pure personal opinion --------------------------- Hoff (Stephen) Hoffman OpenVMS Engineering h*ffman@xdelta.enet.dec.c*m headers and addresses munged to avoid automated spammers: junk-e-mail