CLI Guide

clear ip ospf
Clear all OSPF routing tables.
Syntax
clear ip ospf process-id [process]
Parameters
process-id Enter the OSPF Process ID to clear a specific process. If no
Process ID is entered, all OSPF processes are cleared.
process (OPTIONAL) Enter the keyword process to reset the OSPF
process.
Command Modes EXEC Privilege
Supported Modes Full—Switch
Command History
Version Description
9.9(0.0) Introduced on the FN IOM.
8.3.16.1 Introduced on the MXL 10/40GbE Switch IO Module.
clear ip ospf statistics
Clear the packet statistics in interfaces and neighbors.
Syntax
clear ip ospf process-id statistics [interface name {neighbor
router-id}]
Parameters
process-id Enter the OSPF Process ID to clear a specific process. If no
Process ID is entered, all OSPF processes are cleared.
interface name (OPTIONAL) Enter the keyword interface then one of the
following interface keywords and slot/port or number
information:
For Port Channel groups, enter the keywords port-
channel
then a number. The range is from 1 to 128.
For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet then the slot/port information.
For a VLAN, enter the keyword vlan then a number
from 1 to 4094.
neighbor router-
id
(OPTIONAL) Enter the keyword neighbor then the
neighbor’s router-id in dotted decimal format (A.B.C.D.).
Defaults none
Command Modes EXEC Privilege
1058
Open Shortest Path First (OSPFv2 and OSPFv3)