C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
SNMP Server Commands on Cisco IOS XR Software
snmp-server traps ospf state-change neighbor-state-change
SMR-641
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
snmp-server traps ospf state-change neighbor-state-change
To enable Simple Network Management Protocol (SNMP) notifications for Open Shortest Path First
(OSPF) neighbor state change, use the
snmp-server traps ospf state-change neighbor-state-change
command in global configuration mode. To disable OSPF state-change SNMP notifications, use the
no
form of this command.
snmp-server traps
ospf state-change neighbor-state-change
no
snmp-server
traps
ospf state-change neighbor-state-change
Syntax Description
This command has no arguments or keywords.
Defaults
SNMP notifications are disabled by default.
Command Modes
Global configuration
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
SNMP notifications can be sent as traps.
Use the
snmp-server traps ospf state-change neighbor-state-change
command to enable or disable
OSPF server state-change notifications, as defined in the MIB. One notification types is:
•
ospfNbrStateChange
For example, the OSPF ospfNbrStateChange
notification is defined in the OSPF MIB as follows:
! ospfNbrStateChange NOTIFICATION-TYPE
! OBJECTS {
! ospfRouterId, -- The originator of the trap
! ospfNbrIpAddr,
! ospfNbrAddressLessIndex,
! ospfNbrRtrId,
! ospfNbrState -- The new state
! }
! STATUS current
For a complete description of these notifications and additional MIB functions, see the
OSPF-TRAP-MIB in the SNMP Object Navigator, available through cisco.com at
http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2
The
snmp-server traps ospf state-change neighbor-state-change
command is used with the
command. Use the
command to specify which host or hosts receive
SNMP notifications.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.