snmp-server enable traps ospf cisco-specific state-change
T o enable Simple Network Management Protocol (SNMP) notifications for Open Shortest Path First (OSPF) transition state changes, use the snmp-server enable traps ospf cisco-specific state-change command in global configuration mode. To disable OSPF transition state change SNMP notifications, use the no form of this command.
snmp-server enable traps ospf cisco-specific state-change [nssa-trans-change | shamlink [interface | interface-old | neighbor]]
no snmp-server enable traps ospf cisco-specific state-change [nssa-trans-change | shamlink [interface | interface-old | neighbor]]
Syntax Description
nssa-trans-change |
(Optional) Enables only not-so-stubby area (NSSA) translator state changes trap for the OSPF area. |
shamlink |
(Optional) Enables only the sham-link transition state changes trap for the OSPF area. |
interface |
(Optional) Enables only the sham-link interface state changes trap for the OSPF area. |
interface -old |
(Optional) Enables only the replaced interface transition state changes trap for the OSPF area. |
neighbor |
(Optional) Enables only the sham-link neighbor transition state changes trap for the OSPF area. |
Command Default
This command is disabled by default; therefore, SNMP notifications for OSPF transition state changes are not created.
Command Modes
Global configuration
Command History
Release |
Modification |
---|---|
12.3(5) |
This command was introduced. |
12.3(4)T |
This command was integrated into Cisco IOS Release 12.3(4)T. |
12.0(26)S |
This command was integrated into Cisco IOS Release 12.0(26)S. |
12.2(25)S |
This command was integrated into Cisco IOS Release 12.2(25)S. |
12.0(30)S |
The shamlink , interface-old , and neighbor keywords were added. |
12.3(14)T |
Support was added for the shamlink , interface-old , and neighbor keywords. |
12.2(33)SRA |
This command was integrated into Cisco IOS Release 12.2(33)SRA. |
12.2(31)SB2 |
This command was integrated into Cisco IOS Release 12.2(31)SB2. |
12.2(33)SXH |
This command was integrated into Cisco IOS Release 12.2(33)SXH. |
Usage Guidelines
You cannot enter both the interface and interface-old keywords because you cannot enable both the new and replaced sham-link interface transition state change traps. You can configure only one of the two traps, but not both.
Examples
The following example enables the router to send OSPF sham-link transition state change notifications to the host at the address myhost.cisco.com using the community string defined as public:
Router(config)# snmp-server enable traps ospf cisco-specific state-change shamlink
Router(config)# snmp-server host myhost.cisco.com informs version 2c public