Operating System - HP-UX
1754740 Members
3375 Online
108825 Solutions
New Discussion юеВ

How much memory do I have - HP 9000 "N"

 
SOLVED
Go to solution
JHL_1
Frequent Advisor

How much memory do I have - HP 9000 "N"

Hello. I'm trying to find a simple way (command line?) to find out how much total memory I have. I've looked in dmesg but the instance has been removed (log too long) and both in SAM and the kernel. Is there a definitive way of finding out how much memory is on the system? Not sure swapinfo gives me an accurate value.

Thanks
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor
Solution

Re: How much memory do I have - HP 9000 "N"

Hi John:

Here's my favorite:

# echo "selclass qualifier memory;info;wait;infolog"|cstm > /tmp/meminfo

The reason I like this, is that you can see the memory module sizes and arrangement too.

Regards!

...JRF...
harry d brown jr
Honored Contributor

Re: How much memory do I have - HP 9000 "N"

Run xstm, click on memory, right click on Information, then when its done, right click and select View Information log.

live free or die

harry
Live Free or Die
Sanjay_6
Honored Contributor

Re: How much memory do I have - HP 9000 "N"

Sridhar Bhaskarla
Honored Contributor

Re: How much memory do I have - HP 9000 "N"

John,

Couple of many ways.

1. grep Physical /var/adm/syslog/syslog.log (or wherever your log file is)
2. cstm
>selclass type memory
>information
>infolog
(Check the Physical Memory here)
>exit
>ok

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor

Re: How much memory do I have - HP 9000 "N"

Hi,
If it is HP-UX 11 with 64 bit

then
echo phys_mem_pages/D |adb64 -k /stand/vmunix /dev/kmem

or else
echo phys_mem_pages/D |adb /stand/vmunix /dev/kmem

-USA..
Good Luck..
linuxfan
Honored Contributor

Re: How much memory do I have - HP 9000 "N"

Hi John,

Another easy way to find out the physical memory is /usr/sam/lbin/getmem
(gives the memory in MB)

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
harry d brown jr
Honored Contributor

Re: How much memory do I have - HP 9000 "N"

This will work for a "one liner":


echo "slclass product memory;info;wait;il\ndone\nexit\nok">doit;stm -c -f ./doit
|grep -i "Total Configured Memory"

live free or die
harry
Live Free or Die
Roger Baptiste
Honored Contributor

Re: How much memory do I have - HP 9000 "N"

Another way is to
Run glance
press m (for memory)
It shows the physical memory

-R
Take it easy.
Michael Tully
Honored Contributor

Re: How much memory do I have - HP 9000 "N"

Hi,

Have a look at this link, it has the command
line option for all HPUX OS levels.

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=b40e2e111819dd375b/screen=ckiDisplayDocument?docId=200000055102650

HTH
-Michael
Anyone for a Mutiny ?