Thanks! Is there any other way for the agent to invoke a callback function every period of time? Leo;
--- On Sun, 9/12/10, Bart Van Assche <bvanass...@acm.org> wrote: From: Bart Van Assche <bvanass...@acm.org> Subject: Re: about snmp_alarm_register To: "Leo Lin" <hayashi_...@yahoo.com> Cc: "Net-snmp-users" <net-snmp-users@lists.sourceforge.net> Date: Sunday, September 12, 2010, 11:05 PM On Mon, Sep 13, 2010 at 3:10 AM, Leo Lin <hayashi_...@yahoo.com> wrote: Hi, I use the snmp_alarm_register() along with the notification.c example to generate a trap every 30 sec. I also created a function that generates the same trap everytime an OID value is changed by snmpset. When testing it, the traps are seen by my manager (snmptrapd), however, it seems that snmp_alarm_register() only invoke the callback function once. I used SA_REPEAT on flags argument, but somehow, it is doing as the flag argument = 0. Does anyone experience these? I'm using the net-snmp-5.6.rc1. This is a known bug in 5.6rc1, and should be fixed in 5.6rc2. Bart.
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users