Dear coders, I implemented ifTable subagent using mib2c.mfd.conf, it works great but I have some questions about CACHE. I want to trigger a cache reload only when dynamic interfaces creating/removing happen. I do not want to use cache flag NETSNMP_CACHE_AUTO_RELOAD because of performance reason. So I tried to call the cache load routine directly when dynamic interfaces creating/removing happen. The problem is I got the Error: OID not increasing:
$snmpwalk 10.1 ifIndex IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifIndex.2 = INTEGER: 2 IF-MIB::ifIndex.3 = INTEGER: 3 IF-MIB::ifIndex.4 = INTEGER: 4 IF-MIB::ifIndex.4 = INTEGER: 4 Error: OID not increasing: IF-MIB::ifIndex.4 >= IF-MIB::ifIndex.4 My cache flag has only NETSNMP_CACHE_DONT_INVALIDATE_ON_SET flag on. My questions are: What is the proper way to force a cache reload at anytime? in my case it's when dynamic interfaces creating/removing happen. Do I need to register a separate cache handler to do this? Is there some sort of cache flag combination to achieve this goal? Any advice would be greatly appreciated. Emi ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
