Re: Can't send SNMPv3 Traps from C Program

2007-08-07 Thread das01
David, Thank you for confirming that I have been using the correct library function calls, your help is very much appreciated. Now that I know I am using the correct functions I have managed to work out how to turn on some of the debugging and located an area of code that is causing problems. An

Re: Can't send SNMPv3 Traps from C Program

2007-08-07 Thread Dave Shield
On 07/08/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >However I am not sure that > the send_v2trap works with SNMPv3 either, No problem there - send_v2trap() should sent the specified notification to all configured destinations, using the appropriate versio

Re: Can't send SNMPv3 Traps from C Program

2007-08-07 Thread das01
My program is an agent that currently works with SNMPv1 and 2 and I am updating it to support SNMPv3. The code sample I posted was very much simplified. I wrote my own create_v3_trap_session function because the standard create_trap_session does not support SNMPv3. However I am not sure that the

Re: Can't send SNMPv3 Traps from C Program

2007-08-07 Thread Dave Shield
On 07/08/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Please help, I am trying to send a SNMPv3 trap from within a C program. > > I am using the add_trap_session function to add my trap sink sessions and > then send_v2trap to send the trap. 'send_v2trap' is part of the Net-SNMP *agent* API.

Can't send SNMPv3 Traps from C Program

2007-08-07 Thread das01
Please help, I am trying to send a SNMPv3 trap from within a C program. I am using the add_trap_session function to add my trap sink sessions and then send_v2trap to send the trap. The program works with the authentication turned off (securityLevel = SNMP_SEC_LEVEL_NOAUTH) but I can not get it t