Re: SNMP Trap Receiver

2016-07-25 Thread Niels Baggesen
Den 25-07-2016 kl. 14:57 skrev Krishnaraj:
> Dear Coders,
>
> I am working on a SNMP manager application in linux. I could understand
> the mechanism of GET, SET requests from the sample apps. However the
> mechanism of TRAP receiver is quite complex. I unable to understand it
> and could not find much references on its working. My idea is to use
> some API to build my own trap receiver rather than using snmptrapd. Is
> that really possible ? Will you guys be able to help me on this. If API
> is not available, whether somebody could brief me the necessary steps so
> that I could start digging myself towards the implementation.

Of course it is possible, otherwise there would not be an snmptrapd app :-)

But what do you mean when you talk about an API?

What you do need to do is to open a session, and add snmp_input as a
callback to it, and then you can trim the rest of snmptrapd away, and do
what ever you want to do inside snmp_input.

/Niels


-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


SNMP Trap Receiver

2016-07-25 Thread Krishnaraj

Dear Coders,

I am working on a SNMP manager application in linux. I could understand 
the mechanism of GET, SET requests from the sample apps. However the 
mechanism of TRAP receiver is quite complex. I unable to understand it 
and could not find much references on its working. My idea is to use 
some API to build my own trap receiver rather than using snmptrapd. Is 
that really possible ? Will you guys be able to help me on this. If API 
is not available, whether somebody could brief me the necessary steps so 
that I could start digging myself towards the implementation.


--
Thanks & Regards,
*Krishnaraj D*



"Disclaimer: This message is being sent from Kalki Communication Technologies
Pvt Ltd (KALKITECH). and may contain information which is confidential or 


privileged. If you are not the intended recipient, please advise the sender
immediately by reply e-mail and delete this message and any attachments 


without retaining a copy. Any unauthorized use of the content of this message
can expose the responsible party to civil and/or criminal penalties, 


and may constitute a more serious offense. Further the company does not accept
liability for any errors, omissions, viruses or computer problems 


experienced as a result of this transmission. If you have received this
message in error, notice is hereby given that no representation, contract or 

other binding obligation shall be created by this e-mail." 
--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders