You're right. I've also tested the same version on Linux and caching persists :-( If somebody knows a workaround/fix for this I'd be also interested.
Cheers, -Roman Alexandre Pashai wrote: > ...I've tested this feature with the latest version of net-snmp running > on Solaris 9: > > bash-2.05# /usr/local/sbin/snmpd -version > > NET-SNMP version: 5.2.1.2 > Web: http://www.net-snmp.org/ > Email: [email protected] > > > ...and I confirm that 'pass' directive caches data for about 30 seconds. > > Here is a sample in my snmpd.conf: > > pass .1.3.6.1.4.1.92400.1.6.1.1 /etc/snmp/sh/ApplicationStatus.sh > > Regards, > --Alexandre > > Roman Medina-Heigl Hernandez wrote: > >> I have the same problem too. Snmpd seems to refresh cache when it >> receives a SET request, which seems logical to me. The problem happens >> when you have other external methods of updating values which should be >> returned by Snmpd (for instance, if you have data store on a database, >> and want Snmpd to return its values; if database is updated Snmpd >> doesn't notice the change and cache is not refreshed). >> >> I haven't tested it but newer versions doesn't perform caching. At least >> according to the Faq: >> >> http://net-snmp.sourceforge.net/docs/FAQ.html >> ... >> What's the difference between 'exec', 'sh' and 'pass'? >> ----------------------------------------------------- >> ... >> Note that with the 4.2.x and 5.0.x lines, return values are cached >> within the agent for 30 seconds, rather than invoking the command >> for every request. This does not hold for the 5.1.x agent. >> >> Regards, >> -Roman >> >> >> Alexandre Pashai wrote: >> >> >>> hi all, >>> >>> thep ass-through feature of net-snmp works quite well. >>> But, it seems to cache data for 30 seconds while i expect it to have a >>> "real-time" behavior... >>> >>> Is it possible for net-snmp to exec the script on each snmpget request ? >>> >>> Thanks for answers. >>> >>> Alexandre >>> >> >> >> >> > ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
