Operating System - HP-UX
1751741 Members
5877 Online
108781 Solutions
New Discussion юеВ

Physical Memory of HO-UX Machine

 
Dheeraj Tanwar
Occasional Contributor

Physical Memory of HO-UX Machine

Hi,

Can anyone help me to get a command to find out total physical memory installed in a hp-ux machine. I have HP - 9000 A ClASS A180 Server.

Thanks
Dheeraj
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: Physical Memory of HO-UX Machine

Do

# echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Suraj K Sankari
Honored Contributor

Re: Physical Memory of HO-UX Machine

Hi,
From Top command you can get the size of your physical memory or in the command prompt you can give this commands also.

#dmesg | grep -i phy

On Integrity use
#machinfo

on PA-RISC
#echo "selclass qualifier memory; info, wait; infolog" | cstm > /tmp/meminfo

or

#print_manifest|grep -i mem"

Suraj
Kapil Jha
Honored Contributor

Re: Physical Memory of HO-UX Machine

swapinfo -atm
would also give u physical memory.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
R.K. #
Honored Contributor

Re: Physical Memory of HO-UX Machine

Hi..

You can use cstm:
root> cstm
cstm>map
cstm>sel dev 30 <-- (30 is the dev num for my memory)
cstm>info
cstm>il

OR use sam:

SAM > Performance Monitors > System Properties > Memory

Regds..
Don't fix what ain't broke
Hakki Aydin Ucar
Honored Contributor

Re: Physical Memory of HO-UX Machine

Here is my favorite , I got in the forum and little bit modified it show CPU and MEMORY , this is why I love these site:

#!/bin/sh

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"

MEM=$(echo "phys_mem_pages/D" \
| adb -k /stand/vmunix /dev/kmem \
| awk -F: 'NR>1 {print $2/256}' )
echo `hostname` has $MEM MB MAin Memory

Arturo Galbiati
Esteemed Contributor

Re: Physical Memory of HO-UX Machine

Hi,
this should run: (sorry but I cannot test it now)

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
Fabio Ettore
Honored Contributor

Re: Physical Memory of HO-UX Machine

Hi,

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

gives you the Physical memory.

For Kapil: memory line in swapinfo has nothing to do with Physical memory, it's the pseudo-swap.

Best regards,
Fabio
WISH? IMPROVEMENT!