Thanks a lot dave for the fast response, I will go through link...
>>ajit -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Monday, February 04, 2008 5:12 PM To: Ajit J Clarence Cc: [email protected] Subject: Re: snmpd trap/inform OID handling On 04/02/2008, Ajit J Clarence <[EMAIL PROTECTED]> wrote: > I want to send an inform/trap packet from my agent and handle it with the > snmptrapd in the server end. > > Can anyone help me how this can be done with available API's of net-snmp, Please see the FAQ entry How can I get the agent to generate a trap (or inform)? (http://www.net-snmp.org/wiki/index.php/FAQ:Coding_15) and the ones that follow. > I went through http://www.net-snmp.org/dev/agent/notification_8c-example.html > example given, this is done on the agent side and the OID is fixed, I want > to add a new OID So change the code! This is an example, to show you the general techniques. You can amend this code to fit your particular requirements. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
