cancel
Showing results for 
Search instead for 
Did you mean: 

Physical Memory

unixguy_1
Regular Advisor

Physical Memory


Hi,
How to check the exact physical memory in
HP-UX Server?

Pls any one help me out.

Regards,
R.Sekar.
14 REPLIES
Bill Hassell
Honored Contributor

Re: Physical Memory

Run sam and select:

-->Performance Monitors
---->System Properties
------>tab to Memory

or just run the program:

print_manifest


Bill Hassell, sysadmin
unixguy_1
Regular Advisor

Re: Physical Memory


Hi,

Any other commands to show the exact memory details.

If the server is romote server,iam not able to use the SAM,that time is there any commands to check the exact memory.

and how toc heckt he memory capacity in newly installed server.

Pls give the full details.

Regards,
Unixguy.
James R. Ferguson
Acclaimed Contributor

Re: Physical Memory

Hi:

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

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Physical Memory

Hi (again):

If your server is of the Itanium class, simply use:

# machinfo

Regards!

...JRF...
unixguy_1
Regular Advisor

Re: Physical Memory


How to find that server is itanum server or PA-Risc Server

Pls give the different command to check the exact memory.

Pls guide me

Regards,
R.Sekar.
Bill Hassell
Honored Contributor

Re: Physical Memory

> If the server is romote server,iam not able to use the SAM,

SAM runs just fine as a remote program. Are you saying that you cannot login as root? If so, then you will have to run the print_manifest or the cstm command as an ordinary user.

print_manifest

or

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

Both will produce a lot of details so you have to filter them with grep:

print_manifest | grep -i main.memory

or

echo "selclass qualifier memory;info;wait;infolog" | cstm | grep -i total.physical


Bill Hassell, sysadmin
Johnson Punniyalingam
Honored Contributor

Re: Physical Memory

Hi Unixguy,

>>How to check the exact physical memory in
HP-UX Server?
<<

dmesg | grep -i Phyical Memory

do you have Glance "installed" You can check using that

step1:- glance
Once the glance screen appears"
type m
(will show you extact Phyical memory)

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Sani
Frequent Advisor

Re: Physical Memory

Hi

Use ;

machinfo|grep Memory
Jeeshan
Honored Contributor

Re: Physical Memory

in PA-RISC machine

#print_manifest|grep Memory

in IA(Itanium) machine

#machinfo|grep Memory
a warrior never quits
James R. Ferguson
Acclaimed Contributor

Re: Physical Memory

Hi (again):

> How to find that server is itanum server or PA-Risc Server

Simply do:

# uname -m

The output for Itanium will be "ia64".

The output for PA-RISC processors will be something like "9000/800". THe "9000" is the HP9000 series of UNIX machines.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Physical Memory

Try this (as root):

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
Avinash20
Honored Contributor

Re: Physical Memory

Aparrt from the above answers, you could also use

cat /var/adm/syslog/syslog.log| grep Physical

Please assing point to the post
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Arturo Galbiati
Esteemed Contributor

Re: Physical Memory

Hi Sekar,
# To get RAM size in KB
perl -e 'local($PSTAT,$PSTAT_STATIC,$mem_info,$PSTAT_STRUCT)=(239,2,"\0"x120,"LI4L");
syscall($PSTAT,$PSTAT_STATIC,$mem_info,length($mem_info),1,0);
print "RAM=".int((unpack($PSTAT_STRUCT,$mem_info))[4]*((unpack($PSTAT_STRUCT,$mem_info))[5])/(1024*1024))."\n";'

HTH,
Art
Peter Nikitka
Honored Contributor

Re: Physical Memory

Hi Sekar,

I think, the memconf-utility fits for you. It selects the type of host by itself. Look here:
http://www.4schmidts.com/unix.html

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"