Clearing OSPF Information
Context
OSPF information cannot be restored after you clear it. Therefore, confirm the action before you use the commands.
To clear OSPF information, run the following reset commands in the user view.
Procedure
- Run the reset ospf [ process-id ] counters [ neighbor [ interface-type interface-number ] [ router-id ] ] command to reset OSPF counters.
- The parameter counters is used to clear OSPF counters.
- The parameter neighbor specifies neighbor information on a specified interface.
- Run the reset ospf [ process-id ] counters maxage-lsa command to delete the counter statistics about router LSAs that have aged.
- Run the reset ospf [ process-id ] redistribution command in the user view to re-import routes.
- Run the reset gtsm statistics { all | slot-id } command in the user view to clear the GTSM statistics on the board.
- Run the reset ospf [ process-id ] frr command in the user view to perform OSPF IP FRR calculation again.
- Run the reset ospf process-id suppress-flappingpeer [ interface-type interface-number ] [ notify-peer command to force the interface to exit OSPF neighbor relationship flapping suppression.
An interface exits flapping suppression in any of following scenarios:
- The suppression timer expires.
- The corresponding OSPF process is reset.
- An OSPF neighbor is restarted using the reset ospf peer command.
- OSPF neighbor relationship flapping suppression is disabled globally using the suppress-flapping peer disable command in the OSPF view.
- The interface is forced to exit flapping suppression using the reset ospf suppress-flapping peer command.
If notify-peer is specified in the reset ospf suppress-flapping peer command run on a device, the device sends Hello packets with HelloInterval and RouterDeadInterval being 0s to its neighbors to instruct them to exit OSPF neighbor relationship flapping suppression too. If the neighbors fail to receive such Hello packets, the function of notify-peer does not take effect. To force the neighbors to exit OSPF neighbor relationship flapping suppression, run the reset ospf suppress-flapping peer command on them.
- Run the reset ospf [ process-id ] peer [ interface-type interface-number ] router-id command to restart OSPF neighbors.