Configuring trap-related functions, Configuring basic trap functions, Configuring extended trap function – H3C Technologies H3C S3600 Series Switches User Manual
Page 858
1-6
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…
Use the command…
Remarks
Enter system view
system-view
—
Enable the switch to send
traps to NMS
snmp-agent trap enable [ configuration |
flash | ospf [ process-id ] [ ospf-trap-list ] |
standard [ authentication | coldstart |
linkdown | linkup | warmstart ]* | system |
vrrp [ authfailure | newmaster ] ]
Enter port view or
interface view
interface interface-type interface-number
Enable the port
or interface to
send traps
enable snmp trap updown
Enable
the port to
send traps
Quit to system
view
quit
Optional
By default, a port
is enabled to send
all types of traps.
Set the destination for traps
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
traps
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 traps
snmp-agent trap life seconds
Optional
120 seconds by
default.
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.