Operating System - HP-UX
1827249 Members
3128 Online
109716 Solutions
New Discussion

Re: How to measure CPU performance for the last hour?

 
Deepu Chakravarty
Regular Advisor

How to measure CPU performance for the last hour?

Hi,
I have rp7420 server with HPUX 11.11 OS.
I want to measure CPU performance for the last hour on the server. Means every hour one system report can be generated which will say how CPUs were used for the last hour. Average CPU usage in the last hour. Is it possible to have this kind of report?
If yes, please help to build this report.

Thanks.
6 REPLIES 6
Yashwant
Valued Contributor

Re: How to measure CPU performance for the last hour?

sar -u [-s time] [-e time]

The starting and ending times of the report can be bounded via the -s and -e time arguments of the form hh[:mm[:ss]]. The -i option selects records at sec-second intervals.

Please refer man pages of sar
Ivan Krastev
Honored Contributor

Re: How to measure CPU performance for the last hour?

Another option is to view with glance -c.

regards,
ivan
Steven E. Protter
Exalted Contributor

Re: How to measure CPU performance for the last hour?

Shalom,

http://www.hpux.ws/?p=6

Take a look at the code in there.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sharma Sanjeev
Respected Contributor

Re: How to measure CPU performance for the last hour?

Hi

You can use sar,Glance and Perf View
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Deepak Kr
Respected Contributor

Re: How to measure CPU performance for the last hour?

Hi,

Try making a simple script for cron using sar commands.
Refer to man sar for more details..

Regds,

Deepak.
"There is always some scope for improvement"
Emil Velez
Honored Contributor

Re: How to measure CPU performance for the last hour?


if you have measureware on the box you already have the data

extract -xp -G -f /tmp/rxlog_cpu.txt

-G is for global 1 hour summaries.
if you create a report template you will get less metrics.