snmp-server enable traps link
To enable the Simple Network Management Protocol (SNMP) notifications on link traps, use the snmp-server enable traps link command. To disable SNMP notifications on link traps, use the no form of this command.
snmp-server enable traps link [notification-type]
no snmp-server enable traps link [notification-type]
Syntax Description
notification-type |
(Optional) Type of notification to enable. If no type is specified, all notifications available on your device are sent. The notification type can be one of the following keywords:
|
Command Default
Disabled
Command Modes
Global configuration mode
Command History
Release |
Modification |
---|---|
5.2(1)N1(1) |
This command was introduced. |
Usage Guidelines
This command is disabled by default. Most notification types are disabled.
If you enter this command with no notification-type arguments, the default is to enable all notification types controlled by this command
Examples
This example shows how to enable the SNMP link trap notification on the switch:
switch(config)# snmp-server enable tra
ps link
switch(config)#
This example shows how to disable the SNMP link trap notification on the switch:
switch(config)# no snmp-server enable tra
ps link
switch(config)#