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 send_v2trap works with SNMPv3 either, in one of your posts in the
message archive you mentioned adding trapsess statements to the config
files, but I would like to avoid this if I can.

I am using net-snmp v 1.8.2

Darryl


> 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.
> It can only be used by code that will run within an agent (or subagent).
>
> If this is a standalone application, then you'll need to send the trap
> directly yourself, using 'snmp_send'.
>
> See 'apps/snmptrap.c' for an example.
>
> Dave
>
>




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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

Reply via email to