How do I get percentage CPU utilization using ssCpuRawIdle?

malar vizhi <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello folks,

Am bit confused to calculate the percentage of ssCpuRawIdle or ssCpuRawNice
or ssCpuRawSystem or ssCpuRawUser of host.

I think ssCpuIdle will give exact percentage value which top command
shows..but when we see the mib, it is deprecated one. So, We should start of
using "raw counters". I came to know from net-snmp forums, need to take two
readings of this object, and find the difference between them. That
difference divided by the total number of 'ticks' between the two readings
(probably 0.01 seconds) will give you the percentage utilization.

And this is the forum where our Dave has replied as above...

http://osdir.com/ml/network.net-snmp.user/2004-02/msg00369.html

Where I have freezed is to calculate the total number of ticks...How should
I calculate the total no of ticks?..or will it be always  0.01 seconds for
all OS?...

Thanks in Advance....

Malar

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.