936 CHAPTER 75: SNMP CONFIGURATION
■ 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.
Trap Configuration SNMP Agent sends Traps to NMS to alert the latter of critical and important events 
(such as restart of the managed device).
Configuration
Prerequisites
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.
Configuration Procedure Enabling Trap transmission
Follow these steps to enable Trap transmission:
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…  Use the command…  Remarks 
Enter system view  system-view - 
Set to enable the device to 
send Traps globally 
snmp-agent trap enable 
[ bgp | configuration | flash 
| ospf [ process-id ] 
[ ospf-trap-list ] | standard 
[ authentication | coldstart | 
linkdown | linkup | 
warmstart ]* | system | 
voice | vrrp [ authfailure | 
newmaster ]] 
Optional
All types of Traps are allowed 
by default. 
Enter interface view  interface interface-type 
interface-number 
- 
Set to enable the device to 
send Traps of interface state 
change 
enable snmp trap updown Optional
Transmission of Traps of 
interface state change is 
allowed by default.
To do…  Use the command…  Remarks 
Enter system view  system-view -