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

Get memory utilization on HP 11.i server

 
SOLVED
Go to solution
Jay_122
Advisor

Get memory utilization on HP 11.i server

Looking for a way to get the % memory used on an HP 11.i server using command line or perl script. I can get it from Glance, but would like to create a script to run and write it to a file.

Thanks
5 REPLIES 5
RAC_1
Honored Contributor

Re: Get memory utilization on HP 11.i server

Run the glance in adviser mode.

man glance for details.
There is no substitute to HARDWORK
TwoProc
Honored Contributor

Re: Get memory utilization on HP 11.i server

vmstat | tail -1 | awk '{ print $4 }'
We are the people our parents warned us about --Jimmy Buffett
TwoProc
Honored Contributor

Re: Get memory utilization on HP 11.i server

vmstat | tail -1 | awk '{ print $4 }'
but that's not percent...

You probably get more or better information via something like what I snagged from this forum just a few days back from someone else's post... (sorry I lost the original poster's name)...

Try scripting up a solution from some of the following:

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

physmem:
physmem: 24576

for 32 bit HP-UX 11.x systems :

example:

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

phys_mem_pages:
phys_mem_pages: 24576

for 64 bit systems :

example:

echo phys_mem_pages/D | adb64 /stand/vmunix /dev/mem

phys_mem_pages:
phys_mem_pages: 262144


To determine the amount of lockable memory for 32 bit systems :

example:

echo total_lockable_mem/D | adb /stand/vmunix /dev/mem

total_lockable_mem:
total_lockable_mem: 185280

for 64 bit systems :

echo total_lockable_mem/D |adb64 /stand/vmunix /dev/mem

total_lockable_mem:
total_lockable_mem: 283750
We are the people our parents warned us about --Jimmy Buffett
Hoang Chi Cong_1
Honored Contributor
Solution

Re: Get memory utilization on HP 11.i server

Hi Jay

Let check the script that I attached.
It is helps full to mornitor memory utilization.

Regard,
HoangChiCong
Looking for a special chance.......
Jay_122
Advisor

Re: Get memory utilization on HP 11.i server

Thanks to all