1827234 Members
2359 Online
109716 Solutions
New Discussion

How to Check RAM

 
GRANDIERE
Frequent Advisor

How to Check RAM

How can i know the size of the RAM memory on my server ?

What command may i launch ?

Thanks.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: How to Check RAM

cstm can do it.

[8208#] more mem.report
#
# Program to provide memory information to a file.
#
echo "selclass qualifier memory;info;wait;infolog" | cstm > /tmp/meminfo
more /tmp/meminfo


More recent versions of the online diagnostic tools invalidate my little script, which is not my work anyway.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Fred Ruffet
Honored Contributor

Re: How to Check RAM

Have a look at the FAQ section in Merijn's Website :
http://mirrors.develooper.com/hpux/faq.html

It depends on your OS version, but I think that this one works on most :
grep Physical /var/adm/syslog/syslog.log

Regards,

Fred

--

"Reality is just a point of view." (P. K. D.)
Pete Randall
Outstanding Contributor

Re: How to Check RAM

Try this little script:

# Note: For Itanium, use the following:
# echo "${MYSYMBOL}/jd" | adb $HPUX /dev/kmem
HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM


Pete

Pete
GRANDIERE
Frequent Advisor

Re: How to Check RAM

The command works well.

Thanks a lot.

Regards.