How to force a cache reload when dynamic interfaces creating/removing

This is a discussion on How to force a cache reload when dynamic interfaces creating/removing within the SNMP Coders forums, part of the Networking and Network Related category; Dear coders, I implemented ifTable subagent using mib2c.mfd.conf, it works great but I have some questions about CACHE. ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-23-2005
Emi.Yanagi@radisys.com
 
Posts: n/a
Default How to force a cache reload when dynamic interfaces creating/removing


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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:21 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0