Re: unable to disable 30sec. caching?

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 22/08/07, johnrembo <[email protected]> wrote:
> As far as I understand it should immediately update snmp counters with the
> fresh values instead of caching them for 30sec, at least man page says so:
>
>   "The agent caches the exit status and STDOUT of  the  exe-
>    cuted  program  for  30  seconds after the initial query.
>    This is to increase speed  and  maintain  consistency  of
>    information for consecutive table queries.  The cache can
>    be  flushed  by  a  snmp-set  request  of  integer(1)  to
>    1.3.6.1.4.1.2021.100.VERCLEARCACHE."

This text is contained in the description of the 'exec' directive,
and refers specifically to that particular table.   It is not automatically
applicable to all cached data.


>    .....  This works fine on freebsd machines with net-snmp 4.2.6, but on
> linux machines (debian4/net-snmp 5.2.3-7) every counter is being cached for
> 30 seconds.

The 5.x line introduced a simple build-in cache for interface statistics,
on a per-architecture basis.   This is hard-coded into these early versions.
More recently, there has been a major re-write of the IF-MIB and related
groups.   This includes making the timeout behaviour much more flexible.

It is now possible to set the cache timeout dynamically (for each group
individually),  flush a specific cache, or flush *all* caches.   This is
also common across all supported architectures, rather than being
hardcoded into particular O/S's


We suggest you try with the most recent release of the software (5.4.1).

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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.