show ip ospf statistics

To display Open Shortest Path First (OSPF) shortest path first (SPF) calculation statistics, use the show ip ospf statistics command.

show ip ospf [ instance-tag ] statistics [ vrf vrf-name ]

Syntax Description

(Optional) Name of the OSPF instance. Specify as an alphanumeric string up to 20 characters.
vrf vrf-name
(Optional) Name of the VRF. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings default, management, and all are reserved VRF names.

Command Default


Command Modes

Any command mode

Command History

This command was introduced.

Usage Guidelines

Use the show ip ospf statistics command to display information about link-state advertisements (LSAs). This information can be useful for both OSPF network maintenance and troubleshooting. For example, we recommend that you use the show ip ospf statistics command as the first troubleshooting step for LSA flapping.

This command requires the LAN Base Services license.


This example shows how to display information about the SPF calculations:

switch# show ip ospf statistics
OSPF Process ID 201 VRF default, Event statistics (cleared 00:10:45 ago)
Router ID changes: 1
DR elections: 0
Older LSAs received: 0
Neighbor state changes: 0
Neighbor dead postponed: 0
Neighbor dead interval expirations: 0
Neighbor bad lsreqs: 0
Neighbor sequence number mismatches: 0
SPF computations: 2 full, 0 summary, 0 external
LSA Type Generated Refreshed Flushed Aged out
Router 0 0 0 0
Network 0 0 0 0
Summary Net 0 0 0 0
Summary ASBR 0 0 0 0
AS External 0 0 0 0
Opaque Link 0 0 0 0
Opaque Area 0 0 0 0
Opaque AS 0 0 0 0
Following counters can not be reset:
LSA deletions: 0 pending, 0 hwm, 0 deleted, 0 revived, 0 runs
Hello queue: 0/200, hwm 0, drops 0
Flood queue: 0/350, hwm 0, drops 0
LSDB additions failed: 0
Buffers: in use hwm permanent alloc free
128 bytes 0 0 0 0 0
512 bytes 0 0 0 0 0
1520 bytes 0 0 0 0 0
4500 bytes 0 0 0 0 0
huge 0 0 0 0 0

The table below describes the significant fields shown in the display.

Field Descriptions of the show ip ospf statistics Command
OSPF process
Unique value assigned to the OSPF instance in the configuration.
Virtual routing and forwarding (VRF) for this OSPF instance.
DR elections
Number of times that a new designated router was elected.
Details about neighbors.
LSA Type
Number of each type of LSA sent.
Hello queue
Queue of hello packets to be processed:
  • current number in queue/maximum number allowed in queue.
  • hwm—high water mark. The maximum number of packets ever stored in the queue.
  • drops—The number of packets dropped because the queue was full.
Flood queue
Queue of flood packets to be processed.
Chunks of memory used to store packets.

Related Commands

show running-config ospf
Displays the OSPF running configuration.