View OSPF Performance Statistics

Use statistics to help you monitor OSPF performance.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. View the OSPF performance statistics:

    show ip ospf stats [vrf WORD<1-16>] [vrfids WORD<0-512>]

Example

Switch:1#show ip ospf stats

================================================================================
                         OSPF Statistics - GlobalRouter
================================================================================
       NumBufAlloc: 1138
        NumBufFree: 1138
   NumBufAllocFail: 0
    NumBufFreeFail: 0
          NumTxPkt: 1144
          NumRxPkt: 2287
      NumTxDropPkt: 0
      NumRxDropPkt: 0
       NumRxBadPkt: 0
         NumSpfRun: 19
        LastSpfRun: 0 day(s), 00:26:15
       LsdbTblSize: 7
     NumAllocBdDDP: 5
      NumFreeBdDDP: 5
       NumBadLsReq: 0
    NumSeqMismatch: 0
     NumOspfRoutes: 7
      NumOspfAreas: 0
NumOspfAdjacencies: 3
       NumOspfNbrs: 3
NumEnabledOspfAreas:0

Variable definitions

The following table defines parameters for the show ip ospf stats command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF by name.

vrfids WORD<0-512>

Specifies a range of VRF IDs.