reset ospf [ process-id ] counters [ neighbor [ interface-type interface-number ] [ router-id ] ]
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. |
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.