Users Guide
Version Description
9.8(0.0P2) Introduced on the S3048-ON.
9.7(0.0) Introduced on the S6000-ON.
9.2(1.0) Introduced on the Z9500.
9.0.2.0 Introduced on the S6000.
8.3.19.0 Introduced on the S4820T.
8.3.11.1 Introduced on the Z9000.
8.3.7.0 Introduced on the S4810.
7.8.1.0 Added support for the Multi-Process OSPF.
7.6.1.0 Introduced on the S-Series.
7.5.1.0 Introduced on the C-Series.
pre- 6.1.1.1 Introduced on the E-Series.
clear ip ospf statistics
Clear the packet statistics in interfaces and neighbors.
S3048–ON
Syntax
clear ip ospf [process-id] [vrf vrf-name] 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.
vrf vrf-name Enter the keyword vrf followed by the name of the VRF to clear all OSPF routing tables
corresponding to that VRF.
statistics Enter the keyword statistics to clear the packet statistics in interfaces and neighbors.
interface name (OPTIONAL) Enter the keyword interface then one of the following interface
keywords and slot/port or number information:
• For a 1-GigabitEthernet interface, enter the keyword GigabitEthernet then the
slot/port information.
•
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.
• For Port Channel groups, enter the keywords port-channel then a number.
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)