Use statistics to help you monitor Open Shortest Path First (OSPF) performance.
show ip ospf stats
show ip ospf stats [vrf WORD<1-16>] [vrfids WORD<0-512>]
show ip ospf stats vrf WORD<1-16>
show ip ospf stats vrfids WORD<0-512>
None
User EXEC
The show ip ospf stats command displays the following information:
|
Output field |
Description |
|---|---|
|
NumBufAlloc |
Indicates the number of buffers allocated for OSPF. |
|
NumBufFree |
Indicates the number of buffers that are freed by the OSPF. |
|
NumBufAllocFail |
Indicates the number of times that OSPF failed to allocate buffers. |
|
NumBufFreeFail |
Indicates the number of times that OSPF failed to free buffers. |
|
NumTxPkt |
Indicates the number of packets transmitted by OSPF. |
|
NumRxPkt |
Indicates the number of packets received by OSPF. |
|
NumTxDropPkt |
Indicates the number of packets dropped before transmission by OSPF. |
|
NumRxDropPkt |
Indicates the number of packets dropped before reception by OSPF. |
|
NumRxBadPkt |
Indicates the number of packets received by OSPF that are bad. |
|
NumSpfRun |
Indicates the total number of SPF calculations performed by OSPF, which also includes the number of partial route table calculation for incremental updates. |
|
LastSpfRun |
Indicates the time (SysUpTime) since the last SPF calculated by OSPF. |
|
LsdbTblSize |
Indicates the number of entries in the link state database table. |
|
NumAllocBdDDP |
Indicates the number of times buffer descriptors were allocated for OSPF database description packets. |
|
NumFreeBdDDP |
Indicates the number of times buffer descriptors were freed after use as OSPF database description packets. |
|
NumBadLsReq |
Indicates the number of bad LSDB requests. |
|
NumSeqMismatch |
Indicates the number of mismatches for sequence numbers. |
|
NumOspfRoutes |
The count of OSPF routes. |
|
NumOspfAreas |
The count of all OSPF areas. |
|
NumOspfAdjacencies |
The count of adjacencies. |
|
NumOspfNbrs |
The count of OSPF neighbors. |
|
NumEnabledOspfAreas |
The count of OSPF areas with at least one enabled OSPF interface. This number counts against the scaling maximum when you add a new area. |
The following example displays the OSPF performance statistics.
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