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.
<HUAWEI> display ospf 1 spf-statistics
OSPF Process 1 with Router ID 10.2.2.2 Routing table change statistics: Date Time Intra Inter External Reason 2008-08-14 10:17:16 17 17 17 LSA 2008-08-14 09:16:47 77 62 127 Other 2008-08-14 08:16:37 0 0 0 LSA 2008-08-14 07:04:40 24 230 108 LSA 2008-08-14 06:03:15 204 230 18 Other 2008-08-14 05:02:55 34 236 128 LSA 2008-08-14 04:01:49 54 130 158 LSA 2008-08-14 03:01:48 44 220 138 LSA 2008-08-14 02:01:43 22 233 158 LSA 2008-08-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.
<HUAWEI> display ospf 1 spf-statistics verbose
OSPF Process 1 with Router ID 10.10.10.2 Routing table change statistics: Index: 1 Time : 2008-11-29,17:36:59 Intra : 0 Added,0 Deleted, 0 Modified Inter : 0 Added,0 Deleted, 0 Modified External : 10 Added,0 Deleted, 0 Modified The reason of calculation is:LSA NO. Type LS ID Adv Router 1 External 10.1.5.0 10.10.10.1 2 External 10.1.3.0 10.10.10.1 3 External 10.1.9.0 10.10.10.1 4 External 10.1.4.0 10.10.10.1 5 External 10.1.2.0 10.10.10.1 6 External 10.1.8.0 10.10.10.1 7 External 10.1.7.0 10.10.10.1 8 External 10.1.6.0 10.10.10.1 9 External 10.1.10.0 10.10.10.1 10 External 10.1.1.0 10.10.10.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 switch that generates the LSA that causes route calculation. |