2009/1/21 Daniel Montero Motilla <[email protected]>:
> I'm working on a patch to allow modifying the update frequency value
> for network interface traffic data on IF-MIB, as by now it is
> established from IFTABLE_CACHE_TIMEOUT constant.

> Do you think that is the better approach to accomplish this task or is
> there any other way to obtain the configuration value _before_ the
> netsnmp_cache has been created?

The best way to do this would be to tie it in with the (existing)
NET-SNMP-AGENT-MIB::nsCacheTable.    This includes a column
object nsCacheTimeout which is intended to control exactly this
behaviour.   This MIB is already linked in with the cache handler
helper, so changing this value ought to affect the cache timeouts
immediately.

Now I'm not particularly familiar with the MfD-style code used to
implement the if-mib, but I seem to remember Robert assuring me
that this code *does* use the cache handler, so this functionality
should be in place already.

Have you tried using this table?

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to