Dear net-snmp-coders,
Thanks for your replies.
RS>You created a new implementation, right? No copying of the existing
code?
Yes, I created a new implementation using mib2c.mfd.conf, not copying of
the agent/mibgroup/if-mib.
RS>So what flags *are* you using?
The only flag I am using is NETSNMP_CACHE_DONT_INVALIDATE_ON_SET, which is
the default by the generated template.
It seems there is a timing issue in subagent triggering the cache reload,
because "OID not increasing" occasionally happened at the first query(e.g.
snmpwalk), but if I issue another snmpwalk it populates everything okay.
Most of the time, the ifTable subagent works just fine.
Emi
Robert Story
<[EMAIL PROTECTED]
com> To
[EMAIL PROTECTED]
11/25/2005 09:50 cc
AM [EMAIL PROTECTED]
et
Subject
Please respond to Re: How to force a cache reload
[EMAIL PROTECTED] when dynamic interfaces
ists.sourceforge. creating/removing happen
net
On Wed, 23 Nov 2005 10:41:26 -0600 [EMAIL PROTECTED] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders