snmp_trap_api man page on BSDOS

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDOS logo
[printable version]



SNMP_TRAP_API(3)				 SNMP_TRAP_API(3)

NAME
       snmp_trap_api - sending a trap or notification from a UCD-
       SNMP MIB module

SYNOPSIS
       #include agent_trap.h

       void send_easy_trap ( int trap, int specific );

       void send_trap_vars ( int trap, int specific, struct vari-
       able_list *vars );

       void send_v2trap ( struct variable_list *vars );

DESCRIPTION
       These  three routines may be used to send traps from a MIB
       module within the UCD SNMP agent.

       Send_easy_trap sends an SNMPv1 trap (or the SNMPv2 equiva-
       lent)  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 to form an SNMPv2 trap,
       which  is  sent	to SNMPv2-capable sinks on the configured
       list.   Sinks  that  can	 only  handle  SNMPv1  traps  are
       skipped.

WARNINGS
       These 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 ALSO
       snmpd.conf(5), snmptrapd(8)

			    9 Dec 1999				1

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server BSDOS

List of man pages available for BSDOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net