C Commands
This chapter describes the Cisco NX-OS Layer 3 interfaces commands that begin with C.
clear ip arp
To clear the Address Resolution Protocol (ARP) information, use the clear ip arp command.
clear ip arp [ ip-addr | {[ event-history | all | cli | client-errors | client event | control | errors | event | ha | lcache | lcache-errors | packet | snmp | sync-event ]} | [ force-delete | statistics ] | [ mgmt mgmt-inteface-number ] | [statistics] | [tunnel-statistics] | [ vlan vlan-interface-number ] | [vpc-statistics] | [ vrf vrf-name | all | default | management ]
Syntax Description
ip-addr |
(Optional) IPv4 source address. The format is x.x.x.x. |
event-history |
(Optional) Clears the event history buffers. |
all |
(Optional) Clears all event history buffers. |
cli |
(Optional) Clears CLI logs. |
client-errors |
(Optional) Clears client_error logs. |
client-event |
(Optional) Clears client_event logs. |
control |
(Optional) Clears ARP control event logs. |
errors |
(Optional) Clears inst error logs. |
event |
(Optional) Clears internal event logs. |
ha |
(Optional) Clears HA and GR logs. |
lcache |
(Optional) Clears lcache logs. |
lcache-errors |
(Optional) Clears lcache_error logs. |
packet |
(Optional) Inst packet logs. |
snmp |
(Optional) SNMP logs. |
sync-event |
(Optional) CFS and MCECM related event logs. |
force-delete |
(Optional) Clears the entries from the ARP table without a refresh. |
mgmt mgmt-inteface-number |
(Optional) Management interface |
statistics |
(Optional) Clears ARP statistics. |
ethernet |
(Optional) Ethernet IEEE 802.3z |
loopback |
(Optional) Loopback interface |
mgmt |
(Optional) Management Interface |
port-channel |
(Optional) Port channel interface |
vlan |
(Optional) VLAN interface |
vrf |
(Optional) Displays per-VRF information |
tunnel-statistics |
(Optional) Clears ARP statistics for tunneled packets |
vlan vlan-interface-number |
(Optional) VLAN interface |
vpc-statistics |
(Optional) Clears ARP vPC statistics |
vrf vrf-name |
(Optional) Specifies the virtual routing and forwarding (VRF) context name. The name can be any case-sensitive, alphanumeric string up to 32 characters. |
all |
(Optional) Clears the ARP information from all VRF entries. |
default |
(Optional) Clears the ARP information from the default VRF. |
management |
(Optional) Clears the ARP information from the management VRF. |
Command Modes
Any command mode
Command History
|
|
6.0(2)N1(2) |
Support for the QSFP+ GEM was added. |
5.2(1)N1(1) |
This command was introduced. |
Examples
This example shows how to clear the ARP table:
Related Commands
|
|
show ip arp |
Displays information about ARP. |
clear ip interface statistics
To clear IP interface statistics, use the clear ip interface statistics command.
clear ip interface statistics
Syntax Description
This command has no arguments or keywords.
Command Modes
Any command mode
Command History
|
|
5.2(1)N1(1) |
This command was introduced. |
Examples
This example shows how to clear the IP interface statistics:
switch# clear ip interface statistics
Related Commands
|
|
show ip interface |
Displays IP interface information. |
clear ipv6 icmp interface statistics
To clear statistics about ICMPv6, use the clear ipv6 icmp interface statistics command.
clear ipv6 icmp interface statistics [ type number ]
Syntax Description
type |
(Optional) Interface type. Use ? to see the list of supported interfaces. |
number |
(Optional) Interface number. Use ? to see the range. |
Command Modes
Any command mode
Command History
|
|
5.2(1)N1(1) |
This command was introduced. |
Usage Guidelines
This command does not require a license.
Examples
This example shows how to clear the ICMPv6 statistics:
switch(config-if)# clear ipv6 icmp interface statistics
Related Commands
|
|
ipv6 icmp |
Configures ICMPv6 on an interface. |
clear ipv6 nd interface statistics
To clear information about Neighbor Discovery (ND), use the clear ipv6 nd interface statistics command.
clear ipv6 nd interface statistics [ type number ]
Syntax Description
type |
(Optional) Interface type. Use ? to see the list of supported interfaces. |
number |
(Optional) Interface number. Use ? to see the range. |
Command Modes
Any command mode
Command History
|
|
5.2(1)N1(1) |
This command was introduced. |
Usage Guidelines
This command does not require a license.
Examples
This example shows how to clear the ND information:
switch(config-if)# clear ipv6 nd interface statistics
Related Commands
|
|
ipv6 nd |
Configures ICMPv6 ND on an interface. |
clear ipv6 neighbor
To clear IPv6 neighbors, use the clear ipv6 neighbor command.
clear ipv6 neighbor [ type number ] [ force-clear ] [ vrf vrf-nam e]
Syntax Description
type |
(Optional) Interface type. Use ? to see the list of supported interfaces. |
number |
(Optional) Interface number. Use ? to see the range. |
force-clear |
(Optional) Clears the IPv6 neighbor cache withouth a refresh. |
vrf vrf-name |
(Optional) Specifies the virtual router context (VRF) name. The name can be any case-sensitive, alphanumeric string up to 63 characters. |
Command Modes
Any command mode
Command History
|
|
5.2(1)N1(1) |
This command was introduced. |
Usage Guidelines
Use the clear ipv6 neighbor command to clear the IPv6 adjacency table.
This command does not require a license.
Examples
This example shows how to clear the IPv6 neighbors:
switch# clear ipv6 neighbor
Related Commands
|
|
ipv6 nd |
Configures ICMPv6 ND on an interface. |