This command displays information about recent Shortest Path First (SPF) calculations for the specified virtual router. If no router is specified, it displays information for the default router. The SPF is the OSPF routing table calculation. The output lists the number of times the SPF has run for each OSPF area. A table follows this information. For each of the 15 most recent SPF runs, the command shows statistics for how long ago the SPF ran, how long the SPF took, the reasons why the SPF was scheduled, the individual components of the routing table calculation time and to show the RIB update time. The most recent statistics are displayed at the end of the table.
| Format | show ip ospf statistics [vrf vrf-name] |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Delta T | The time since the routing table was computed. The time is in the format hours, minutes, and seconds hh:mm:ss). |
| Intra | The time taken to compute intra-area routes, in milliseconds. |
| Summ | The time taken to compute inter-area routes, in milliseconds. |
| Ext | The time taken to compute external routes, in milliseconds. |
| SPF Total | The total time to compute routes, in milliseconds. The total may exceed the sum of the Intra, Summ, and Ext times. |
| RIB Update | The time from the completion of the routing table calculation until all changes have been made in the common routing table [the Routing Information Base (RIB)], in milliseconds. |
| Reason | The event or events that triggered the SPF. Reason codes are as follows:
|
Example: The following shows example CLI display output for the command.
(Router) #show ip ospf statistics Area 0.0.0.0: SPF algorithm executed 15 times Delta T Intra Summ Ext SPF Total RIB Update Reason 00:05:33 0 0 0 0 0 R 00:05:30 0 0 0 0 0 R 00:05:19 0 0 0 0 0 N, SN 00:05:15 0 10 0 10 0 R, N, SN 00:05:11 0 0 0 0 0 R 00:04:50 0 60 0 60 460 R, N 00:04:46 0 90 0 100 60 R, N 00:03:42 0 70 10 90 160 R 00:03:39 0 70 40 120 240 X 00:03:36 0 60 60 130 160 X 00:01:28 0 60 50 130 240 X 00:01:25 0 30 50 110 310 SN 00:01:22 0 0 40 50 260 SN 00:01:19 0 0 20 20 190 X 00:01:16 0 0 0 0 110 R, X