From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d4e10a256502b9f9 X-Google-Attributes: gidfee84,public From: Antonio Serrano Subject: Re: How to get Hardware Serial number and Physical memory info? Date: 1997/08/01 Message-ID: <33E231A5.16D0@sqo.mts.dec.com>#1/1 X-Deja-AN: 261292306 References: <33CFB91A.22FD@datatools.com> Organization: Digital Newsgroups: comp.unix.osf.osf1 Andrew Duan wrote: > > Hi, DEC experts: > > Does anyone know how to get info physical memory size on Digital Unix? > > And how to fine out the hardware serial number through a command or > a C function call? > > Thanks! > > Andrew Hi, try to execute this script in you alpha: ---------------------cut--------------------- #!/sbin/sh TMP5="/tmp/sn.tmp" getkvar() # $1 kernel variable # $2 print option # returns value { #echo "a $1 a $2 a" >&2 /usr/bin/dbx -k /vmunix /dev/mem << EREEEOF > ${TMP5} 2>&1 p${2} $1 quit EREEEOF echo "`tail -1 ${TMP5}`" rm ${TMP5} } echo `hostname` `getkvar "rpb->rpb_ssn"` ---------------------cut--------------------- ARE estrada@mail.dec.com