Operating System - HP-UX
1834133 Members
2178 Online
110064 Solutions
New Discussion

how to view size of Ram by command line???

 
SOLVED
Go to solution
Doantien
Occasional Contributor

how to view size of Ram by command line???

Hi all!!!
Now, I have a rp3440, running HP-UX 11i. I want to check size of Ram (physical size of RAM)on it (I try it witch vmstat command but result is not physical size of RAM).
plz help me!!!
11 REPLIES 11
Oviwan
Honored Contributor

Re: how to view size of Ram by command line???

Hey

If you have ignite check for print_manifest.

/opt/ignite/bin/print_manifest

Regards
Doantien
Occasional Contributor

Re: how to view size of Ram by command line???

Thanks Ovivan!!!
Oviwan
Honored Contributor
Solution

Re: how to view size of Ram by command line???

You are welcome.

Say thanks with hp points ;)

http://forums.itrc.hp.com/service/forums/bizsupport/helptips.do?#28
Safarali
Valued Contributor

Re: how to view size of Ram by command line???

try the command machinfo it will get all information including RAM
Say thanks with points

Regards
Safar
Torsten.
Acclaimed Contributor

Re: how to view size of Ram by command line???

There is no "machinfo" command fpr PA-RISC systems, but run

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

will help you.

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!   
Arturo Galbiati
Esteemed Contributor

Re: how to view size of Ram by command line???

Hi,
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
Ludovic Derlyn
Esteemed Contributor

Re: how to view size of Ram by command line???

hi

dmesg |grep -i physical

regards
L-DERLYN
karthik_in83
Frequent Advisor

Re: how to view size of Ram by command line???

use this, it will help u

dmesg |grep -i physical

by kk
Torsten.
Acclaimed Contributor

Re: how to view size of Ram by command line???

@karthik_in83 :

Try

echo off

to yourself - repeating other posts is not helpful at all :-(

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!   
ln_unix
Frequent Advisor

Re: how to view size of Ram by command line???

Type this command:

dmesg | grep -i phy

or just go to this location only:

cat /var/opt/ignite/local/manifest/manifest.info | more

on this location you'll find the size of RAM.

Lokesh Nagpal.
Dennis Handly
Acclaimed Contributor

Re: how to view size of Ram by command line???

>Lokesh: dmesg | grep -i phy

The problem with dmesg(1m) is that the buffer may have been overwritten. (And you have to be root.)

>cat .../manifest/manifest.info | more

There is no real reason to use both cat(1) and more(1) in the same pipeline. more(1) will work perfectly well on a file. Unless you enjoy making more(1) sweat because it is working on a pipe? ;-)