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:

•IETF-extended-linkDown—Enables the Internet Engineering Task Force (IETF) extended link state down notification.

•IETF-extended-linkUp—Enables the IETF extended link state up notification.

•cisco-extended-linkDown—Enables the Cisco extended link state down notification.

•cisco-extended-linkUp—Enables the Cisco extended link state up notification.

•connUnitPortStatusChange—Enables the overall status of the connectivity unit Notification.

•delayed-link-state-change—Enables the delayed link state change.

•fcTrunkIfDownNotify—Enables the Fibre Channel Fabric Element (FCFE) link state down notification.

•fcTrunkIfUpNotify—Enables the FCFE link state up notification.

•fcot-inserted—Specifies that the Fibre Channel optical transmitter (FCOT) hardware has been inserted.

•fcot-removed—Specifies that the FCOT has been removed.

•linkDown—Enables the IETF Link state down notification.

•linkUp—Enables the IETF Link state up notification.


Command Default

Disabled

Command Modes

Global configuration mode

Command History

Release
Modification

4.1(3)N2(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 traps link 
switch(config)# 

This example shows how to disable the SNMP link trap notification on the switch:

switch(config)# no snmp-server enable traps link 
switch(config)# 

Related Commands

Command
Description

show snmp trap

Displays the SNMP notifications enabled or disabled.