* How to get Hardware Serial number and Physical memory info?
@ 1997-07-18 4:00 Andrew Duan
1997-07-19 4:00 ` Stuart R. Fuller
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andrew Duan @ 1997-07-18 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to get Hardware Serial number and Physical memory info?
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
2 siblings, 0 replies; 4+ messages in thread
From: Stuart R. Fuller @ 1997-07-19 4:00 UTC (permalink / raw)
Andrew Duan (andrewd@datatools.com) wrote:
: Hi, DEC experts:
:
: And how to fine out the hardware serial number through a command or
: a C function call?
When you get the system, look on the back of the box, write down the system
serial number, put in a world-readable file. Then, the command to get the
system serial number becomes:
# cat /etc/system-serial-number
What are you trying to do that you feel a need for a system serial number?
Stu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to get Hardware Serial number and Physical memory info?
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
2 siblings, 0 replies; 4+ messages in thread
From: Steven Berry @ 1997-07-21 4:00 UTC (permalink / raw)
Andrew Duan wrote in article <33CFB91A.22FD@datatools.com>...
>Hi, DEC experts:
>
>Does anyone know how to get info physical memory size on Digital Unix?
>
Check /var/adm/messages the physical memory is recorded here at boot time.
It'll also tell you
how much memory is being used by the kernel.
>And how to fine out the hardware serial number through a command or
>a C function call?
Nope. Can't be done short of resorting to Stuart Fuller's method :-)
Steven Berry
sb@m4.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to get Hardware Serial number and Physical memory info?
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
2 siblings, 0 replies; 4+ messages in thread
From: Antonio Serrano @ 1997-08-01 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-08-01 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox