92
Logging neighbor state changes
Perform this task to enable output of neighbor state change logs to the information center. The
information center processes the logs according to user-defined output rules (whether and where to
output logs). For more information about the information center, see Network Management and
Monitoring Configuration Guide.
To enable the logging of neighbor state changes:
1. Enter system view.
system-view
N/A
2. Enter OSPF view.
ospf
[
process-id |
router-id
router-id |
vpn-instance-name ] *
N/A
3. Enable the logging of
neighbor state changes.
log-peer-change
By default, this feature is
enabled.
Configuring OSPF network management
This task involves the following configurations:
• Bind an OSPF process to MIB so that you can use network management software to manage
the specified OSPF process.
• Enable SNMP notifications for OSPF to report important events.
• Configure the SNMP notification output interval and the maximum number of SNMP
notifications that can be output at each interval.
To report critical OSPF events to an NMS, enable SNMP notifications for OSPF. For SNMP
notifications to be sent correctly, you must also configure SNMP on the device. For more information
about SNMP configuration, see the network management and monitoring configuration guide for the
device.
To configure OSPF network management:
1. Enter system view.
N/A
2. Bind OSPF MIB to an
OSPF process.
ospf mib-binding
process-id
By default, OSPF MIB is
bound to the process with the
smallest process ID.
3. Enable SNMP notifications
for OSPF.
snmp-agent
trap
enable ospf
[
authentication-failure
|
bad-packet
|
config-error
|
grhelper-status-change
|
grrestarter-status-change
|
if-state-change
|
lsa-maxage
|
lsa-originate
|
lsdb-approaching-overflow
|
lsdb-overflow
|
neighbor-state-change
|
nssatranslator-status-change
|
retransmit
|
virt-authentication-failure
|
virt-bad-packet
|
virt-config-error
|
virt-retransmit
|
virtgrhelper-status-change
|
virtif-state-change
|
virtneighbor-state-change
] *
By default, SNMP
notifications for OSPF are
enabled.
4. Enter OSPF view.
ospf
[
process-id |
router-id
router-id |
N/A