Re: Using NET-SNMP API to Receive Traps

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dave,

I have now looked through this file and its not an easy read.

I can see two functions that I think might be of use:

netsnmp_transport_open_server and snmptrapd_add_session

Are these the ones I need to be looking at? If so how do I just add a 
session to just monitor traps on port 162 of my IP address?

Can you point in the right direction a little more please?

Thanks

Chris

----- Original Message -----
From: "Dave Shield" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Thursday, November 22, 2007 9:51 AM
Subject: Re: Using NET-SNMP API to Receive Traps

> On 22/11/2007, [email protected] <[email protected]> 
> wrote:
>> I am currently using the NET SNMP API to send get requests and receive 
>> GET
>> Responses from my application. I would like to be able to receive traps 
>> in
>> this application as well. I have read the documentation and cannot see an
>> obvious way to do this.
>
> Please see the code under 'apps/snmptrapd*.c', for an example of how this
> might work.
>
> Dave
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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
>
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.