Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Antonio Serrano <antonio.serrano-alvarez@sqo.mts.dec.com>
Subject: Re: How to get Hardware Serial number and Physical memory info?
Date: 1997/08/01	[thread overview]
Message-ID: <33E231A5.16D0@sqo.mts.dec.com> (raw)
In-Reply-To: 33CFB91A.22FD@datatools.com


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



      parent reply	other threads:[~1997-08-01  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-18  4:00 How to get Hardware Serial number and Physical memory info? Andrew Duan
1997-07-19  4:00 ` Stuart R. Fuller
1997-07-21  4:00 ` Steven Berry
1997-08-01  4:00 ` Antonio Serrano [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox