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

Reply via email to