C Commands
This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) commands that begin with C.
clear ip ospf neighbor
To clear neighbor statistics and reset adjacencies for Open Shortest Path First (OSPF), use the clear ip ospf neighbor command.
clear ip ospf [ instance-tag ] neighbor { * | neighbor-id | interface-type number | loopback number | port-channel number } [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the clear ip ospf neighbor command to clear neighbor information from the show ip ospf neighbor command. Use the instance-tag argument to clear the neighbor details from one OSPF instance. If you do not use the instance -tag argument, Cisco Nexus 5500 clears the neighbor details from all OSPF instances. Use the show ip ospf neighbor command to find the neighbor ID.
Examples
This example shows how to clear all OSPF neighbor details for neighbor 192.0.2.1 for instance tag 201:
This example shows how to clear all OSPF neighbor details for all OSPF instances:
This example shows how to clear all OSPF neighbor details for all neighbors on Ethernet interface 1/2 for OSPF instance 202:
Related Commands
|
|
---|---|
Displays details for OSPF neighbors including the neighbor ID. |
clear ip ospf policy statistics
To clear policy statistics for Open Shortest Path First (OSPF), use the clear ip ospf policy statistics command.
clear ip ospf [ instance-tag ] policy statistics { area area-id filter-list { in | out } | redistribute { bgp autonomous-system | direct | eigrp id | ospf id | rip id | static }} [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the clear ip ospf statistics command to learn the policy statistics shown in the show ip ospf policy statistics command. Use the instance-tag argument to clear the policy statistics from one OSPF instance. If you do not specify the instance tag, Cisco Nexus 5500 clears the policy statistics from all OSPF instances. Use the show ip ospf policy statistics command to to view the statistics that you are clearing.
Examples
This example shows how to clear all OSPF policy statistics for area 99 inbound filtered routes for OSPF 201:
This example shows how to clear all OSPF policy statistics for all BGP redistributed routes for OSPF 202:
Related Commands
|
|
---|---|
clear ip ospf redistribution
To clear redistribution information for Open Shortest Path First (OSPF), use the clear ip ospf redistribution command.
clear ip ospf redistribution [ vrf { vrf-name | all | default | management }]
Syntax Description
(Optional) Specifies a particular virtual routing and forwarding (VRF) instance. The VRF name is a case-sensitive, alphanumeric string of up to 32 characters. |
|
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to clear redistribution information:
Related Commands
|
|
---|---|
clear ip ospf statistics
To clear Open Shortest Path First (OSPF) event statistics, use the clear ip ospf statistics command.
clear ip ospf [ instance-tag ] statistics [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the clear ip ospf statistics command to clear the event statistics from one or more OSPF instances. If you do not specify the instance-tag argument, Cisco Nexus 5500 clears statistics from all OSPF instances. Use the show ip ospf statistics command to to view the statistics that you are clearing.
Examples
This example shows how to clear all OSPF event statistics:
Related Commands
|
|
---|---|
clear ip ospf traffic
To clear Open Shortest Path First (OSPF) traffic statistics, use the clear ip ospf traffic command.
clear ip ospf [ instance-tag ] traffic [ interface ] [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the clear ip ospf traffic command to clear the traffic statistics from one or more OSPF instances. If you do not specify the instance-tag argument, Cisco Nexus 5500 clears traffic statistics from all OSPF instances. Use the show ip ospf traffic statistics command to view the statistics that you are clearing.
Examples
This example shows how to clear OSPF traffic statistics for OSPF 100:
Related Commands
|
|
---|---|
clear ip traffic
To clear IP traffic information, use the clear ip traffic command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to clear the IP traffic information:
Related Commands
|
|
---|---|