1827435 Members
5191 Online
109965 Solutions
New Discussion

Syetem check

 
Eric Jacklin
Regular Advisor

Syetem check

Hi,

If i want to check current running memory configration in my hp unix server then how should i check ?

3 REPLIES 3
Reshma Malusare
Trusted Contributor

Re: Syetem check

Hi Jitendra,
For memory configuration refer following link:
http://docs.hp.com/en/5991-1247/ch08s05.html
Mridul Shrivastava
Honored Contributor

Re: Syetem check

check dmesg and you will find the physical memory size there.. or you can execute the following command and this will give you more detail about the memory modules:

# echo "gop cstmpager cat;scl type mem;info;wait;il"|cstm > /tmp/mem.out
Time has a wonderful way of weeding out the trivial
Arturo Galbiati
Esteemed Contributor

Re: Syetem check

Hi,
you can use this PERL command from any user.
This is not mine, i'm sorry but I'm not sure who's teh author, Heine probably.

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