SNMP_TRAP_API - Online Linux Manual PageSection : 3
Updated : 7 Mar 2002
Source : V5.5
Note : Net-SNMP
Version : 4.2 Berkeley Distribution

NAMEsend_easy_trap, send_trap_vars, send_v2trap - send TRAPs or INFORMs from a Net-SNMP MIB module

SYNOPSIS#include <net-snmp/agent/agent_trap.h> void send_easy_trap(int trap, int specific); void send_trap_vars(int trap, int specific, struct variable_list *vars); void send_v2trap(struct variable_list *vars);

DESCRIPTIONThese three routines may be used to send traps from a MIB module within the Net-SNMP agent (including an AgentX subagent). send_easy_trap() sends an SNMPv1 trap (or the SNMPv2 equivalent) to the list of configured trap destinations (or "sinks"), using the provided values for the generic trap type, and specific trap value. send_trap_vars() is similar, but appends the supplied list of variable bindings to the traps that are sent. send_v2trap() uses the supplied list of variable bindings to form an SNMPv2 trap, which is sent to SNMPv2-capable sinks on the configured list. An equivalent INFORM is sent to the configuredq list of inform sinks. Sinks that can only handle SNMPv1 traps are skipped. The various "send_trap()" calls allow you to specify traps in different formats. And the various "trapsink" directives allow you to specify destinations to receive different formats. But *all* traps are sent to *all* destinations, regardless of how they were specified. I.e. it's ___ trapsink / send_easy_trap \___ [ Trap ] ____ trap2sink ___ [ Generator ] send_v2trap / [ ] ----- informsink \____ trapsess *Not* send_easy_trap -------------------> trapsink send_v2trap -------------------> trap2sink ???? -------------------> informsink ???? -------------------> trapsess

WARNINGSThese routines are used to send the traps immediately they are called. Invoking them at the appropriate time is left to the MIB module programmer.

SEE ALSOsnmpd.conf(5), snmptrapd (8)"
0
Johanes Gumabo
Data Size   :   5,949 byte
man-send_v2trap.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 193,702
Visitor ID   :     :  
Visitor IP   :   3.144.104.175   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence|91|snmp_trap_api.3|41|\___ [ Trap ] ____ trap2sink| send_easy_trap \___ [ Trap ] ____ trap2sink )         (rof_escape_sequence|91|snmp_trap_api.3|44|\____| \____ )