936
C
75: SNMP C
HAPTER
Trap Configuration
Configuration
Prerequisites
Configuration Procedure
ONFIGURATION
The size of SNMP logs cannot exceed that allowed by the information center
■
and the sum of the node, and value field of each log information cannot
exceed 1K bytes; otherwise, the exceeded part will be output.
For the detailed description of system information, the information center and
■
the info-center source command, refer to "Configuring Information Center"
on page 1009.
SNMP Agent sends Traps to NMS to alert the latter of critical and important events
(such as restart of the managed device).
Basic SNMP configurations have been completed. These configurations include
version configuration: community name is needed when SNMPv1 and v2c are
adopted; username and MIB view are needed if SNMPv3 is adopted.
Enabling Trap transmission
Follow these steps to enable Trap transmission:
To do...
Enter system view
Set to enable the device to
send Traps globally
Enter interface view
Set to enable the device to
send Traps of interface state
change
c
CAUTION: To enable an interface to send SNMP Traps when its state changes, you
need to enable the Link up/down Trap packet transmission function on an
interface and globally. Use the enable snmp trap updown command to enable
this function on an interface, and use the snmp-agent trap enable [ standard
[ linkdown | linkup ] * ] command to enable this function globally.
Configuring Trap transmission parameters
Follow these steps to configure Trap:
To do...
Enter system view
Use the command...
system-view
snmp-agent trap enable
[ bgp | configuration | flash
| ospf [ process-id ]
[ ospf-trap-list ] | standard
[ authentication | coldstart |
linkdown | linkup |
warmstart ]* | system |
voice | vrrp [ authfailure |
newmaster ] ]
interface interface-type
interface-number
enable snmp trap updown
Use the command...
system-view
Remarks
-
Optional
All types of Traps are allowed
by default.
-
Optional
Transmission of Traps of
interface state change is
allowed by default.
Remarks
-