Configuring Trap-Related Functions
Configuring Basic Trap Functions
traps refer to those sent by managed devices to the NMS without request. They are used to report some
urgent and important events (for example, the rebooting of managed devices).
Note that basic SNMP configuration is performed before you configure basic trap function.
Follow these steps to configure basic trap function:
To do...
Enter system view
Enable the switch to send
traps to NMS
Enter port view or
interface view
Enable
Enable the port
the port to
or interface to
send traps
send traps
Quit to system
view
Set the destination for traps
Set the source address for
traps
Set the size of the queue used
to hold the traps to be sent to
the destination host
Set the aging time for traps
Configuring Extended Trap Function
The extended trap function refers to adding "interface description" and "interface type" into the
linkUp/linkDown trap. When receiving this extended trap, NMS can immediately determine which
interface on the device fails according to the interface description and type.
Use the command...
system-view
snmp-agent trap enable [ configuration |
flash | standard [ authentication | coldstart
| linkdown | linkup | warmstart ]* | system ]
interface interface-type interface-number
enable snmp trap updown
quit
snmp-agent target-host trap address
udp-domain { ip-address } [ udp-port
port-number ] params securityname
security-string [ v1 | v2c | v3 [ authentication
| privacy ] ]
snmp-agent trap source interface-type
interface-number
snmp-agent trap queue-size size
snmp-agent trap life seconds
1-5
Remarks
—
Optional
By default, a port
is enabled to send
all types of traps.
Required
Optional
Optional
The default is 100.
Optional
120 seconds by
default.