From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98628706413192.tru64-unix-managers.marc@archive.invalid> From: Hannes Visagie Date: Tue, 03 Apr 2001 08:35:57 +0000 To: tru64-unix-managers Subject: SUMMARY: How to calc snmp CPU stat counters to % 0..100 ? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98628706413192 No answers yet, but figured out I need to get the delta values. Confirmed this with viewing pm cpuanal script. Get all stats, wait 5 seconds, gets all stats2. Delta = stats2 - stats. set sum_delta [expr $delta_idle + $delta_sys + $delta_nice + delta_user] set percent_idle [expr ($delta_idle.0/$sum_delta.0)*100.0] set percent_user [expr ($delta_user.0/$sum_delta.0)*100.0] set percent_sys [expr ($delta_sys.0/$sum_delta.0)*100.0] -----Original Message----- From: Hannes Visagie [mailto:visagi_h@mtn.co.ug] Sent: Tuesday, 03 April, 2001 11:00 AM To: Tru64 Unix Managers Subject: How to calc snmp CPU stat counters to % 0..100 ? Hi all. I am reading the cpu's stats with /bin/getmany .... and get the following results. When I run Performance monitor, CPU0 is just about 98% idle, and CPU1 is 99 User busy. So now how to I calculate to get to 99% cpu1 user time, and 1% cpu0 user time. I will summarize with previous post: best tool for performance monitor. Please remember these are counters. {The grow} Thanks Hannes pmAoCuUser0 = 52559786 pmAoCuUser1 = 94770158 pmAoCuNice0 = 558371 pmAoCuNice1 = 759730 pmAoCuSystem0 = 71904431 pmAoCuSystem1 = 37332585 pmAoCuIdle0 = 981642453 pmAoCuIdle1 = 965193633