What conf file should I use to generate the code? I am using Net-SNMP 5.0.9 and it does not contain mib2c.notify.conf file.
Incase a trap needs to be sent from the NMS to my agent (DLM), how will the snmpd know that it's for my module. There could be other .so files in the snmpd.conf "No task is so humble that it does not offer an outlet for individuality" -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Wednesday, April 01, 2009 2:28 PM To: Tanisha Kashyap Cc: [email protected] Subject: Re: SNMP dynamically loadable module 2009/4/1 Tanisha Kashyap <[email protected]>: > 1) My mib does not contain any object to be get/set. It only contains trap > definitions. That doesn't matter - it's perfectly valid to have a code module that doesn't implement a MIB table or group of scalars. > 2) If I create my own module and compile it as a .so file, embed its path in > the snmpd.conf, how would the snmpd know about the functions that I have > created since there would be no handler routines for them. The module would still need to contain an 'init_' routine, so that you can set up whatever mechanism you'll be using to determine *when* to send the traps. Knowing when to send the trap is typically the hardest element of a trap originator. Actually sending the trap is the easy bit. Dave "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." ------------------------------------------------------------------------------ _______________________________________________ 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
