View OSPF Range Statistics

Use statistics to help you monitor Open Shortest Path First (OSPF) performance. You can also use statistics in troubleshooting procedures. OSPF range statistics include area ID, range network address, range subnet mask, range flag, and LSDB type.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Display the OSPF range 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

Use the data in the following table to use the show ip ospf stats command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF instance by VRF name.

vrfids WORD<0-16>

Specifies a VRF or range of VRFs by ID.