Parameters
process-id: Clears the statistics of the specified OSPF process, in the range of 1 to 65535.
neighbor: Clears neighbor statistics.
interface-type interface-number: Clears the statistics of the neighbor connected to the specified interface.
router-id: Clears the statistics of the specified neighbor.
Description
Use reset ospf counters to clear OSPF statistics.
Examples
# Reset OSPF counters.
<Sysname> reset ospf counters
reset ospf process
Syntax
reset ospf [ process-id ] process [ graceful-restart ]
View
User view
Default level
2: System level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
graceful-restart: Reset the OSPF process using GR.
Description
Use reset ospf process to reset all OSPF processes or a specified process.
Using the reset ospf process command will:
•
Clear all invalid LSAs without waiting for their timeouts;
Make a newly configured Router ID take effect;
•
Start a new round of DR/BDR election;
•
•
Not remove any previous OSPF configurations.
The system prompts you to select whether to reset OSPF process upon execution of this command.
Examples
# Reset all OSPF processes.
<Sysname> reset ospf process
Warning : Reset OSPF process? [Y/N]:Y
# Reset all OSPF processes using GR.
<Sysname> reset ospf process graceful-restart
Warning : Reset OSPF process? [Y/N]:Y
117