Table Of Contents
clear catalyst6000 traffic-meter
clear counters
clear fm netflow counters
clear interface gigabitethernet
clear interface vlan
clear ip access-template
clear ip arp inspection log
clear ip arp inspection statistics
clear ip cef epoch full
clear ip cef inconsistency
clear ip dhcp snooping binding
clear ip flow stats
clear ip igmp group
clear ip igmp snooping statistics
clear ip mroute
clear ip msdp peer
clear ip msdp sa-cache
clear ip msdp statistics
clear ip pim auto-rp
clear ip pim snooping statistics
clear ip pim snooping vlan
clear lacp counters
clear logging ip access-list cache
clear mac-address-table dynamic
clear mls acl counters
clear mls cef ip accounting per-prefix
clear mls ip multicast bidir-rpcache
clear mls ip multicast group
clear mls ip multicast statistics
clear mls nde flow counters
clear mls netflow
clear mls qos
clear mls statistics
clear mls stats
clear pagp
clear platform netint
clear port-security dynamic
clear spanning-tree detected-protocol
clear top counters interface report
clear vlan counters
clock
collect top counters interface
control-plane
copy /noverify
02
clear catalyst6000 traffic-meter
To clear the traffic meter counters, use the clear catalyst6000 traffic-meter command.
clear catalyst6000 traffic-meter
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the traffic meter counters:
Router# clear catalyst6000 traffic-meter
clear counters
To clear the interface counters, use the clear counters command.
clear counters [{interface interface-number} | {null interface-number} | {port-channel number}
| {vlan vlan-id}]
Syntax Description
interface
|
(Optional) Interface type; the valid value is gigabitethernet.
|
interface-number
|
Module and port number; the valid value is 1/N where N is the port number.
|
null interface-number
|
(Optional) Specifies the null interface; the valid value is 0.
|
port-channel number
|
(Optional) Specifies the channel interface; valid values are a maximum of 64 values ranging from 1 to 256.
|
vlan vlan-id
|
(Optional) Specifies the VLAN ID; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
This command clears all the current interface counters from the interface unless you specify the interface.
Note
This command does not clear counters that are retrieved using SNMP but only those counters that appear when you enter the show queueing interface command.
Examples
This example shows how to clear all interface counters:
Clear "show interface" counters on all interfaces [confirm]y
This example shows how to clear counters on a specific interface:
Router# clear counters vlan 200
Clear "show interface" counters on this interface [confirm]y
Related Commands
clear fm netflow counters
To clear the NetFlow counters, use the clear fm netflow counters command.
clear fm netflow counters
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the NetFlow counters:
Router# clear fm netflow counters
clear interface gigabitethernet
To clear the hardware logic on a Gigabit Ethernet IEEE 802.3z interface, use the clear interface gigabitethernet command.
clear interface gigabitethernet interface-number
Syntax Description
interface-number
|
Gigabit Ethernet interface number; the valid value is 1.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the hardware logic on a Gigabit Ethernet IEEE 802.3z interface:
Router# clear interface gigabitethernet 1
Related Commands
Command
|
Description
|
show interfaces status
|
Displays the interface status or a list of interfaces in an error-disabled state on LAN ports only.
|
clear interface vlan
To clear the hardware logic on a VLAN, use the clear interface vlan command.
clear interface vlan vlan-id
Syntax Description
vlan-id
|
VLAN ID; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the hardware logic on a specific VLAN:
Router# clear interface vlan 5
Related Commands
Command
|
Description
|
show interfaces status
|
Displays the interface status or a list of interfaces in an error-disabled state on LAN ports only.
|
clear ip access-template
To clear statistical information on the access list, use the clear ip access-template command.
clear ip access-template access-list
Syntax Description
access-list
|
Access list number; valid values are from 100 to 199 for an IP extended-access list and from 2000 to 2699 for an expanded-range IP extended-access list.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear statistical information on the access list:
Router# clear ip access-template 201
Related Commands
Command
|
Description
|
show mls netflow
|
Displays configuration information about the NetFlow hardware.
|
clear ip arp inspection log
To clear the status of the log buffer, use the clear ip arp inspection log command.
clear ip arp inspection log
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the contents of the log buffer:
Router# clear ip arp inspection log
Related Commands
Command
|
Description
|
arp access-list
|
Configures an ARP ACL for ARP inspection and QoS filtering and enters the ARP ACL configuration submode.
|
show ip arp inspection log
|
Displays the status of the log buffer.
|
clear ip arp inspection statistics
To clear the dynamic ARP inspection statistics, use the clear ip arp inspection statistics command.
clear ip arp inspection statistics [vlan vlan-range]
Syntax Description
vlan vlan-range
|
(Optional) Specifies the VLAN range.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the DAI statistics from VLAN 1:
Router# clear ip arp inspection statistics vlan 1
Related Commands
clear ip cef epoch full
To begin a new epoch and increment the epoch number for all tables (including the adjacency table), use the clear ip cef epoch full command.
clear ip cef epoch full
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
Use the clear ip cef epoch full command when you want to rebuild a table. This command allows old and new table entries to be distinguished within the same data structure and allows you to retain the old CEF database table while constructing the new table.
These show commands display epoch information:
•
show ip cef summary—Displays the table epoch for a specific FIB table.
•
show ip cef detail—Displays the epoch value for each entry of a specific FIB table.
•
show adjacency summary—Displays the adjacency table epoch.
•
show adjacency detail—Displays the epoch value for each entry of the adjacency table.
Examples
This example shows the output before and after you clear the epoch table and increment the epoch number:
Router# show ip cef epoch
Table epoch:2 (164 entries at this epoch)
Table epoch:1 (33 entries at this epoch)
Router# clear ip cef epoch full
Router# show ip cef epoch
Table epoch:3 (164 entries at this epoch)
Table epoch:2 (33 entries at this epoch)
Related Commands
Command
|
Description
|
show adjacency detail
|
Displays the information about the protocol detail and timer.
|
show adjacency summary
|
Displays a summary of CEF-adjacency information.
|
show ip cef detail
|
Displays detailed FIB entry information.
|
show ip cef epoch
|
Displays the epoch information for the adjacency table and all FIB tables.
|
show ip cef summary
|
Displays a summary of the FIB.
|
clear ip cef inconsistency
To clear the statistics and records for the CEF-consistency checker, use the clear ip cef inconsistency command.
clear ip cef inconsistency
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
This command clears the statistics and records that accumulate when you enable the ip cef table consistency-check command.
Examples
This example shows how to clear all statistics and records for the CEF-consistency checker:
Router# clear ip cef inconsistency
Related Commands
clear ip dhcp snooping binding
To clear the DHCP-snooping binding-entry table without disabling DHCP snooping, use the clear ip dhcp snooping binding command.
clear ip dhcp snooping binding
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the DHCP-snooping binding-entry table:
Router# clear ip dhcp snooping binding
clear ip flow stats
To clear the NetFlow-switching statistics, use the clear ip flow stats command.
clear ip flow stats
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
The show ip cache flow command displays the NetFlow-switching statistics.
Examples
This example shows how to clear the NetFlow-switching statistics:
Router# clear ip flow stats
Related Commands
Command
|
Description
|
show ip cache flow
|
Displays a summary of the NetFlow cache-flow entries.
|
clear ip igmp group
To delete the entries for the IGMP-group cache, use the clear ip igmp group command.
clear ip igmp [vrf vrf-name] group [{interface interface-number} | {group-name | group-address}
{loopback interface-number} | {null interface-number} | {port-channel number} |
{vlan vlan-id}]
Syntax Description
vrf vrf-name
|
(Optional) Specifies the name that is assigned to the multicast VPN routing and forwarding (VRF) instance.
|
interface
|
(Optional) Interface type; the valid value is gigabitethernet.
|
interface-number
|
Module and port number; the valid value is 1/N where N is the port number.
|
group-name
|
(Optional) Group name as defined in the DNS hosts table or with the ip host command.
|
group-address
|
(Optional) Address of the multicast group in four-part, dotted notation.
|
loopback interface-number
|
(Optional) Specifies the loopback interface; valid values are from 0 to 2147483647.
|
null interface-number
|
(Optional) Specifies the null interface; the valid value is 0.
|
port-channel number
|
(Optional) Specifies the channel interface; valid values are a maximum of 64 values ranging from 1 to 256.
|
vlan vlan-id
|
(Optional) Specifies the VLAN ID; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
The IGMP cache contains a list of hosts on the directly connected LAN. If the router has joined a group, that group is also listed in the cache.
To delete all entries from the IGMP cache, specify the clear ip igmp group command with no arguments.
Examples
This example shows how to clear the entries for a specific group from the IGMP cache:
Router# clear ip igmp group 224.0.255.1
This example shows how to clear the IGMP-group cache entries from a specific interface of the IGMP-group cache:
Router# clear ip igmp group gigabitethernet 1/2
Related Commands
Command
|
Description
|
ip host
|
Defines a static hostname-to-address mapping in the host cache.
|
show ip igmp groups
|
Deletes the entries for the IGMP-group cache.
|
show ip cache flow
|
Displays the multicast groups with receivers that are directly connected to the router and that were learned through IGMP.
|
clear ip igmp snooping statistics
To clear the IGMP-snooping statistics, use the clear ip igmp snooping statistics command.
clear ip igmp snooping statistics [vlan vlan-id]
Syntax Description
vlan vlan-id
|
(Optional) Specifies the VLAN ID; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
If you do not enter a VLAN, the IGMP-snooping statistics for all VLANs is cleared.
Examples
This example shows how to clear the IGMP-snooping statistics for all VLANs:
Router# clear ip igmp snooping statistics
This example shows how to clear the IGMP-snooping statistics for a specific VLAN:
Router# clear ip igmp snooping statistics vlan 300
Related Commands
clear ip mroute
To delete entries from the IP multicast routing table, use the clear ip mroute command.
clear ip mroute [vrf vrf-name] {* | group} [source]
Syntax Description
vrf vrf-name
|
(Optional) Specifies the name that is assigned to the multicast VPN routing and forwarding (VRF) instance.
|
*
|
Deletes all entries from the IP multicast routing table.
|
group
|
Name or IP address of the multicast group; see the "Usage Guidelines" section for additional information.
|
source
|
(Optional) Name or address of a multicast source that is sending to the group; see the "Usage Guidelines" section for additional information.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
The group argument specifies one of the following:
•
Name of the multicast group as defined in the DNS hosts table or with the ip host command.
•
IP address of the multicast group in four-part, dotted notation.
If you specify a group name or address, you can also enter the source argument to specify a name or address of a multicast source that is sending to the group. A source does not need to be a member of the group.
Examples
This example shows how to delete all entries from the IP multicast routing table:
Router# clear ip mroute *
This example shows how to delete all sources on the 255.255.255.224 subnet that are sending to the multicast group 224.2.205.42 from the IP multicast routing table. This example shows how to delete all sources on network 228.3, not individual sources.
Router# clear ip mroute 224.2.205.42 228.3.0.0
Related Commands
Command
|
Description
|
ip host
|
Defines a static host name-to-address mapping in the host cache.
|
show ip mroute
|
Displays the information about the IP-multicast routing table.
|
clear ip msdp peer
To clear the TCP connection to the specified MSDP peer, use the clear ip msdp peer command.
clear ip msdp [vrf vrf-name] peer {peer-address | peer-name}
Syntax Description
vrf vrf-name
|
(Optional) Specifies the name that is assigned to the multicast VPN routing and forwarding (VRF) instance.
|
peer-address | peer-name
|
IP address or name of the MSDP peer to which the TCP connection is cleared.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
This command closes the TCP connection to the peer, resets all the MSDP peer statistics, and clears the input and output queues to and from the MSDP peer.
Examples
This example shows how to clear the TCP connection to the MSDP peer at 224.15.9.8:
Router# clear ip msdp peer 224.15.9.8
Related Commands
Command
|
Description
|
ip host
|
Configures an MSDP peer.
|
clear ip msdp sa-cache
To clear MSDP source active cache entries, use the clear ip msdp sa-cache command.
clear ip msdp [vrf vrf-name] sa-cache [group-address | group-name]
Syntax Description
vrf vrf-name
|
(Optional) Specifies the name that is assigned to the multicast VPN routing and forwarding (VRF) instance.
|
group-address | group-name
|
(Optional) Multicast group address or name for which source active entries are cleared from the source active cache.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
In order to have any source active entries in the cache to clear, you must enable source active caching by entering the ip msdp cache-sa-state command.
If no multicast group is identified by group address or name, all source active cache entries are cleared.
Examples
This example shows how to clear the source active entries for the multicast group 224.5.6.7 from the cache:
Router# clear ip msdp sa-cache 224.5.6.7
Related Commands
Command
|
Description
|
ip host
|
Configures an MSDP peer.
|
ip msdp cache-sa-state
|
Creates a source-active state on the router.
|
show ip msdp sa-cache
|
Displays (S, G) state learned from MSDP peers.
|
clear ip msdp statistics
To clear statistics counters for one or all of the MSDP peers without resetting the sessions, use the clear ip msdp statistics command.
clear ip msdp [vrf vrf-name] statistics [peer-address | peer-name]
Syntax Description
vrf vrf-name
|
(Optional) Specifies the name that is assigned to the multicast VPN routing and forwarding (VRF) instance.
|
peer-address | peer-name
|
(Optional) Address or name of the MSDP peers whose statistics counters, reset count, and input/output count are cleared.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the counters for the peer named sanjose:
Router# clear ip msdp statistics sanjose
Related Commands
Command
|
Description
|
show ip msdp sa-cache
|
Displays (S, G) state learned from MSDP peers.
|
clear ip pim auto-rp
To delete entries from the Auto-RP cache, use the clear ip pim auto-rp command.
clear ip pim [vrf vrf-name] auto-rp rp-address
Syntax Description
vrf vrf-name
|
(Optional) Specifies the name that is assigned to the multicast VPN routing and forwarding (VRF) instance.
|
rp-address
|
Rendevous-point address; see the "Usage Guidelines" section for additional information.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
When you enter the rp-address argument, only the entries related to the rendezvous point at this address are cleared. If you omit this argument, the entire Auto-RP cache is cleared.
Examples
This example shows how to delete all entries from the Auto-RP cache:
Router# clear ip pim auto-rp 224.5.6.7
Related Commands
Command
|
Description
|
show ip pim rp mapping
|
Displays the mappings for the PIM group to the active rendezvous points.
|
clear ip pim snooping statistics
To delete the IP PIM-snooping global statistics, use the clear ip pim snooping statistics command.
clear ip pim snooping statistics
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the IP PIM statistics:
Router# clear ip pim snooping statistics
Related Commands
clear ip pim snooping vlan
To delete the IP PIM-snooping entries on a specific VLAN, use the clear ip pim snooping vlan command.
clear ip pim snooping vlan vlan-id mac-address gda-address
clear ip pim snooping vlan vlan-id mroute {* | {group-addr src-addr} {{downstream-neighbor
ip-addr} | {upstream-neighbor ip-addr}}}
clear ip pim snooping vlan vlan-id neighbor {* | ip-addr}
Syntax Description
vlan-id
|
VLAN ID; valid values are from 1 to 4094.
|
mac-address gda-address
|
Specifies the multicast group MAC address to delete.
|
mroute *
|
Deletes all mroute entries.
|
mroute group-addr src-addr
|
Deletes the mroute entries at the specified group and source IP address.
|
downstream-neighbor ip-addr
|
Deletes the entries at the specified downstream neighbor originating the join/prune message.
|
upstream-neighbor ip-addr
|
Deletes the entries at the specified upstream neighbor receiving the join/prune message.
|
neighbor *
|
Deletes all neighbors.
|
neighbor ip-addr
|
Deletes the neighbor at the specified IP address.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear the IP PIM statistics on a specific VLAN:
Router# clear ip pim snooping vlan 25 statistics
Related Commands
clear lacp counters
To clear the statistics for all interfaces belonging to a specific channel group, use the clear lacp counters command.
clear lacp [channel-group] counters
Syntax Description
channel-group
|
(Optional) Channel group number; valid values are from 1 to 256.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
If you do not specify a channel-group, all channel groups are cleared.
If you enter this command for a channel group that contains members in PAgP mode, the command is ignored.
Examples
This example shows how to clear the statistics for a specific group:
Router# clear lacp 1 counters
Related Commands
Command
|
Description
|
show lacp
|
Displays LACP information.
|
clear logging ip access-list cache
To clear all the entries from the OAL cache and send them to the syslog, use the clear logging ip access-list cache command.
clear logging ip access-list cache
Syntax Description
This command has no keywords or arguments.
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Examples
This example shows how to clear all the entries from the OAL cache and send them to the syslog:
Router# clear logging ip access-list cache
Related Commands
clear mac-address-table dynamic
To clear the dynamic address entries from the MAC-address table in Layer 2, use the clear mac-address-table dynamic command.
clear mac-address-table dynamic [{address mac-addr} | {interface interface interface-number}
| {protocol {assigned | ip | other}}] [vlan vlan-id]
Syntax Description
address mac-addr
|
(Optional) Specifies the MAC address.
|
interface interface
|
(Optional) Specifies the interface type; the valid value is gigabitethernet.
|
interface-number
|
Module and port number; the valid value is 1/N where N is the port number.
|
protocol assigned
|
(Optional) Specifies the assigned protocol bucket accounts for such protocols as DECnet, Banyan VINES, and AppleTalk.
|
protocol ip
|
(Optional) Specifies the protocol type of the entries to clear.
|
protocol other
|
(Optional) Specifies the protocol types (other than IP) of the entries to clear.
|
vlan vlan-id
|
(Optional) Specifies the VLAN ID; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
12.2(18)ZU
|
Support for this command was introduced.
|
Usage Guidelines
The protocol {assigned | ip | other} keywords are not supported.
Enter the clear mac-address-table dynamic command with no arguments to remove all dynamic entries from the table.
Examples
This example shows how to clear all dynamic Layer 2 entries for a specific interface (e2/1) and protocol type (IP):
Router# clear mac-address-table dynamic interface gigabitethernet1/1 protocol ip
Related Commands
clear mls acl counters
To clear the MLS ACL counters, use the clear mls acl counters command.
clear mls acl counters {{all [module num]} | {interface interface interface-number} [{loopback
interface-number} | {null interface-number} | {port-channel number} | {vlan vlan-id}]}
Syntax Description
all
|
Clears all the MLS ACL counters for all interfaces.
|
module num
|
(Optional) Clears all the MLS ACL counters for the specified DFC.
|
interface interface
|
(Optional) Specifies the interface type; the valid value is gigabitethernet.
|
interface-number
|
Module and port number; the valid value is 1/N where N is the port number.
|
loopback interface-number
|
(Optional) Specifies the loopback interface; valid values are from 0 to 2147483647.
|
null interface-number
|
(Optional) Specifies the null interface; the valid value is 0.
|
port-channel number
|
(Optional) Specifies the channel interface; valid values are a maximum of 64 values ranging from 1 to 256.
|
vlan vlan-id
|
(Optional) Specifies the VLAN ID; valid values are from 1 to 4094.
|
Defaults