< Home

reset ospf counters

Function

The reset ospf counters command resets OSPF counters.

Format

reset ospf [ process-id ] counters [ neighbor [ interface-type interface-number ] [ router-id ] ]

Parameters

Parameter Description Value
process-id Indicates an OSPF process ID. If the parameter is not specified, all OSPF processes are restarted. The value is an integer ranging from 1 to 65535.
neighbor Specifies neighbor information of an interface. -
interface-type interface-number Specifies the type and the number of an interface. -
router-id Specifies the router ID of the neighbor. The value is in dotted decimal notation.

Views

User view

Default Level

3: Management level

Usage Guidelines

When the switch restarts an OSPF process, the neighboring switch always reserves invalid LSAs. This occupies the memory of the system. These LSAs are deleted only when they expire, which happens when the LS age field in the LSA reaches 3600 seconds. After the reset ospf is used to restart an OSPF process and only when the router ID is changed, the switch generates an LSA in the set time and sets the LS age field to 3600 seconds. After receiving the LSA, other switches delete the LSA immediately from their LSDBs. If a switch does not send all the LSAs within the set time, other neighboring switches still store some invalid LSAs.

Clearing OSPF statistics does not affect the normal operation of OSPF services.

Once deleted, statistics cannot be restored. Therefore, exercise caution when deleting statistics.

Example

# Reset OSPF counters.

<HUAWEI> reset ospf counters
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >