Thanks Dave Right now Iam using the below api as mentioned, which works fine for UnRegistering all the Notfication receivers.:-
snmp_call_callbacks(SNMP_CALLBACK_APPLICATION, SNMPD_CALLBACK_PRE_UPDATE_CONFIG, NULL); Regards, Kishore -----Original Message----- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Thursday, January 21, 2010 6:01 PM To: Borra, Kishore Babu Cc: net-snmp-users@lists.sourceforge.net; Mike Ayers Subject: Re: help - SNMP Trap manager registration and deregistrationdynamically... 2010/1/21 Borra, Kishore Babu <kishorebabu.bo...@adckrone.com>: > Also I had basic question about the input parameters getting passed to the > notifyTable_unregister_notifications(), . > > i..e What are the input parameters major, minor, void *serverarg, void > *clientarg serves as ? The first two parameters (major, minor) match those used when registering the callback. (see snmpNotifyTable). These are used to control when this particular callback routine will be invoked, and are passed to the callback routine in case it needs to distinguish between different possible invocations. It is also possible to supply some arbitrary data as part of this registration (using the final parameter of the registration call). This is then passed to the callback routine as the 'clientarg' parameter. The code that triggers the callback (snmp_call_callbacks) can also provide some arbitrary data, which is passed to the callback routine as 'serverarg'. This is used by (e.g.) the access control callbacks, or those concerned with registering MIB modules. > Do we have to pass any valid values for the input args, so that in future > it doesn't effect, even if the functionality of this api changes? These routines are not designed to be invoked directly. They are meant to be invoked via 'snmp_call_callbacks'. If you are invoking notifyTable_unregister_notifications() yourself, then you will need to monitor any code changes that affect the relevant major/minor callback values (currently APPLICATION/PRE_UPDATE_CONFIG. But note that this is not necessrily fixed). If you are working outside the intended design, then the onus is on you to watch for changes that might break your code. Dave ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ 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