Operating System - HP-UX
1819803 Members
3047 Online
109607 Solutions
New Discussion юеВ

Re: How to obtain the CPU utilization for each CPU??

 
Kenneth Leung_2
Frequent Advisor

How to obtain the CPU utilization for each CPU??

Instead of using the "top" utility, I would like to know how I can obtain the per CPU utilization. In fact, I would like to develop a monitoring script for such task. Please help. Thanks a lot.
4 REPLIES 4
G. Vrijhoeven
Honored Contributor

Re: How to obtain the CPU utilization for each CPU??

Hi,

You can user SAR:

#sar -M -u 5 5
Regards,


Gideon
Joseph Loo
Honored Contributor

Re: How to obtain the CPU utilization for each CPU??

hi,

try:

# sar -Mu 5 20

for each CPU.

regards.
what you do not see does not mean you should not believe
Siddhartha M
Frequent Advisor

Re: How to obtain the CPU utilization for each CPU??

You could also invoke glance and use the following keys to bring up the corressponding reports:

"a" -Cpu by processor report" and
"c" -Cpu report

-Siddhartha
Marco Santerre
Honored Contributor

Re: How to obtain the CPU utilization for each CPU??

You could also used the MeasureWare Metrics and build a script using the Metrics BYCPU_ (there's a couple of them that you could use eg. BYCPU_CPU_TOTAL_UTIL)

Cooperation is doing with a smile what you have to do anyhow.