Re: Solaris ssCpuRawIdle counter update rate?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 16 March 2010 15:55, Brendan Woodward <[email protected]> wrote:
> I am using the ssCpuRawIdle counter on a Solaris system to measure the
> number of "ticks" spent idle over a given period of time.


> I have found that this counter only updates every 5 seconds and would really
> like to be able to query the value at 1 second intervals.
>
> Is there an easy way to change the update rate for this and other similar
> counters?

Depending on which version of the agent you are using,
this is controlled by either:

mibgroup/ucd-snmp/vmstat_solaris2.c:250:
   if (snmp_alarm_register(5, NULL, update_stats, NULL) == 0)

or

mibgroup/hardware/cpu/cpu.c:9
   static int _cpuAutoUpdate =  5;

mibgroup/hardware/cpu/cpu.c:39
   _cpu_cache = netsnmp_cache_create( 5, netsnmp_cpu_arch_load, NULL,



Changing '5' to '1' and recompiling the agent should increase the
polling frequency.

If you're using the newer code (hardware/cpu), it *might* be possible to
amend this via the nsCacheTable,  but I suspect it doesn't currently
work that way.

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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.