The display ospf spf-statistics command displays route calculation statistics in OSPF processes.
| Parameter | Description | Value |
|---|---|---|
| process-id | Specifies the ID of an OSPF process. If no OSPF process ID is specified, brief information about route calculation statistics in all processes is displayed. |
The value is an integer ranging from 1 to 65535. |
| verbose | Displays detailed information about route calculation statistics. | - |
The display ospf spf-statistics command displays route calculation statistics in OSPF processes, including the time when route calculation occurs, cause of route calculation, and number of changed routes.
When identifying the cause of OSPF route flapping, you can run this command to obtain OSPF route calculation statistics, and then identify the cause according to the command output.
# Display brief information about route calculation statistics in OSPF process 1.
<sysname> display ospf 1 spf-statistics
OSPF Process 1 with Router ID 2.2.2.2
Routing table change statistics:
Date Time Intra Inter External Reason
2014-11-14 10:17:16 17 17 17 LSA
2014-11-14 09:16:47 77 62 127 Other
2014-11-14 08:16:37 0 0 0 LSA
2014-11-14 07:04:40 24 230 108 LSA
2014-11-14 06:03:15 204 230 18 Other
2014-11-14 05:02:55 34 236 128 LSA
2014-11-14 04:01:49 54 130 158 LSA
2014-11-14 03:01:48 44 220 138 LSA
2014-11-14 02:01:43 22 233 158 LSA
2014-11-14 01:00:53 977 897 907 LSA
Item |
Description |
|---|---|
Date |
Date when route calculation occurs |
Time |
Time when route calculation occurs |
Intra |
Number of intra-area routes in the routing table, which are changed because of route calculation |
Inter |
Number of inter-area routes in the routing table, which are changed because of route calculation |
External |
Number of external routes in the routing table, which are changed because of route calculation |
Reason |
Cause of route calculation:
|
# Display detailed information about route calculation statistics in OSPF process 1.
<sysname> display ospf 1 spf-statistics verbose
OSPF Process 1 with Router ID 2.2.2.2
Routing table change statistics:
Index: 1 This spf calculation is External increment calculation
Time : 2014-11-29,17:36:59
Intra : 0 Added,0 Deleted
Inter : 0 Added,0 Deleted
External : 10 Added,0 Deleted
The reason of calculation is:LSA
NO. Type LS ID Adv Router
1 External 10.10.5.0 1.1.1.1
2 External 10.10.3.0 1.1.1.1
3 External 10.10.9.0 1.1.1.1
4 External 10.10.4.0 1.1.1.1
5 External 10.10.2.0 1.1.1.1
6 External 10.10.8.0 1.1.1.1
7 External 10.10.7.0 1.1.1.1
8 External 10.10.6.0 1.1.1.1
9 External 10.10.10.0 1.1.1.1
10 External 10.10.1.0 1.1.1.1
Item |
Description |
|---|---|
Time |
Date and time when route calculation occurs |
Intra |
Number of intra-area routes in the routing table, which are added and deleted because of route calculation. |
Inter |
Number of inter-area routes in the routing table, which are added and deleted because of route calculation. |
External |
Number of external routes in the routing table, which are added and deleted because of route calculation. |
The reason of calculation is |
Cause of route calculation:
|
No. |
Sequence number of the LSA that causes route calculation, which ranges from 1 to 10 |
Type |
Type of the LSA that causes route calculation, including Router, Network, Sum-Net, External, and NSSA. |
LS ID |
Link state ID of the LSA that causes route calculation |
Adv Router |
Router ID of the router that generates the LSA that causes route calculation |