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 (Address Resolution Protocol) 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>}
|
clear [cdp|lldp] neighbors {on <DEVICE-NAME>}
cdp |
Clears CDP (Cisco Discovery Protocol) (CDP) table entries |
lldp |
Clears LLDP (Link Layer Discovery Protocol ) 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>)}
|
clear counters [bridge|router|thread]
|
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>)}
|
clear crypto ike sa [<IP>|all] {on <DEVICE-NAME>}
crypto |
Clears encryption module‘s cached statistics |
ike sa [<IP>|all] |
Clears IKE (Internet Key Exchange) SAs (security associations)
|
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(Internet Protocol Security) database SAs
|
clear gre stats {on <DEVICE-NAME>}
|
clear event-history
event-history |
Clears event history cache entries |
clear firewall [dhcp|neighbors] snoop-table {on <DEVICE-NAME>}
|
clear firewall [dos stats|flows [ipv4|ipv6]] {on <DEVICE-NAME>}
|
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>}
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 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>}
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>}
|
clear mint mlcp history {on <DEVICE-NAME>}
mint |
Clears MiNT related information |
mlcp history |
Clears MLCP (MiNT Link Creation Protocol ]) 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 LDAP (Lightweight Directory Access Protocol) 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 RTLS (Real Time Location Service) 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>)
|
clear vrrp [error-stats|stats] {on <DEVICE-NAME>}
vrrp |
Clears VRRP (Virtual Router Redundancy Protocol) statistics VRRP allows a pool of routers to be advertized as a single virtual router. This virtual router is configured by hosts as their default gateway. VRRP elects a master router, from this pool, and assigns it a virtual IP address. The master router routes and forwards packets to hosts on the same subnet. When the master router fails, one of the backup routers is elected as the master and its IP address is mapped to the virtual IP address. |
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:
|
rfs4000-229D58>clear event-history
rfs4000-229D58>clear spanning-tree detected-protocols interface port-channel 1
rfs4000-229D58>clear spanning-tree detected-protocols interface ge 1
NOC-NX9500>show lldp neighbors ------------------------- Chassis ID: 00-18-71-D0-0B-00 System Name: ProCurve Switch 5406zl Platform: ProCurve J8697A Switch 5406zl, revision K.12.1X, ROM K.11.03 (/sw/code/build/btm(sw_esp1)) Capabilities: Bridge Router Enabled Capabilities: Bridge Router Local Interface: ge1, Port ID(Port Description) (outgoing port): 26(B2) TTL: 95 sec Management Addresses: 10.234.160.1 ------------------------- Chassis ID: 5C-0E-8B-1C-53-2C System Name: HM-ROUTER Platform: RFS-4011-11110-WR, Version 5.9.4.0-016D Capabilities: Bridge WLAN Access Point Router Enabled Capabilities: Bridge WLAN Access Point Router Local Interface: ge2, Port ID(Port Description) (outgoing port): ge1(ge1) TTL: 165 sec Management Addresses: 192.168.0.1,172.168.16.1,192.168.13.1,20.168.10.1 NOC-NX9500>
NOC-NX9500>clear lldp neighbors
NOC-NX9500>show lldp neighbors NOC-NX9500>
NOC-NX9500>show cdp neighbors -------------------------------------------------------------------------------- Device ID Platform Local Interface Port ID Duplex -------------------------------------------------------------------------------- HM-ROUTER RFS-4011-11110-WR ge2 ge1 full -------------------------------------------------------------------------------- NOC-NX9500>
NOC-NX9500>clear cdp neighbors
NOC-NX9500>show cdp neighbors -------------------------------------------------------------------------------- Device ID Platform Local Interface Port ID Duplex -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- NOC-NX9500>
rfs4000-229D58>clear role ldap-stats
rfs4000-229D58>show role ldap-stats No ROLE LDAP statistics found. rfs4000-229D58>
rfs4000-229D58>show mac-address-table -------------------------------------------------------- BRIDGE VLAN PORT MAC STATE -------------------------------------------------------- 1 1 ge5 00-02-B3-28-D1-55 forward 1 1 ge5 00-0F-8F-19-BA-4C forward 1 1 ge5 B4-C7-99-5C-FA-8E forward 1 1 ge5 00-23-68-0F-43-D8 forward 1 1 ge5 00-15-70-38-06-49 forward 1 1 ge5 00-23-68-13-9B-34 forward 1 1 ge5 B4-C7-99-58-72-58 forward 1 1 ge5 00-15-70-81-74-2D forward -------------------------------------------------------- Total number of MACs displayed: 8 rfs4000-229D58>
rfs4000-229D58>clear mac-address-table address 00-02-B3-28-D1-55
rfs4000-229D58>show mac-address-table -------------------------------------------------------- BRIDGE VLAN PORT MAC STATE -------------------------------------------------------- 1 1 ge5 00-0F-8F-19-BA-4C forward 1 1 ge5 B4-C7-99-5C-FA-8E forward 1 1 ge5 00-23-68-0F-43-D8 forward 1 1 ge5 00-15-70-38-06-49 forward 1 1 ge5 00-23-68-13-9B-34 forward 1 1 ge5 B4-C7-99-58-72-58 forward 1 1 ge5 00-15-70-81-74-2D forward -------------------------------------------------------- Total number of MACs displayed: 7 rfs4000-229D58>