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:

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:

  • Intra-area LSA—Intra-area LSA changes.

  • Inter-area LSA—Inter-area LSA changes.

  • External LSA—External LSA changes.

  • Configuration—Configuration changes.

  • Area 0 full neighbor—Number of FULL-state neighbors in Area 0 changes.

  • Area 0 up interface—Number of interfaces in up state in Area 0 changes.

  • LSDB overflow state—Overflow status changes.

  • AS number—AS number changes.

  • ABR summarization—ABR summarization changes.

  • GR end—GR ends.

  • Routing policy—Routing policy changes.

  • Intra-area tunnel—Intra-area tunnel changes.

  • Others—Other reasons.

# 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:

  • ResetConnect—The connection is lost due to insufficient memory.

  • IntChange—The interface parameter has changed.

  • VlinkChange—The virtual link parameter has changed.

  • ResetOspf—The OSPF process is reset.

  • UndoOspf—The OSPF process is deleted.

  • UndoArea—The OSPF area is deleted.

  • UndoNetwork—The interface is disabled.

  • SilentInt—The interface is configured as a silent interface.

  • IntLogChange—The logical attribute of the interface has changed.

  • IntPhyChange—The physical attribute of the interface has changed.

  • IntVliChange—The virtual link attribute of the interface has changed.

  • VlinkDown—The virtual link goes down.

  • DeadExpired—The dead timer expires.

  • ConfStubArea—The interface is configured with stub area parameters.

  • ConfNssaArea—The interface is configured with NSSA area parameters.

  • AuthChange—The authentication type has changed.

  • OpaqueChange—The Opaque capability has changed.

  • Retrans—Excessive retransmissions.

  • LLSChange—The LLS capability has changed.

  • OOBChange—The OOB capability has changed.

  • GRChange—The GR capability has changed.

  • BFDDown—The interface is shut down by BFD.

  • BadLSReq—The interface receives BadLSReq events.

  • SeqMismatch—The interface receives SeqNumberMismatch events.

  • 1-Way—The interface receives 1-Way events.

  • LocalNoLSA—The requested LSA does not exist.

  • SameLSAReq—The received LSA is in the local request queue.

  • OldLSAReq—The received LSA has a larger aging time than the requested LSA in the local request queue.

  • DdTimerOut—Receives a DD packet after the hello timer expires.

  • EAChange—The External Attribute bit has changed.

  • MTChange—The Multi-Topology bit has changed.

  • RecvNoDupPkt—Receives a non-duplicate DD packet in loading or full status.

  • EbitChange—The E bit has changed.

  • MSbitChange—The MS bit has changed.

  • IbitChange—The I bit has changed.

  • MSeqNumError—The primary router receives an unexpected serial number from the secondary router.

  • SSeqNumError—The secondary router receives an unexpected serial number from the primary router.

  • RecvOpqIntf—A DD packet that contains a type 9 LSA is received when the opaque LSA reception and advertisement capability is disabled.

  • RecvOpqArea—A DD packet that contains a type 10 LSA is received when the opaque LSA reception and advertisement capability is disabled.

  • RecvOpqAs—A DD packet that contains a type 11 LSA is received when the opaque LSA reception and advertisement capability is disabled.

  • RecvNSSA—A DD packet that contains a type 7 LSA is received in a non-NSSA area.

  • InvalidLSA—A DD packet that contains an invalid LSA is received.

  • RecvASE—A DD packet that contains a type 5 LSA is received on a virtual link or in a stub area.

Related commands

reset ospf event-log