RE: help - SNMP Trap manager registration and deregistrationdynamically...

"Borra, Kishore Babu" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

For deregistration-
I had experimented with the below api,s, for Notification reciever deregistration dynamically, using extension mib:-

[
update_config(), free_config() & notifyTable_unregister_notifications(int major, int minor,  void *serverarg, void *clientarg)..
]

update_config(), free_config() hasn't worked but luckily notifyTable_unregister_notifications() with input parameters as 0,0,NULL,NULL has worked. (These parameters are not used however in the function body).

This unregisters all the trap/Notification receivers, but don't know if there is any way to remove the selective Trap sessions/receivers. 

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 ?
and 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?

Regards,
Kishore


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: Tuesday, January 19, 2010 10:10 PM
To: Borra, Kishore Babu
Cc: [email protected]; Mike Ayers
Subject: Re: help - SNMP Trap manager registration and deregistrationdynamically...

2010/1/19 Borra, Kishore Babu <[email protected]>:
> But I had a basic question in the below context, which is regarding the usage of callback function and linked list.
>
> i.e, when will be the linked list be used and when will be the callback function be used. ?,

The callback mechanism will be used if the agent is configured to
support the snmpNotificationTable.
The linked list will be used if it isn't.


> Is it any conf file changes to drive the trap destinations addtition and freeing using callback methodology?

No.



> However I will also try to refer the code and find out the info, if required.

Please do.

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
[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.