RE: Need Help In SNMP Trap handler
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Wednesday, September 27, 2006 7:18 PM To: Jitendra Sanghani (WT01 - Embedded Systems) Cc: [email protected] Subject: Re: Need Help In SNMP Trap handler On 12/09/06, [email protected] <[email protected]> wrote: > I am new to the Net-SNMP. I want to read the traps from the agent in the > Linux. I had installed the Net-SNMP Library. But I am not able to configure > the Snmptrapd.conf file. In configuration how I can add parameters under > "Access Control" section so that my own application gets the data directly. What have you tried so far? It would be useful to know how you have configured the agent to send traps, and how you want to process them. Then we can better advise on how to configure the access control settings in snmptrapd.conf Dave Thanks for your reply. I had configured agent to send trap and agent is sending the trap. The problem lies is at manager side as how to catch the trap. For that I had created a socket application running at UDP-162. Whenever agent sends the trap I am receiving the same data but the data I am receiving is encoded in BER format. So I am not able to parse the data. So I want to know what to do to get the decoded data. Or is there any api to wait for the trap as like recv() in socket. Or is there any mechanism like callback function for the application. Thanks in Advance. --Jitendra ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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