![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/6d/36db2b94-b5fe-4d9d-af19-800fbd7667e8/36db2b94-b5fe-4d9d-af19-800fbd7667e8-bg1af.png)
1-6
To do… Use the command… Remarks
Enter system view
system-view
—
Enable the device to send
Trap messages to NMS
snmp-agent trap enable [ configuration |
flash | standard [ authentication | coldstart
| linkdown | linkup | warmstart ]* | system | ]
Enter port view
or interface view
interface interface-type interface-number
Enable the port
or interface to
send Trap
messages
enable snmp trap updown
Enable
the port to
send Trap
messages
Quit to system
view
quit
Optional
By default, a port
is enabled to send
all types of Traps.
Set the destination for Trap
messages
snmp-agent target-host trap address
udp-domain { ip-address } [ udp-port
port-number ] params securityname
security-string [ v1 | v2c | v3 {authentication
| privacy } ]
Required
Set the source address for
Trap messages
snmp-agent trap source interface-type
interface-number
Optional
Set the size of the queue used
to hold the Traps to be sent to
the destination host
snmp-agent trap queue-size size
Optional
The default is 100.
Set the aging time for Trap
messages
snmp-agent trap life seconds
Optional
120 seconds by
default.
Configuring Extended Trap
The extended Trap includes the following.
z “Interface description” and “interface type” are added into the linkUp/linkDown Trap message.
When receiving this extended Trap message, NMS can immediately determine which interface on
the device fails according to the interface description and type.
z In all Trap messages sent from the information center to the log server, a MIB object name is added
after the OID field of the MIB object. The name is for your better understanding of the MIB object.
Follow these steps to configure extended Trap:
To do… Use the command… Remarks
Enter system view
system-view
—
Configure extended Trap
snmp-agent trap ifmib link
extended
Optional
By default, the linkUp/linkDown
Trap message adopts the
standard format defined in
IF-MIB. For details, refer to
RFC 1213.