[ Sorry for the delay in responding to this ] > I have to enable or disable specific traps in net-snmp implementation. > These traps are authentication, coldstart, linkup, linkdown and enterprise. > Is there any way to do so?
There is certainly a mechanism for doing this - the snmpNotifyFilterTable (in SNMP-NOTIFICATION-MIB) However the Net-SNMP agent does not currently implement this functionality. (There is template code to implement these tables, but I don't believe they are actually consulted when traps are sent out). > Can anybody tell me the file in which I can find the implementation of these > traps so that I can apply some flags or so to perhaps check those flags to > generate the trap or not. The generation of traps is handled in the file 'agent/agent_trap.c' But you're probably better off looking at the module code in 'agent/mibgroup/notificationsnmpNotifyTable.c' It's that code that needs to be linked in with the Filter (and FilterProfile) tables. Volunteers are welcome! Dave ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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