Re: Can't send SNMPv3 Traps from C Program

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <17152.212.162.211.211.1186482171.QFIUQm5cTkF4Qh0R.squirrel@212.162.211.211>
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
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.