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
