Re: How to force a cache reload when dynamic interfaces

This is a discussion on Re: How to force a cache reload when dynamic interfaces within the SNMP Coders forums, part of the Networking and Network Related category; On Wed, 23 Nov 2005 10:41:26 -0600 Emi.Yanagi@radisys.com wrote: EYC> I implemented ifTable subagent ...


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-25-2005
Robert Story
 
Posts: n/a
Default Re: How to force a cache reload when dynamic interfaces

On Wed, 23 Nov 2005 10:41:26 -0600 Emi.Yanagi@radisys.com wrote:
EYC> I implemented ifTable subagent using mib2c.mfd.conf, it works great but I
EYC> have some questions about CACHE.

You created a new implementation, right? No copying of the existing code?

EYC> I want to trigger a cache reload only
EYC> when dynamic interfaces creating/removing happen. I do not want to use
EYC> cache flag NETSNMP_CACHE_AUTO_RELOAD because of performance reason.

So what flags *are* you using?

EYC> So I
EYC> tried to call the cache load routine directly when dynamic interfaces
EYC> creating/removing happen. The problem is I got the Error: OID not
EYC> increasing:

Depending on the flags set, you may need to free the cache before trying to
reload it. Of course, if you know what interface was added/removed, you could
add/remove it directly to the container instead of reloading the cache.

EYC> Any advice would be greatly appreciated.

Also note that ifIndexes should not get renumbered as rows are
inserted/deleted.

--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different.


-------------------------------------------------------
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 03:35 AM.


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