Clears parameters, cache entries, table entries, and other similar entries. The clear command is available for specific commands only. The information cleared, using this command, depends on the mode in which the clear command is executed.
Note
This command and its syntax is common to both the User Executable and Privilege Executable configuration modes.
clear [arp-cache|bonjour|cdp|counters|crypto|event-history|firewall|gre|ip|ipv6| l2tpv3-stats|lacp|license|lldp|mac-address-table|mint|role|rtls|spanning-tree| traffic-shape|vrrp]
clear arp-cache {on <DEVICE-NAME>}
clear bonjour cache {on <DEVICE-NAME>}
clear [cdp|lldp] neighbors {on <DEVICE-NAME>}
clear counters [all|ap|bridge|interface|radio|router|thread|wireless-client]
clear counters all {(on <DEVICE-OR-DOMAIN-NAME>)}
clear counters [bridge|router|thread]
clear counters interface <INF-TYPE> {(on <DEVICE-OR-DOMAIN-NAME>)}
clear counters [ap {<MAC>}|radio {<MAC/DEVICE-NAME>} {<1-3>}| wireless-client {<MAC>}] {(on <DEVICE-OR-DOMAIN-NAME>)}
clear crypto [ike|ipsec] sa
clear crypto ike sa [<IP>|all] {on <DEVICE-NAME>}
clear crypto ipsec sa {on <DEVICE-NAME>}
clear event-history
clear firewall [dhcp|dos|flows|neighbors]
clear firewall [dhcp|neighbors] snoop-table {on <DEVICE-NAME>}
clear firewall [dos stats|flows [ipv4|ipv6]] {on <DEVICE-NAME>}
clear gre stats {on <DEVICE-NAME>}
clear ip [bgp|dhcp|ospf]
clear ip bgp [<IP>|all|external|process]
clear ip bgp [<IP>|all|external] {in|on|out|soft}
clear ip bgp [<IP>|all|external] {in prefix-filter} {on <DEVICE-NAME>}
clear ip bgp [<IP>|all|external] {out} {(on <DEVICE-NAME>)}
clear ip bgp [<IP>|all|external] {soft {in|out}} {on <DEVICE-NAME>}
clear ip bgp process {on <DEVICE-NAME>}
clear ip dhcp bindings [<IP>|all] {on <DEVICE-NAME>}
clear ip ospf process {on <DEVICE-NAME>}
clear mac-address-table {address|interface|vlan} {on <DEVICE-NAME>}
clear ipv6 neighbor-cache {on <DEVICE-NAME>}
clear lacp [<1-4> counters|counters]
clear license [borrowed|lent to <BORROWER-CONTROLLER-NAME>]
{on <DEVICE-NAME>}
clear l2tpv3-stats tunnel <TUNNEL-NAME> {session <SESSION-NAME>}
{on <DEVICE-NAME>}
clear mac-address-table {address <MAC>|vlan <1-4094>} {on <DEVICE-NAME>}
clear mac-address-table {address|interface|mac-auth-state|vlan}
{on <DEVICE-NAME>}
clear mac-address-table {address <MAC>|vlan <1-4094>} {on <DEVICE-NAME>}
clear mac-address-table {interface [<IN-NAME>|ge <1-2>|port-channel <1-2>|
vmif <1-8>]} {on <DEVICE-NAME>}
clear mac-address-table mac-auth-state address <MAC> vlan <1-4094>
{on <DEVICE-NAME>}
clear mint mlcp history {on <DEVICE-NAME>}
clear role ldap-stats {on <DEVICE-NAME>}
clear rtls [aeroscout|ekahau]
clear rtls [aeroscout|ekahau] {<MAC/DEVICE-NAME> {on <DEVICE-OR-DOMAIN-NAME>}|
on <DEVICE-OR-DOMAIN-NAME>}
clear spanning-tree detected-protocols{interface|on}
clear spanning-tree detected-protocols {on <DEVICE-NAME>}
clear spanning-tree detected-protocols {interface [<INTERFACE-NAME>|ge <1-X>|
me1|port-channel <1-X>|pppoe1|up1|vlan <1-4094>|wwan1]} {on <DEVICE-NAME>}
clear traffic-shape statistics class <1-4> {(on <DEVICE-NAME>)}
clear vrrp [error-stats|stats] {on <DEVICE-NAME>}
clear arp-cache {on <DEVICE-NAME>}
arp-cache |
Clears ARP cache entries on a AP, wireless controller, or service platform. This protocol matches the layer 3 IP addresses to the layer 2 MAC addresses. |
on <DEVICE-NAME> |
Optional. Clears ARP cache entries on a specified device
|
clear bonjour cache {on <DEVICE-NAME>}
bonjour cache |
Clears all Bonjour cached statistics. Once cleared the system has to re-discover available Bonjour services. |
on <DEVICE-NAME> |
Optional. Clears all Bonjour cached statistics on a specified device
|
clear [cdp|lldp] neighbors {on <DEVICE-NAME>}
cdp |
Clears CDP table entries |
lldp |
Clears LLDP table entries |
neighbors |
Clears CDP or LLDP neighbor table entries based on the option selected in the preceding step |
on <DEVICE-NAME> |
Optional. Clears CDP or LLDP neighbor table entries on a specified device
|
clear counters all {(on <DEVICE-OR-DOMAIN-NAME>)}
counters |
Clears all counters on the logged device or on all devices within a specified RF Domain. These counters are: AP, bridge, interface, radio, router, thread and wireless clients. |
on <DEVICE-OR-DOMAIN-NAME> |
Optional. Specify the device name or the RF Domain name.
Note:
If you do not specify a device name or an RF Domain name, the system clears all counters on the logged device. |
clear counters [bridge|router|thread]
counters |
Clears counters based on the parameters passed. The options are: AP, bridge, interface, radio, router, thread and wireless clients. |
[bridge|router|thread] |
Select one of the following options:
|
clear counters [ap {<MAC>}|radio {<MAC/DEVICE-NAME>} {<1-X>}|wireless-client {<MAC>}] {(on <DEVICE-OR-DOMAIN-NAME>)}
counters |
Clears counters based on the parameters passed. The options are: AP, bridge, interface, radio, router, thread and wireless clients. |
ap <MAC> |
Clears counters for all APs or a specified AP
Note:
If no MAC address is specified, all AP counters are cleared. |
radio <MAC/DEVICE-NAME> <1-X> |
Clears radio interface counters on a specified device or on all devices
Note:
If no device name or MAC address is specified, all radio interface counters are cleared. |
wireless-client <MAC> |
Clears counters for all wireless clients or a specified wireless client
Note:
If no MAC address is specified, all wireless client counters are cleared. |
on <DEVICE-OR-DOMAIN-NAME> |
The following option is common to all of the above keywords:
|
clear counters interface <INF-TYPE> <INF-NUMBER>{(on <DEVICE-OR-DOMAIN-NAME>)}
counters |
Clears counters based on the parameters passed. The options are: AP, bridge, interface, radio, router, thread and wireless clients. |
interface <INF-TYPE> <INF-NUMBER> |
Clears interface counters
|
on <DEVICE-OR-DOMAIN-NAME> |
Optional. Clears the specified interface
counters on a specified device or RF
Domain.
|
clear crypto ike sa [<IP>|all] {on <DEVICE-NAME>}
crypto |
Clears encryption module‘s cached statistics |
ike sa [<IP>|all] |
Clears Internet Key Exchange (IKE) security associations (SAs)
|
on <DEVICE-NAME> |
Optional. Clears IKE SA entries, for a specified peer or all peers, on a specified device
|
clear crypto ipsec sa {on <DEVICE-NAME>}
crypto |
Clears encryption module‘s cached statistics |
ipsec sa {on <DEVICE-NAME>} |
Clears IPsec/IPsec-ESP/IPsec-AH database SAs
|
clear gre stats {on <DEVICE-NAME>}
gre stats |
Clears GRE tunnel statistics |
on <DEVICE-NAME> |
Optional. Clears GRE tunnel statistics on a specified device
|
clear event-history
event-history |
Clears event history cache entries |
clear firewall [dhcp|neighbors] snoop-table {on <DEVICE-NAME>}
firewall |
Clears configured wireless firewall filter statistics based on the parameters passed |
[dhcp|neighbors] snoop-table |
Clears the following snoop-table database
|
on <DEVICE-NAME> |
The following option is common to both the 'dhcp' and 'neighbor' parameters:
|
clear firewall [dos stats|flows [ipv4|ipv6]] {on <DEVICE-NAME>}
firewall |
Clears configured wireless firewall filter statistics based on the parameters passed |
dos stats |
Clears DoS statistics |
flows [ipv4|ipv6] |
Clears all established IPv4 or IPv6 firewall session statistics
|
on <DEVICE-NAME> |
The following option is common to both the 'dos' and 'flows' parameters:
|
clear ip bgp [<IP>|all|external] {in prefix-filter} {on <DEVICE-NAME>}
ip bgp [<IP>|all|external] |
Clears on-going BGP sessions based on the option selected
This command is applicable only to the NX9500, NX9600, and VX9000 platforms. Modifications made to BGP settings (BGP access lists, weight, distance, route-maps, versions, routing policy, etc.) take effect only after on-going BGP sessions are cleared. The clear > ip > bgp command clears BGP sessions. To reduce lose of route updates during the process, use the ‘soft‘ option. Soft reconfiguration stores inbound/outbound route updates to be processed later and updated to the routing table. This requires high memory usage. |
in prefix-filter |
Optional. Clears inbound route updates
|
on <DEVICE-NAME> |
Optional. Clears route updates on a specified device
|
clear ip bgp [<IP>|all|external] {out} {(on <DEVICE-NAME>)}
ip bgp [<IP>|all|external] |
Clears on-going BGP sessions based on the option selected
This command is applicable only to the NX9500, NX9600, and VX9000 platforms. |
out |
Optional. Clears outbound route updates. Optionally specify the device on which to execute this command. |
on <DEVICE-NAME> |
The following keyword is recursive and optional.
|
clear ip bgp [<IP>|all|external] {soft {in|out}} {on <DEVICE-NAME>}
ip bgp [<IP>|all|external] |
Clears on-going BGP sessions based on the option selected
This command is applicable only to the NX9500, NX9600, and VX9000 platforms. |
soft {in|out} |
Optional. Initiates soft-reconfiguration of route updates for the specified IP address
Modifications made to BGP settings (BGP access lists, weight, distance, route-maps, versions, routing policy, etc.) take effect only after on-going BGP sessions are cleared. The clear > ip > bgp command clears BGP sessions. To reduce loss of route updates during the process, use the ‘soft‘ option. Soft reconfiguration stores inbound/outbound route updates to be processed later and updated to the routing table. This requires high memory usage. |
on <DEVICE-NAME> |
Optional. Initiates soft reconfiguration inbound/outbound route updates on a specified device
|
clear ip bgp process {on <DEVICE-NAME>}
ip bgp process |
Clears all BGP processes running This command is applicable only to the NX9500, NX9600, and VX9000 platforms. |
on <DEVICE-NAME> |
Optional. Clears all BGP processes on a specified device
|
clear ip dhcp bindings [<IP>|all] {on <DEVICE-NAME>}
ip |
Clears a DHCP (Dynamic Host Configuration Protocol) server's IP address binding entries |
dhcp bindings |
Clears DHCP connections and server bindings |
<IP> |
Clears specific address binding entries. Specify the IP address to clear binding entries. |
all |
Clears all address binding entries |
on <DEVICE-NAME> |
Optional. Clears a specified address binding or all address bindings on a specified device
|
clear ip ospf process {on <DEVICE-NAME>}
ip ospf process |
Clears already enabled OSPF (Open Shortest Path First) process and restarts the process |
on <DEVICE-NAME> |
Optional. Clears OSPF process on a specified device OSPF is a link-state IGP (interior gateway protocol). OSPF routes IP packets within a single routing domain (autonomous system), like an enterprise LAN. OSPF gathers link state information from neighboring routers and constructs a network topology. The topology determines the routing table presented to the Internet Layer, which makes routing decisions based solely on the destination IP address found in IP packets.
|
clear ipv6 neighbor-cache {on <DEVICE-NAME>}
clear ipv6 neighbor-cache |
Clears IPv6 neighbor cache entries |
on <DEVICE-NAME> |
Optional. Clears IPv6 neighbor cache entries on a specified device
|
clear lacp [<1-4> counters|counters]
clear lacp [<1-4> counters| counters] |
Clears LACP counters/statistics for a specified channel group or all channel groups configured
|
clear license [borrowed|lent to <BORROWER-CONTROLLER-NAME>] {on <DEVICE-NAME>}
license |
Releases borrowed licenses or revokes lent licenses |
borrowed |
Releases all licenses borrowed by the logged controller or by a specified controller Note:
If you do not specify a controller name, the command is executed on the controller you have logged on to. |
lent to <BORROWING-CONTROLLER-NAME> |
Revokes licenses lent to a specified controller
|
on <DEVICE-NAME> |
Optional. This option is common to both of the above parameters.
|
clear l2tpv3-stats tunnel <TUNNEL-NAME> {session <SESSION-NAME>} {on <DEVICE-NAME>}
l2tpv3-stats |
Clears L2TPv3 tunnel statistics for a specified L2TPv3 tunnel |
tunnel <TUNNEL-NAME> |
Specifies the tunnel name |
session <SESSION-NAME> |
Optional. Clears a specific session statistics in the specified L2TPv3 tunnel.
|
on <DEVICE-NAME> |
This option is common to all of the above parameters.
|
clear mac-address-table{address <MAC>|vlan <1-4094>} {on <DEVICE-NAME>}
mac-address-table |
Clears MAC address forwarding table data based on the parameters passed Use this command to clear the following: all or specified MAC addresses from the system, all MAC addresses on a specified interface, all MAC addresses on a specified VLAN, or the authentication state of a MAC address. |
address <MAC> |
Optional. Clears a specified MAC address from the MAC address table.
Note:
If executed without specifying any MAC address(es), all MAC addresses from the MAC address table will be removed. |
vlan <1-4094> |
Optional. Clears all MAC addresses for a specified VLAN
|
on <DEVICE-NAME> |
Optional. Clears a single MAC entry or all MAC entries, for the specified VLAN on a specified device
|
clear mac-address-table {interface [<IF-NAME>|ge <1-X>|port-channel <1-X>]} {on <DEVICE-NAME>}
mac-address-table |
Clears MAC address forwarding table data based on the parameters passed Use this command to clear the following: all or specified MAC addresses from the system, all MAC addresses on a specified interface, all MAC addresses on a specified VLAN, or the authentication state of a MAC address. |
interface |
Clears all MAC addresses for the selected interface. Use the options available to specify the interface. |
<IF-NAME> |
Clears MAC address forwarding table for the specified layer 2 interface (Ethernet port)
|
ge <1-X> |
Clears MAC address forwarding table for the specified GigabitEthernet interface
Note:
The number of GE interfaces supported varies for different device types. |
port-channel <1-X> |
Clears MAC address forwarding table for the specified port-channel interface
Note:
The number of port-channel interfaces supported varies for different device types. |
on <DEVICE-NAME> |
Optional. Clears the MAC address forwarding table, for the selected interface, on a specified device
|
clear mac-address-table mac-auth-state address <MAC> vlan <1-4904> {on <DEVICE-NAME>}
mac-address-table mac-auth-state address <MAC> vlan <1-4904> |
Clears MAC addresses learned from a particular VLAN when WLAN MAC authentication and captive portal fall back is enabled Access points/controllers provide WLAN access to clients whose MAC address has been learned and stored in their MAC address tables. Use this command to clear a specified MAC address on the MAC address table. Once cleared the client has to re-authenticate, and is provided access only on successful authentication.
|
on <DEVICE-NAME> |
Optional. Clears the specified MAC address on a specified device
Note:
If a device is not specified, the system clears the MAC address on all devices. |
clear mint mlcp history {on <DEVICE-NAME>}
mint |
Clears MiNT related information |
mlcp history |
Clears MiNT Link Creation Protocol (MLCP) client history |
on <DEVICE-NAME> |
Optional. Clears MLCP client history on a specified device
|
clear role ldap-stats {on <DEVICE-NAME>}
role ldap-stats |
Clears Lightweight Directory Access Protocol (LDAP) server statistics |
on <DEVICE-NAME> |
Optional. Clears LDAP server statistics on a specified device
|
clear rtls [aeroscout|ekahau] {<MAC/DEVICE-NAME> {on <DEVICE-OR-DOMAIN-NAME>}| on <DEVICE-OR-DOMAIN-NAME>}
rtls |
Clears Real Time Location Service (RTLS) statistics |
aeroscout |
Clears RTLS Aeroscout statistics |
ekahau |
Clears RTLS Ekahau statistics |
<MAC/DEVICE-NAME> |
This keyword is common to the ‘aeroscout' and ‘ekahau' parameters.
|
on <DEVICE-OR-DOMAIN-NAME> |
This keyword is common to the ‘aeroscout' and ‘ekahau' parameters.
|
clear spanning-tree detected-protocols {on <DEVICE-NAME>}
spanning-tree |
Clears spanning tree entries on an interface and restarts protocol migration |
detected-protocols |
Restarts protocol migration |
on <DEVICE-NAME> |
Optional. Clears spanning tree entries on a specified device
|
clear spanning-tree detected-protocols {interface [<INTERFACE-NAME>|ge <1-X>|me1|port-channel <1-X>|pppoe1|up1|vlan <1-4094>|wwan1]} {on <DEVICE-NAME>}
spanning-tree |
Clears spanning tree entries on an interface and restarts protocol migration |
detected-protocols |
Restarts protocol migration |
interface [<INTERFACE-NAME>| ge <1-X>|me1| port-channel <1-X>| pppoe1|up1| vlan <1-4094>| wwan1] |
Optional. Clears spanning tree entries on different interfaces
|
on <DEVICE-NAME> |
Optional. Clears spanning tree entries on a specified device
|
clear traffic-shape statistics class <1-4> {(on <DEVICE-NAME>)
traffic-shape statistics |
Clears traffic shaping statistics |
class <1-4> |
Clears traffic shaping statistics for a specific traffic class
|
on <DEVICE-NAME> |
Optional. Clears traffic shaping statistics for the specified traffic class on a specified device
|
clear vrrp [error-stats|stats] {on <DEVICE-NAME>}
vrrp |
Clears VRRP statistics |
error-stats |
Clears global error statistics |
stats |
Clears VRRP related statistics |
on <DEVICE-NAME> |
This following keywords are common to the ‘error-stats' and ‘stats' parameters:
|
ap510-133B3B>show event-history EVENT HISTORY REPORT Generated on '2019-01-08 13:31:16 UTC' by 'admin' 2019-01-08 13:07:43 ap510-133B3B SYSTEM LOGIN Successfully logged in user 'admin' with privilege 'superuser' from 'conso' 2019-01-01 00:02:00 ap510-133B3B SYSTEM COLD_START System Cold start. System came up at Jan 01 00:02:00 2019 2019-01-01 00:00:27 ap510-133B3B NSM IFUP Interface ge1 is up 2019-01-01 00:00:26 ap510-133B3B NSM IFUP Interface ge1 is up 2019-01-01 00:00:23 ap510-133B3B DIAG NEW_LED_STATE LED state message RADIO_2_52G_LED_ON from module DOT11 2019-01-01 00:00:23 ap510-133B3B RADIO RADIO_STATE_CHANGE Radio 'ap510-133B3B:R2' changing state from 'Initializing' to 'On' 2019-01-01 00:00:23 ap510-133B3B DIAG NEW_LED_STATE LED state message RADIO_2_52G_LED_ON from module DOT11 2019-01-01 00:00:23 ap510-133B3B RADIO RADIO_STATE_CHANGE Radio 'ap510-133B3B:R2' changing state from 'On' to 'Initializing' 2019-01-01 00:00:23 ap510-133B3B DIAG NEW_LED_STATE LED state message RADIO_1_24G_NOT_CONFIG from module DOT11 2019-01-01 00:00:23 ap510-133B3B RADIO RADIO_STATE_CHANGE Radio 'ap510-133B3B:R1' changing state from 'Initializing' to 'Off(no wlans mapped)' --More-- ap510-133B3B>
ap510-133B3B>clear event-history
ap510-133B3B>show event-history EVENT HISTORY REPORT Generated on '2019-01-08 13:32:20 UTC' by 'admin' ap510-133B3B>