Operating System - HP-UX
1826427 Members
3802 Online
109692 Solutions
New Discussion

knowing physical memory on B.11.00 server

 
SOLVED
Go to solution
prasadb
Super Advisor

knowing physical memory on B.11.00 server

hello experts,

I have one server of version B.11.00.
print_manifest works on the versions B.11.11 and B.11.23 but it doesn't work on the older version. so how can i know the memory in this server ?


please help
17 REPLIES 17
Steven E. Protter
Exalted Contributor

Re: knowing physical memory on B.11.00 server

shalom,

swapinfo -tam

Will display physical and virtual memory quite nicely.

As will top

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vihang.
Trusted Contributor

Re: knowing physical memory on B.11.00 server

Hi Prasad,

You can find the physical memory using SAM.

SAM --> Performance Monitors --> System Properties --> Memory
Or else, use below command,

# dmesg | grep Physical

Regards,
Vihang.
SUDHAKAR_18
Trusted Contributor

Re: knowing physical memory on B.11.00 server

Hello,

dmesg.

and

glance -->m (for memory)

Torsten.
Acclaimed Contributor

Re: knowing physical memory on B.11.00 server

Try this:

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!   
Sharma Sanjeev
Respected Contributor

Re: knowing physical memory on B.11.00 server

Hi

CSTM or dmesg | grep Physical will work

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Kenan Erdey
Honored Contributor

Re: knowing physical memory on B.11.00 server

Hi,

echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem

for 64 bit multiply it 4096 to see in bytes.

Kenan.
Computers have lots of memory but no imagination
Prashanth Waugh
Esteemed Contributor

Re: knowing physical memory on B.11.00 server

Hi,

Its very simple
glance -m

regards
atul
For success, attitude is equally as important as ability
prasadb
Super Advisor

Re: knowing physical memory on B.11.00 server

Thanks all for their valuable support..

Here is the o/p i got the commands from above



1.only SAM has worked in my case..
2.dmesg | grep Physical didn't work
3.echo "selclass qualifier memory;info;wait;infolog" | /usr/sbin/cstm gave the o/p

cstm>selclass qualifier memory;info;wait;infolog
^-- (SelClass) is currently disabled. --



output of

4.# echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
Error from elf64_getehdr(application core file)
Not an Elf file: No Elf header
phys_mem_pages:
phys_mem_pages: 524288


O/p of glance -m

5.# glance -m

Welcome to GlancePlus



===================== GlancePlus Fatal Error =====================
Version: GlancePlus C.02.40.00
User : ib_prasatu(/dev/pts/tu) Date: Mon Aug 11 16:48:34
File : /crm/gp/source/glance/terminal.c Line: 180
System : dlora01 B.11.00 9000/800

Unable to initialize terminal.
ansi is not a supported terminal.
======================================================================
prasadb
Super Advisor

Re: knowing physical memory on B.11.00 server

i am looking forward to know any single command like print_manifest which will give me the value of physical memory
Vihang.
Trusted Contributor

Re: knowing physical memory on B.11.00 server

Hi Prasad,

If dmesg | grep Physical is not working, try below command.
# grep Physical /var/adm/syslog/syslog.log
prasadb
Super Advisor

Re: knowing physical memory on B.11.00 server

Hi vihang..

Thanks for the reply..but id doesn't work too..

Vihang.
Trusted Contributor
Solution

Re: knowing physical memory on B.11.00 server

Hi Prasad,

Then I guess you would have to rely on Glance. Try changing your terminal to vt100 before running Glance.

# export TERM=vt100
# glance (Press M for memory details)


Regards,
Vihang.
prasadb
Super Advisor

Re: knowing physical memory on B.11.00 server

hello vihang

your last solution worked for me..

but tell me what this command

export TERM=vt100 makes the difference as previously glance -m didn't work.
Vihang.
Trusted Contributor

Re: knowing physical memory on B.11.00 server

Hi Prasad,

The export TERM=vt100 commands sets you terminal to vt100. Glance will only work on certain types of terminals. Initially, it was giving error because your terminal was set to "ansi".


Regards,
Vihang.
Don Morris_1
Honored Contributor

Re: knowing physical memory on B.11.00 server

Why not just use pstat (that's one of the things it is there for, after all -- and then you should work on 11.0, 11.11, 11.23, 11.31, etc.).

Sample code attached, compiled on an 11.11 system with just "cc +DD32 -o phys_bytes phys_bytes.c". [You may have to find a machine with the ANSI C compiler to do this -- I don't think in pure K&R C anymore].
Dennis Handly
Acclaimed Contributor

Re: knowing physical memory on B.11.00 server

Here are some previous threads on this issue:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1242952
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1179723

>SEP: swapinfo -tam Will display physical ...

Only an approximation, the 7/8 rule.

>Sanjeev: dmesg | grep Physical

This won't work if the system has been up for awhile.
prasadb
Super Advisor

Re: knowing physical memory on B.11.00 server

thanks all