Field
Storage-type
UserStatus
Related commands
snmp-agent usm-user v3
enable snmp trap updown
Use enable snmp trap updown to enable link state traps on an interface.
Use undo enable snmp trap updown to disable link state traps on an interface.
Syntax
enable snmp trap updown
undo enable snmp trap updown
Default
Link state traps are enabled.
Views
Interface view
Default command level
2: System level
Usage guidelines
For an interface to generate linkUp/linkDown traps when its state changes, you must also enable the
linkUp/linkDown trap function globally by using the enable snmp trap updown command.
Examples
# Enable GigabitEthernet 2/0/1 to send linkUp/linkDown SNMP traps to 10.1.1.1 in the community
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 gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] enable snmp trap updown
Related commands
snmp-agent target-host
•
•
snmp-agent trap enable
Description
Storage type:
•
volatile.
•
nonvolatile.
•
permanent.
•
readOnly.
•
other.
For more information about these storage types, see
SNMP user status.
108
Table
22.