System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring CPU Utilization For Some Period

 
SOLVED
Go to solution
Adisuria Wangsadinata_1
Honored Contributor

Monitoring CPU Utilization For Some Period

My ITRC Family members,

I would like to know how to monitor CPU Utilization for some period, for example for a week or month. I have glance software on my system :

# swlist -l product |grep Glance
Glance C.03.72.00 HP GlancePlus/UX

Need your help to send me the information about how to, or maybe even an example script for me to try.

The purpose of this is to get the trend of CPU Utilization on my system per some period, so we will know the behaviour of our love one 8-).

Thanks in advance.

Cheers from Singapore,
AW
now working, next not working ... that's unix
8 REPLIES 8
Eknath
Trusted Contributor

Re: Monitoring CPU Utilization For Some Period

Hi Adi,

How about running sar/top from cron.
Also i know clance plus can be used to monitor but not aware how to configure it. May be we need to refer to glance plus manuals..

Thanks
eknath
Con O'Kelly
Honored Contributor

Re: Monitoring CPU Utilization For Some Period

Hi AW

Glance will only really help with real time analysis of CPU.

You need measureware (OVPA) to collect historical performance Data.

If you have Measureware you can use the 'extract' command to extract performance data for a specificied period. Even better if you have PerfView or Performance Manager as it is very easy with these product to analyse a whole range of performance metrics over a specified time.

If you don't have Measureware, look at using sar to collect Performance Data. It can be configured in cron.

A man sa1 will show you how to configure sar in cron to collect data.

Cheers
Con

Adisuria Wangsadinata_1
Honored Contributor

Re: Monitoring CPU Utilization For Some Period

Hi,

Thanks for your reply, really appriciate it.

Anyone have an example script for sa, looks this basic command can be use for this purpose 8-).

I have MeasureWare software, anyone have a details steps for this.

# swlist -l product |grep MeasureWare
MeasureWare C.03.72.00 MeasureWare Software/UX

Again, many thanks for your help.

Cheers,
AW
now working, next not working ... that's unix
Yogeeraj_1
Honored Contributor

Re: Monitoring CPU Utilization For Some Period

hi AW,

below 2 links that will help you getting started:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=915170
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=742187


hope these help!
regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Bejoy C Alias
Respected Contributor

Re: Monitoring CPU Utilization For Some Period

U can add this in ur cron to create and append the cpu utilization from sar to a text file in every hour
0 * * * * /usr/bin/date >> /tmp/monitor && /ust/sbin/sar 1 5 >> /tmp/monitor
Modify the timing as per ur need
Be Always Joy ......
DCE
Honored Contributor

Re: Monitoring CPU Utilization For Some Period

Since you have measueware installed - you probalby already have the data you are looking for.

There are several ways to view the data. One is PerfView - an added cost GUI. Another is to use the extract command a man on extract will give you a good idea how extensive the data is.

You can customize the measure data collection in /var/opt/perf/parm. /var/opt/perf/datafiles is where MW stores its data

Dave
Sanjay_6
Honored Contributor
Solution

Re: Monitoring CPU Utilization For Some Period

Adisuria Wangsadinata_1
Honored Contributor

Re: Monitoring CPU Utilization For Some Period

My ITRC family,

Thanks for your help.
It's great to have this forum 8-).

Success to all of you and GBU.

Cheers,
AW
now working, next not working ... that's unix