On Wed, 23 Aug 2006 14:25:54 +0100 Dave wrote:
DS> The ifTable OID does appear in the nsCacheTable, so it should be
DS> possible to manipulate this caching behaviour dynamically.  Good -
DS> that's worth knowing for the future.
DS> (This question has come up two or three times very recently - an FAQ
DS> candidate, methinks!)

I just wonder if the update to the nsCacheTable handles auto-reload caches.
After updating the value, it should call netsnmp_cache_timer_stop() and
netsnmp_cache_timer_start().

DS> > The ifTable is a special case, as I mentioned in my previous message. We
DS> > need to update the cache every 30 seconds to ensure 32bit counters don't
DS> > wrap before we poll again. This is documented in the comments where the
DS> > cache timeout value is set.
DS> 
DS> Errr...  I'm probably being dense, but I can't immediately see where.
DS> There's a comment about 32-bit wrapping next to the definition of
DS> IFTABLE_CACHE_TIMEOUT in ifTable_data_access.h.
DS> But there's nothing by the call to 'netsnmp_cache_create' in
DS> ifTable_interface.c
DS> 
DS> And there's certainly no indication of what the difference between
DS> these two timeouts are, and why they are different.  As far as I can
DS> tell, the 'netsnmp_cache_create' value doesn't seem to have any
DS> effect, but I've probably missed something vital.

It's in ifTable_container_init(), in ifTable_data_access.c. The initial value
in the create is a default, which is overridden later. Probably wouldn't hurt
to have it use the same define from ifTable_data_access.h.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to