On 12/02/2008, Simon Huebner <[EMAIL PROTECTED]> wrote:
> I want to update data stored on a OID every time a get-request for this
> OID comes in!
> A AgentX stores the data but only on startup.

Not true.
It depends how you implement the MIB module.

> Is there a way to call the init_... function before answer a get-request?

No - the init_xxx() function is indended for any one-off initialisation
((registering the MIB objects, registering snmpd.conf tokens,
initialising any subsystems that this module might need).

When a GET or other request comes in, the agent will call the
relevant handler to provide the current value.   That's where you
would put the code to update the data.


How have you coded your MIB module?
What helper(s) are you using?
   That might affect what your code might look like.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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