Name

clear — command

Synopsis

clear command

Description

A clear command erases counters for various statistics or performs a reset action. For example, clear line clears an asynchronous line and drops the connection, while clear cdp counters resets the Cisco Discovery Protocol statistics. Table 17-4 summarizes the many clear commands.

Table 17-4. Clear commands

Command

Subcommand

Action

clear access-list

counters

Clears access list statistical information.

clear access-template

 

Clears the access template.

clear arp-cache

 

Clears the entire ARP cache.

clear bridge

 

Resets bridge forwarding cache.

 

multicast

Resets multicast group state.

clear bstun

 

Clears counters displayed in show bstun.

clear cdp

 

Resets CDP information.

 

counters

Clears CDP counters.

 

table

Clears the CDP table.

clear counters

interface

Clears counters on one or all interfaces.

clear controller

  

clear crypto

 

Resets encryption subsystem.

clear dialer

interface

Clears dialer statistics.

clear frame-relay-inarp

 

Clears inverse ARP entries from the map table.

clear host

*

Deletes all host table entrie.s

 

name

Deletes the given host table entry.

clear hub

ethernet n

Clears (resets) a hub.

 

counters

Clears hub statistics.

clear interface

 

Clears the hardware logic on an interface.

clear ip access-list counters

 

Clears access list statistical information.

clear ip access-template

 

Clears the IP access template.

clear ip ...

Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.