Operating System - HP-UX
1837081 Members
2451 Online
110112 Solutions
New Discussion

Re: how to find the RAM size on HP machine

 
SOLVED
Go to solution
madhavabk
Regular Advisor

how to find the RAM size on HP machine

Hi
i am using pa-risc 11.11 HP machine i want to find the RAM size on the machine, I am putting this info in java program so i dont want any command that has | (PIPE) symbol.
13 REPLIES 13
Kennethyap
Frequent Advisor

Re: how to find the RAM size on HP machine

use this command
#dmesg
will display the total physical memory
Kennethyap
Frequent Advisor

Re: how to find the RAM size on HP machine

U can the the physical memory module by going in to the main menu after server boot -up.
In main menu going to information and select "me"
Anitha_3
Frequent Advisor

Re: how to find the RAM size on HP machine

hi,

u can use

#dmesg |more --- look for physcal memory

or
#more /var/adm/syslog/syslog.log

regards,
Govind.
madhavabk
Regular Advisor

Re: how to find the RAM size on HP machine

Sorry, This solution does not work.

I am looking at some command that will give me some details from which i can take the RAM size and the size info should be in fixed pattern so that i can parse. i am using the command in the java program. In the syslog or dmesg the location and contents will change dynamically.
Nguyen Anh Tien
Honored Contributor

Re: how to find the RAM size on HP machine

you should use cstm tool (just type cstm at command line). and then type:
sall
il


find the size of each RAM on slot correcponding!
HP is simple
Yogeeraj_1
Honored Contributor
Solution

Re: how to find the RAM size on HP machine

hi,

check if the following command helps!

echo "selclass qualifier memory;info'wait;infolog" | cstm

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: how to find the RAM size on HP machine

hi again,

attached. file containing output from my L-classe.

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
madhavabk
Regular Advisor

Re: how to find the RAM size on HP machine

Hi
i am right now using the command
echo "selclass qualifier memory;info'wait;infolog" | cstm itself but this the pipe symbol is not taken by the java program. The API i am using is getRuntime.exec()

Thanks
Bharat Katkar
Honored Contributor

Re: how to find the RAM size on HP machine

Hi,
See if this one works.

# dmesg | grep Physical

Regards,
You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor

Re: how to find the RAM size on HP machine

We can do get with SAM as,

sam --> Performance Monitors --> System Properties --> Memory
Physical Memory: ..... MB

HTH.
Easy to suggest when don't know about the problem!
Geoff Wild
Honored Contributor

Re: how to find the RAM size on HP machine

Or use the attached script called hpmem.

# hpmem
HP-UX svr003 B.11.11 U 9000/800 250123456 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 806 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 16384
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 8


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Muthukumar_5
Honored Contributor

Re: how to find the RAM size on HP machine

We can get RAM size from with dmesg command as,

dmesg | awk '/Physical/ { print "RAM Size = "$2/1024" "MB }'

HTH.
Easy to suggest when don't know about the problem!
Pete Randall
Outstanding Contributor

Re: how to find the RAM size on HP machine

This little script will do it for you:

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