Operating System - HP-UX
1833792 Members
2142 Online
110063 Solutions
New Discussion

Script to monitor Memory Utilisation

 
vchozhan
Occasional Contributor

Script to monitor Memory Utilisation

Hi Friends,

I wanted to monitor the Memory utilisation of my system (HPUX 11.00), with some time intervals (may be every one hour) in a day, with time stamp.

Any good script to do this? With maximum possible details of memory (used/free/percentage of Util).

Can anyone have this already kindly help me.

Thanks in Advance,
VChozhan
6 REPLIES 6
Rainer von Bongartz
Honored Contributor

Re: Script to monitor Memory Utilisation

why not use sam ??




He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Bill McNAMARA_1
Honored Contributor

Re: Script to monitor Memory Utilisation

Perhaps
# /usr/sam/lbin/getmem
might give you something interesting although top and glance would be the prefered utils to use although they don't apply well for scripting purposes.

Later,
Bill
It works for me (tm)
Magdi KAMAL
Respected Contributor

Re: Script to monitor Memory Utilisation

Hi vChozhan,

You may execute the following command :
1.
vmstat -S n1 n2
-> n1 : frequency expressed in seconds.
-> n2 : Number of times the output reporting will be displayed.

This gives information about
- swap in
- swap out
- page in
- page out
- active virtual memory
-

2. top command, and have a look on :
- Real memory.
- Virual memory.
- Free memory.


Beside, there is a wonderful software it's name is " View Point " of Datametric, which collect information about nearly every thing :

CPU, Memory, Disks, Network and all its subcomponents.

I used it and I'm really satisfied.

Hope this could help.

Magdi
Magdi KAMAL
Respected Contributor

Re: Script to monitor Memory Utilisation

Hi again,

Of course bill and federico, glance would be the best to do this task.

Vincenzo Restuccia
Honored Contributor

Re: Script to monitor Memory Utilisation

`echo "physmem/D" | adb /stand/vmunix /dev/kmem | tail -1 | awk '$2 > 0 {print $2 / 256 , "MByte" }'`


adb /stand/vmunix /dev/kmem | tail -1 | awk '{print $2}'`


echo "selclass qualifier memory;info;wait;infolog"|cstm