Use undo enable snmp trap updown to disable link state traps on an interface.
By default, link state traps are enabled.
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.
Related commands: snmp-agent target-host and snmp-agent trap enable.
Examples
# Enable port GigabitEthernet 1/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 GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] enable snmp trap updown
snmp-agent
Syntax
snmp-agent
undo snmp-agent
View
System view
Default level
3: Manage level
Parameters
None
Description
Use snmp-agent to enable the SNMP agent.
Use undo snmp-agent to disable the SNMP agent.
By default, the SNMP agent is disabled.
The snmp-agent command is optional for an SNMP configuration task. The SNMP agent is automatically
enabled when you perform any command that begins with snmp-agent except for the snmp-agent
calculate-password and snmp-agent ifmib long-ifindex enable commands.
Examples
# Enable the SNMP agent.
<Sysname> system-view
[Sysname] snmp-agent
65