Command Manual – SNMP-RMON
H3C S7500E Series Ethernet Switches
Chapter 1 SNMP Configuration Commands
1-10
1.1.9 enable snmp trap updown
Syntax
enable snmp trap updown
undo enable snmp trap updown
View
Interface view
Parameters
None
Description
Use the
enable snmp trap updown
command to enable the sending of Trap
messages for interface state change (linkup/linkdown Trap messages).
Use the
undo enable snmp trap updown
command to disable the sending of
linkup/linkdown SNMP Trap messages on an interface.
By default, the sending of linkup/linkdown SNMP Trap messages is enabled.
Note that:
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.
Related commands:
snmp-agent target-host
,
snmp-agent trap enable
.
Examples
# Enable the sending of linkup/linkdown SNMP Trap messages on the port Ethernet
2/0/1 and use the community name
public
.
<Sysname> system-view
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public
[Sysname] interface Ethernet 2/0/1
[Sysname-Ethernet 2/0/1] enable snmp trap updown