Memory utilization in HP unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Memory utilization in HP unix
# 1  
Old 07-02-2010
Memory utilization in HP unix

Hi,

I am creating monitoring scripts in HP unix for that i need CPU utilization and memory utilization in HP unix.

for CPU utilization i am using TOP command
for Memory utilizaion i am not able to use glance command in scripts.

means i am not able to redirect and stop.

apart from glance command is there any command to get mem utilization.
or any calculation there.

Please suggest me.

Regards,
Siva
# 2  
Old 07-02-2010
It is possible to run glance from a script. See "man glance" for the command line options.
Unfortunately it will not do just one iteration but it is quite easy to fish out the figures you want and they are more reliable than those from "vmstat".

One example: The "-m" switch is the same as typing "m" in interactive mode. In my version the "-iterations 0" actually becomes "-iterations 2" because of a limitiation in "glance". The "-f myglancelog" writes the output to a file called "myglancelog". the "1>/dev/null" disposes of the normal screen output.

Code:
glance -m -iterations 0 -f myglancelog 1>/dev/null



BTW. For cpu utilisation I'd use "sar".

If you are doing serious realtime monitoring rather than the odd snapshot there are pay products from HP.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Need help on memory utilization.

I have run the utility nmon in aix 6.1, and found memory utilization is 99.9% in physical. and pressed h key and then t , in that it is not showing single process which is consuming memory resources. please help me how to find out actual memory utilization. wheather 99% is real memory... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

2. Red Hat

CPU Utilization and Memory Utilization of Services and Applications

Hi, i am new to linux/RHEL 6.0 and i have two questions. 1) How to get the CPU utilization and Memory Utilization of all Services running currently? 2) How to get the CPU utilization and Memory Utilization of all Applications running currently? Please help me to find the script. ... (2 Replies)
Discussion started by: nossam
2 Replies

3. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

4. Solaris

i have conflict with memory utilization

dear all, kindly i want to check my server memory utilization i used alot of commands but i want to make sure that it is acurate let me explain i have a server which has 32GB RAM Total Memory = 33423360 kb Free Memory = 4172568 kb Utilized Memory = 29250792 kb Memory Utilization... (2 Replies)
Discussion started by: maxim42
2 Replies

5. HP-UX

memory utilization

command for checking memory utilization in HP -UX (2 Replies)
Discussion started by: tushar_spatil
2 Replies

6. AIX

Memory Utilization

Hi friends i have a query. we have two p-series machine(p550 & p570) with HACMP 5.3 and AIX 5.3 hosting SAP. Now i need to now is there a way or a command to check the memory utilization on these machines on daily basis. I have tried vmstat and iostat but still it's not clear. We have... (3 Replies)
Discussion started by: nathandrake13
3 Replies

7. Shell Programming and Scripting

Memory Utilization

Hi, Is it possible to obtain physical memory and swap memory available in HP-UX server. I tried using "top" command but i'm not able to grep the memory part exclusively... Thanks.... (4 Replies)
Discussion started by: EmbedUX
4 Replies

8. Shell Programming and Scripting

Unix Script to find and kill a process with high memory utilization

Hi Unix Gurus i am somewhat new to unix scripting so need your help to create a script as below. # This script would find the process consuming memory beyond a certain #limit. if the meemory consumption is more than 100% for a period of 1 # minute for the specific process. the script would... (0 Replies)
Discussion started by: robinforlinux
0 Replies

9. HP-UX

more memory utilization in ux Servers

Hi, Please let me know what are all the reasons in increase in the Memory utilisation of ux servers, and the solutions to face those issues caused by the memory utilisation (memeory Likage)? Thanks in Advance! regards, kishan (2 Replies)
Discussion started by: kishan
2 Replies

10. AIX

Memory Utilization

All, The (fre) coloumn of the (vmstat) command, does it report the size of the free list including the swap space or it only report on the RAM (physical memory). BR, (1 Reply)
Discussion started by: Negm
1 Replies
Login or Register to Ask a Question