display ospf event-log
Use display ospf event-log to display OSPF log information.
Syntax
display ospf [ process-id ] event-log { lsa-flush | peer | spf }
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPF log information for all processes.
lsa-flush: Specifies LSA aging log information.
peer: Specifies neighbor log information.
spf: Specifies route calculation log information.
Usage guidelines
Route calculation logs show the number of routes newly installed in the IP routing table.
Neighbor logs include information about the following events:
The OSPF neighbor state goes down.
The OSPF neighbor state goes backward because the local end receives BadLSReq, SeqNumberMismatch, and 1-Way events.
Examples
# Display OSPF LSA aging log information for all processes.
<Sysname> display ospf event-log lsa-flush OSPF Process 1 with Router ID 1.1.1.1 LSA Flush Log Date: 2013-09-22 Time: 14:47:33 Received MaxAge LSA from 10.1.1.1 Type: 1 LS ID: 2.2.2.2 AdvRtr: 2.2.2.2 Seq#: 80000001 Date: 2013-09-22 Time: 14:47:33 Flushed MaxAge LSA by the self Type: 1 LS ID: 1.1.1.1 AdvRtr: 1.1.1.1 Seq#: 80000001 Date: 2013-09-22 Time: 14:47:33 Received MaxAge LSA from 10.1.2.2 Type: 1 LS ID: 2.2.2.2 AdvRtr: 2.2.2.2 Seq#: 80000001 Date: 2013-09-22 Time: 14:47:33 Flushed MaxAge LSA by the self Type: 1 LS ID: 1.1.1.1 AdvRtr: 1.1.1.1 Seq#: 80000001
Table 32: Command output
Field | Description |
---|---|
Date/Time | Time when the device receives an LSA that has reached the maximum age. |
Received MaxAge LSA from X.X.X.X | The device received an LSA that has reached the maximum age from X.X.X.X. |
Flushed MaxAge LSA by the self | The device flushed the LSA that has reached the maximum age. |
Type | LSA type. |
LS ID | LSA link state ID. |
AdvRtr | Advertising router. |
Seq# | LSA sequence number. |
# Display OSPF route calculation log information for all processes.
<Sysname> display ospf event-log spf OSPF Process 1 with Router ID 1.1.1.2 SPF Log Topology base (MTID 0) Date Time Duration Intra Inter External Reason 2012-06-27 15:28:26 0.95 1 1 10000 Intra-area LSA 2012-06-27 15:28:23 0.2 0 0 0 Area 0 full neighbor 2012-06-27 15:28:19 0 0 0 0 Intra-area LSA 2012-06-27 15:28:19 0 0 0 0 external LSA 2012-06-27 15:28:19 0.3 0 0 0 Intra-area LSA 2012-06-27 15:28:12 0 1 0 0 Intra-area LSA 2012-06-27 15:28:11 0 0 0 0 Routing policy 2012-06-27 15:28:11 0 0 0 0 Intra-area LSA
Table 33: Command output
Field | Description |
---|---|
Topology | This field is not supported in the current software version. Topology name. The topology name for base topology is base. |
MTID | This field is not supported in the current software version. Topology ID. The value of 0 indicates the base topology. |
Date/Time | Time when the route calculation starts. |
Duration | Duration of the route calculation, in seconds. |
Intra | Number of intra-area routes newly installed in the IP routing table. |
Inter | Number of inter-area routes newly installed in the IP routing table. |
External | Number of external routes newly installed in the IP routing table. |
Reason | Reasons why the route calculation is performed:
|
# Display OSPF neighbor log information for OSPF process 1.
<Sysname> display ospf 1 event-log peer OSPF Process 1 with Router ID 1.1.1.1 Neighbors Log Date Time Local Address Remote Address Router ID Reason 2012-12-31 12:35:45 197.168.1.1 197.168.1.2 2.2.2.2 IntPhyChange 2012-12-31 12:35:19 197.168.1.1 197.168.1.2 2.2.2.2 ConfNssaArea 2012-12-31 12:34:59 197.168.1.1 197.168.1.2 2.2.2.2 SilentInt
Table 34: Command output
Field | Description |
---|---|
Date/Time | Time when the neighbor state changes. |
Local Address | Local address of the neighbor relationship. |
Remote Address | Peer address of the neighbor relationship. |
Router ID | Neighbor router ID. |
Reason | Reasons for neighbor state changes:
|
Related commands
reset ospf event-log