Re: Reason: (genError)

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 08/08/07, Sharad Chandra <[email protected]> wrote:
>      I want what ever it has in table previously should return even
> while updating the table and once it updated the table then on next
> query it should give updated values.

I can't comment on the specifics of the MfD code - Robert's the
expert on that.  (Though I'm not sure whether he follows this
list - you might to better asking him on the IRC channel).

But my immediate reaction would be to set up a regular callback
routine to re-load the cache automatically.  This could either be done
using the snmp_alarm mechanism within the subagent code, or
possibly (with suitable protection) as part of a separate thread.

In fact, the comments at the head of the 'helpers/cache_handler'
file imply that this is exactly what the flag 'NETSNMP_CACHE_AUTO_RELOAD'
is meant to do.
   Try setting this flag before registering the MIB table.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.