< Home

display ospf spf-statistics

Function

The display ospf spf-statistics command displays route calculation statistics in OSPF processes.

Format

display ospf [ process-id ] spf-statistics [ verbose ]

Parameters

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. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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
Table 1 Description of the display ospf spf-statistics command output

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:
  • LSA: indicates that route calculation is caused by LSAs.
  • Other: indicates that route calculation is caused by other causes. For example, the configuration changes; or the interface goes Down.

# 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
Table 2 Description of the display ospf spf-statistics verbose command output

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:

  • LSA: indicates that route calculation is caused by LSAs.
  • Other: indicates that route calculation is caused by other causes. For example, the configuration changes; or the interface goes Down.

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >