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 traffic-shape statistics class <1-4> {(on <DEVICE-NAME>)}
clear vrrp [error-stats|stats] {on <DEVICE-NAME>}
Parameters
clear arp-cache {on <DEVICE-NAME>}
arp-cache
Clears ARP (Address Resolution Protocol) cache entries on an AP, wireless controller, service platform, or virtual 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
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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.
on <DEVICE-OR-DOMAIN-NAME> – Optional. Clears all counters on a specified device or RF Domain.
<DEVICE-OR-DOMAIN-NAME> – Specify the name of the AP, wireless controller, service platform, virtual platform, or RF Domain.
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:
bridge – Clears bridge counters. When executed, this command resets the bridge forwarding cache.
router – Clears router counters. When executed, this command resets the router counters.
thread – Clears thread counters. When executed, this command resets the pre-thread 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
<MAC> – Optional. Specify the AP MAC address.
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
<MAC/DEVICE-NAME> – Optional. Specify the device hostname or MAC address. Optionally, append the radio interface number (to the radio ID) using one of the following formats: AA-BB-CC-DD-EE-FF:RX or HOSTNAME:RX (where RX is the interface number).
<1-X> – Optional. Identifies the radio interface by its index. Specify the radio interface index, if not specified as part of the radio ID. Note, the number of radio interfaces available varies with the access point type.
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
<MAC> – Optional. Specify the wireless client MAC address.
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:
on <DEVICE-OR-DOMAIN-NAME> – Optional. Clears AP, radio, or wireless client counters on a specified device or RF Domain.
<DEVICE-OR-DOMAIN-NAME> – Specify the name of the AP, wireless controller, service platform, virtual platform, or RF Domain.
This command is applicable only to NX9500 and NX9600 service platforms, and CX9000 and VX9000 virtual 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.
Optional. Clears route updates on a specified device
<DEVICE-NAME> – Specify the name of the service platform or virtual platform.
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
<IP> – Clears BGP session with the peer identified by the <IP> keyword. Specify the BGP peer‘s IP address.
all – Clears all BGP peer sessions
external – Clears eBGP peer sessions
This command is applicable only to NX9500 and NX9600 service platforms, and CX9000 and VX9000 virtual 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.
on <DEVICE-NAME> – Optional. Clears BGP sessions on a specified device
<DEVICE-NAME> – Specify the name of the service platform or virtual platform.
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
<IP> – Clears BGP session with the peer identified by the <IP> keyword. Specify the BGP peer‘s IP address.
all – Clears all BGP peer sessions
external – Clears eBGP peer sessions
This command is applicable only to NX9500 and NX9600 service platforms, and CX9000 and VX9000 virtual platforms.
soft {in|out}
Optional. Initiates soft-reconfiguration of route updates for the specified IP address
in – Optional. Enables soft reconfiguration of inbound route updates
out – Optional. Enables soft reconfiguration of outbound route updates
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
<DEVICE-NAME> – Specify the name of the service platform or virtual platform.
clear ip bgp process {on <DEVICE-NAME>}
ip bgp process
Clears all BGP processes running
This command is applicable only to NX9500 and NX9600 service platforms, and CX9000 and VX9000 virtual platforms.
on <DEVICE-NAME>
Optional. Clears all BGP processes on a specified device
<DEVICE-NAME> – Specify the name of the service platform or virtual platform.
clear ip dhcp bindings [<IP>|all] {on <DEVICE-NAME>}
ip
Clears a Dynamic Host Configuration Protocol (DHCP) 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
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
clear ip ospf process {on <DEVICE-NAME>}
ip ospf process
Clears already enabled Open Shortest Path First (OSPF) process and restarts the process
on <DEVICE-NAME>
Optional. Clears OSPF process on a specified device
OSPF is a link-state interior gateway protocol (IGP). 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.
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
clear lacp [<1-4> counters|counters]
clear lacp [<1-4> counters| counters]
Clears LACP (Link Aggregation Control Protocol) counters/statistics for a specified channel group or all channel groups configured
<1-4> counters – Clears LACP stats for a specified channel group. Specify the port-channel index number from 1 - 4. Note, LACP is supported only on the NX5500, NX7500, NX9500, and NX9600 model service platforms. However, the NX9500 series service platforms support only two (2) channel groups, and the other model service platforms support four (4) channel groups.
counters – Clears LACP stats for all configured channel groups on the device
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
to <BORROWING-CONTROLLER-NAME> - Specifies the borrowing controller's name. When specified, the system revokes all licenses (AP, AAP) lent to the specified controller.
on <DEVICE-NAME>
Optional. This option is common to both of the above parameters.
on <DEVICE-NAME> - Specify the name of the controller on which the command is to be executed.
<DEVICE-NAME> – Specify the name of the wireless controller, service platform, or virtual platform.
Note:
If you do not specify the controller name, the system executes the command on the logged controller.
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.
<MAC> – Specify the MAC address in one of the following formats: AA-BB-CC-DD-EE-FF or AA:BB:CC;DD:EE:FF or AABB.CCDD.EEFF
Note: If executed without specifying any MAC address(es), all MAC addresses from the MAC address table are removed.
vlan <1-4094>
Optional. Clears all MAC addresses for a specified VLAN
<1-4094> – Specify the VLAN ID from 1 - 4094
on <DEVICE-NAME>
Optional. Clears a single MAC entry or all MAC entries, for the specified VLAN on a specified device
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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)
<IF-NAME> – Specify the layer 2 interface name.
ge <1-X>
Clears MAC address forwarding table for the specified GigabitEthernet interface
<1-X> – Specify the GigabitEthernet interface index from 1 - X.
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
<1-X> – Specify the port-channel interface index from 1 - X.
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
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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.
<MAC> – Specify the MAC address to clear.
vlan <1-4904> – Specify the VLAN interface from 1 - 4094. In the AP/controller MAC address table, the specified MAC address is cleared on the specified VLAN interface.
on <DEVICE-NAME>
Optional. Clears the specified MAC address on a specified device
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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.
<MAC/DEVICE-NAME> – Optional. Clears Aeroscout or Ekahau RTLS statistics on a specified AP, wireless controller, service platform, or virtual platform. Specify the AP MAC address or hostname.
on <DEVICE-OR-DOMAIN-NAME>
This keyword is common to the ‘aeroscout' and ‘ekahau' parameters.
on <DEVICE-OR-DOMAIN-NAME> – Optional. Clears Aeroscout or Ekahau RTLS statistics on a specified AP, wireless controller, service platform, virtual platform, or RF Domain
<DEVICE-OR-DOMAIN-NAME> – Specify the name of the AP, wireless controller, service platform, virtual platform, or RF Domain.
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
<INTERFACE-NAME> – Clears detected spanning tree entries on a specified interface. Specify the interface name.
ge <1-X> – Clears detected spanning tree entries for the selected GigabitEthernet interface. Select the GigabitEthernet interface index from 1 - X.
me1 – Clears FastEthernet interface spanning tree entries
port-channel <1-X> – Clears detected spanning tree entries for the selected port channel interface. Select the port channel index from 1 - X. The number of port-channel interfaces supported varies for different device types.
pppoe1 – Clears detected spanning tree entries for PPPoE (Point-to-Point Protocol over Ethernet) interface
up1 – Clears detected spanning tree entries for the WAN Ethernet interface
vlan <1-4094> – Clears detected spanning tree entries for the selected VLAN interface. Select a Switch Virtual Interface (SVI) VLAN ID from 1- 4094.
wwan1 – Clears detected spanning tree entries for wireless WAN interface.
on <DEVICE-NAME>
Optional. Clears spanning tree entries on a specified device
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
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
<1-4> – Specify the traffic class from 1 - 4.
Note: If the traffic class is not specified, the system clears all traffic shaping statistics.
on <DEVICE-NAME>
Optional. Clears traffic shaping statistics for the specified traffic class on a specified device
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
This following keywords are common to the ‘error-stats' and ‘stats' parameters:
on <DEVICE-NAME> – Optional. Clears VRRP statistics on a specified device
<DEVICE-NAME> – Specify the name of the AP, wireless controller, service platform, or virtual platform.
Examples
ap510-133B38#show event-history
EVENT HISTORY REPORT
Generated on '2019-11-15 11:57:16 UTC' by 'admin'
2019-11-15 11:34:08 ap510-133B38 SYSTEM LOGIN Successfully logged in user 'admin' with privilege 'superuser' from 'ssh'
2019-11-13 14:54:18 ap510-133B38 SYSTEM LOGOUT Logged out user 'admin' with privilege 'superuser' from '134.141.242.75(web)'
2019-11-13 14:52:10 ap510-133B38 SYSTEM UI_USER_AUTH_SUCCESS UI user 'admin' from: '134.141.242.75' authentication successful
2019-11-13 06:34:17 ap510-133B38 SYSTEM LOGOUT Logged out user 'admin' with privilege 'superuser' from '134.141.244.21'
2019-11-13 06:33:59 ap510-133B38 SYSTEM WARM_START_RECOVER Warm Start Recover. Reason: 'reload' command issued from CLI (user: admin) Timestamp: Nov 13 06:31:14 2019
2019-11-13 06:33:57 ap510-133B38 SYSTEM LOGIN Successfully logged in user 'admin' with privilege 'superuser' from 'ssh'
2019-11-13 06:32:24 ap510-133B38 DIAG NEW_LED_STATE LED state message AP_GE1_LED_1000_ON from module NSM
2019-11-13 06:32:24 ap510-133B38 NSM IFUP Interface ge1 is up
2019-11-13 06:32:24 ap510-133B38 DIAG NEW_LED_STATE LED state message RADIO_2_52G_NOT_CONFIG from module DOT11
2019-11-13 06:32:24 ap510-133B38 DIAG NEW_LED_STATE LED state
--More--
ap510-133B38#
ap510-133B3B>clear event-history
ap510-133B38#show event-history
EVENT HISTORY REPORT
Generated on '2019-11-15 11:58:33 UTC' by 'admin'
ap510-133B38#