Operating System - HP-UX
1835931 Members
1947 Online
110088 Solutions
New Discussion

Re: Monitor CPU/Mem Utilization on HP-UX

 
SOLVED
Go to solution

Monitor CPU/Mem Utilization on HP-UX

Anyone have any suggestions on a "QUIK" way to log Memory and CPU Utilization on a N4000 running HP-UX-11i????
New to HP,
4 REPLIES 4
Camel_1
Valued Contributor
Solution

Re: Monitor CPU/Mem Utilization on HP-UX

MWA measureware is the best tools to log the system utilization.

Simon
Bill Hassell
Honored Contributor

Re: Monitor CPU/Mem Utilization on HP-UX

The various options for sar will track the information and you can have sar create logs. However, HP-UX memory and CPU usage is not going to be very useful as far as capacity and performance. HP-UX is a virtual memory system so true usable memory is measured by swapinfo, and undersized RAM is measured by vmstat, specifically the po column. CPU usage is completely driven by the applications, some may use all of the CPU and be normal.


Bill Hassell, sysadmin
Sundar_7
Honored Contributor

Re: Monitor CPU/Mem Utilization on HP-UX

Hi,

You have SAR to log the CPU utilization and as far as memory is concerned, you can setup a cron job using vmstat to capture the virtual memory activity along with the swapinfo ouput.

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Geoff Wild
Honored Contributor

Re: Monitor CPU/Mem Utilization on HP-UX

Hmnnn...you could use top - redircet to a file...

Quick and dirty:

#!/bin/sh
cat top.txt >> top.save.txt
top -f > top.txt

Then run it from cron every 5 minutes?

Also look at sar as others have suggested...
From cron:
# SAR
#0 * * * 0,6 /usr/lib/sa/sa1
#0 5-19 * * 1-5 /usr/lib/sa/sa1 1200 3
#0 20-4 * * 1-5 /usr/lib/sa/sa1
#5 19 * * 1-5 /usr/lib/sa/sa2 -s 5:00 -e 19:00 -i 3600 -A
0 * * * 0-6 /usr/lib/sa/sa1
10,20,30,40,50 5-19 * * 1-5 /usr/lib/sa/sa1
5 18 * * 1-5 /usr/lib/sa/sa2 -s 5:00 -e 19:01 -i 600 -A


Better to have measureware/perfview (extra cost) installed...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.