|
|
Use the clear kerberos srvtab entry command to clear the SRVTAB file that is entered directly into the switch from the command line.
clear kerberos srvtab entry kerberos-principal principal-type
kerberos-principal | Service on the switch. |
principal-type | Version of the Kerberos SRVTAB. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear a SRVTAB file entered directly into the switch:
kerberos> (enable) clear kerberos srvtab entry host/niners.cisco.com@CISCO.COM 0 kerberos> (enable)
set kerberos srvtab entry
set kerberos srvtab remote
Use the clear key config-key command to clear the configuration key.
clear key config-keyThis command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to delete a DES key:
Console> (enable) clear key config-key
Use the clear log command to delete module or system error log entries.
clear log [mod_num]
mod_num | (Optional) Module number. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
If you do not specify a module number, the system error log for the entire system is erased.
This example shows how to clear the system error log:
Console> (enable) clear log System error log cleared. Console> (enable)
Use the clear logging buffer command to clear the system logging buffer.
clear logging bufferThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear the system logging buffer:
Console> (enable) clear logging buffer System logging buffer cleared. Console> (enable)
Use the clear logging server command to delete a syslog server from the system log server table.
clear logging server ip_addr
ip_addr | IP address of the syslog server to be deleted. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to delete a syslog server from the configuration:
Console> (enable) clear logging server 192.168.255.255
System log server 192.168.255.255 removed from system log server table. Console> (enable)
set logging server
show logging
Use the clear mls entry ip command to clear IP MLS cache entries.
clear mls entry ip [destination ip_addr_spec] [source ip_addr_spec] [flow protocol src_port dst_port] [all]
destination | (Optional) Keyword to specify the destination address. |
ip_addr_spec | (Optional) Full IP address or a subnet address in these formats: ip_addr or ip_addr/netmask or ip_addr/maskbit. |
source | (Optional) Keyword to specify the source IP address. |
flow | (Optional) Keyword to specify additional flow information (protocol family and protocol port pair) to be matched. |
protocol | (Optional) Keyword to specify flows matching the specified protocol. |
protocol | Flow information; valid values include tcp, udp, icmp, or a decimal number for other protocol families. |
src_port | (Optional) Source protocol port. |
dst_port | (Optional) Destination protocol port. |
all | (Optional) Keyword to remove all IP MLS cache entries. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 2926G series switches
Switch command.
Privileged.
Use the following syntax to specify an IP subnet address:
When you remove an RSM or a supervisor engine with the RSFC from the Catalyst 5000 family switch, it is removed immediately from the inclusion list and all the MLS entries for the RSM or RSFC are removed.
If you do not use the all argument in the clear mls entry ip command, you must specify at least one of the other three keywords (source, destination, or flow) and its arguments.
A 0 value for source_port and destination_port clears all entries. Unspecified options are treated as wildcards, and all entries are cleared.
This example shows how to clear the MLS entries with destination IP address 192.168.255.255:
Console>(enable) clear mls entry destination 192.168.255.255 Multilayer switching entry cleared. Console>(enable)
This example shows how to clear specific IP MLS entries for destination IP address 192.168.255.255:
Console>(enable) clear mls entry destination 192.168.255.255 source 192.168.253.254 flow tcp 520 320 Multilayer switching entry cleared Console>(enable)
Use the clear mls entry ipx command to clear IPX MLS cache entries.
clear mls entry ipx [destination ipx_addr_spec] [source ipx_addr_spec] [all]
destination | (Optional) Keyword to specify the destination address. |
ipx_addr_spec | (Optional) Full IPX address. |
source | (Optional) Keyword to specify the source IP address. |
all | (Optional) Keyword to remove all IPX MLS cache entries. |
This command has no default setting.
Catalyst 5000 family switches
Switch command.
Privileged.
When entering the IPX address syntax, use the following format:
If you do not use the all argument in the clear mls entry ipx command, you must specify at least one of the other two keywords (source, or destination) and its argument.
This example shows how to clear specific IPX MLS entries for a destination IPX address:
Console>(enable) clear mls entry ipx destination 1.00e0.fefc.6000 source 3.0034.1245.AB45 IPX Multilayer switching entry cleared Console>(enable)
Use the clear mls include ip command to remove routers from the IP MLS-RP include list.
clear mls include ip {ip_addr | all}
ip_addr | IP address or host name of the router to remove from the IP MLS-RP include list. |
all | Keyword to remove all routers from the IP MLS-RP include list. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 2926G series switches
Switch command.
Privileged.
When you physically remove an RSM or RSFC from the Catalyst 5000 family switch, it is removed immediately from the inclusion list, and all the MLS cache entries for the RSM or RSFC are removed.
This example shows how to remove a router from the IP MLS-RP include list:
Console> (enable) clear mls include ip Stargate Multilayer switching is disabled for router 192.168.255.255 (Stargate) Console>(enable)
Use the clear mls include ipx command to remove routers from the IPX MLS-RP include list.
clear mls include ipx {ip_addr | all}
ip_addr | IP address or host name of the router to remove from the IPX MLS-RP include list. |
all | Keyword to remove all routers from the IPX MLS-RP include list. |
This command has no default setting.
Catalyst 5000 family switches
Switch command.
Privileged.
When you physically remove an RSM or RSFC from the Catalyst 5000 family switch, it is removed immediately from the inclusion list, and all the MLS cache entries for the RSM or RSFC are removed.
This example shows how to remove a router from the IPX MLS-RP include list:
Console> (enable) clear mls include ipx Stargate Multilayer switching is disabled for router 192.168.255.255 (Stargate) Console>(enable)
Use the clear mls multicast include command to remove a router from the IP multicast MLS-RP include list.
clear mls multicast include {ip_addr | all}
ip_addr | IP address or host name of the router to remove from the IP MMLS-RP include list. |
all | Keyword to remove all routers from the IP MMLS-RP include list. |
This command has no default setting.
Catalyst 5000 family switches
Switch command.
Privileged.
When you physically remove an RSM or RSFC from the Catalyst 5000 family switch, it is removed immediately from the inclusion list, and all the MLS cache entries for the RSM or RSFC are removed.
This example shows how to remove all routers from the MMLS-RP include list:
Console> (enable) clear mls multicast include all
All MLS routers are deleted from the include list.
Console>(enable)
This example shows how to remove a specific router from the MMLS-RP include list using its IP address:
Console> (enable)clear mls multicast include 172.20.53.4MLS Router 172.20.53.4 is deleted from the include list.Console>(enable)
set mls multicast
show mls multicast entry
Use the clear mls multicast statistics command to clear IP multicast MLS statistics for all MMLS-RPs.
clear mls multicast statistics rp
rp | Keyword to clear IP multicast MLS statistics for all MMLS-RPs. |
This command has no default setting.
Catalyst 5000 family switches
Switch command.
Privileged.
This example shows how to clear IP multicast MLS statistics for all MMLS-RPs:
Console> (enable)clear mls statistics rpAll statistics for the MLS routers in include list are cleared.Console>(enable)
set mls multicast
show mls multicast entry
Use the clear mls nde command to clear the MLS NetFlow Data Export (NDE) flow filter.
clear mls nde flow
flow | Keyword to return the MLS NDE flow filter to the default configuration. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 2926G series switches
Switch command.
Privileged.
This example shows how to clear the NDE filter and export all flows:
Console> (enable) clear mls nde flow Netflow data export filter cleared. Console>(enable)
Use the clear mls statistics command to clear IP or IPX MLS statistics on the switch.
clear mls statistics
statistics | Keyword to clear MLS statistics, including total packets switched and total packets exported (for NDE). |
protocol | Keyword to specify the protocol for which to clear statistics. |
protocol | Number of the protocol for which to clear statistics. |
port | Number of the protocol port for which to clear statistics. |
all | Keyword that specifies that statistics for all protocols be cleared. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 2926G series switches
Switch command.
Privileged.
This example shows how to clear IP MLS statistics, including total packets switched and total packets exported (for NDE):
Console> (enable) clear mls statistics Netflow data export statistics cleared. Console>(enable)
This example shows how to clear protocol 17, port 19344 from statistics collection:
Console> (enable) clear mls statistics protocol 17 19344 Protocol 17 port 1934 cleared from protocol statistics list. Console>(enable)
show mls rp
show mls statistics
Use the clear multicast router command to clear manually configured multicast router ports from the multicast router port list.
clear multicast router {mod_num/port_num | all}
all | Keyword that specifies all multicast router ports to be cleared. |
mod_num | Number of the module. |
port_num | Number of the port on the module. |
This command has no default setting.
Switch command.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Privileged.
This example shows how to remove port 1 on module 3 from the list of multicast router ports:
Console> (enable) clear multicast router 3/1Port 3/1 cleared from multicast router port list.Console> (enable)
set multicast router
show multicast router
Use the clear ntp key command to remove all or a specific authentication key.
clear ntp key {public_keynum | all}
public_keynum | Number of the key pair; valid values are 1 to 4292945295. |
all | (Optional) Keyword to remove all authentication keys. |
There is no default setting for this command.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear an NTP authentication key:
Console> (enable)clear ntp key 435NTP key 435 cleared.Console> (enable)
Use the clear ntp server command to remove one or more servers from the NTP server table.
clear ntp server {ip_addr | all}
ip_addr | IP address of the server to remove from the server table. |
all | Keyword to specify that all server addresses in the server table be removed. |
The default configuration has no NTP servers configured.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear a specific NTP server from the server table:
Console> (enable) clear ntp server 172.20.22.191 NTP server 172.20.22.191 removed. Console> (enable)
This example shows how to clear all NTP servers from the server table:
Console> (enable) clear ntp server all All NTP servers cleared. Console> (enable)
Use the clear port broadcast command to disable broadcast/multicast suppression on one or more ports.
clear port broadcast mod/ports...
mod/ports... | Number of the module and the ports. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 2926G series switches
Switch command.
Privileged.
This example shows how to disable broadcast/multicast suppression:
Console> (enable) clear port broadcast 2/1 Broadcast traffic unlimited on ports 2/1. Console> (enable)
Use the clear port filter command to clear configured MAC address or protocol filters.
clear port filter [mod_num/port_num] [mac_addr | protocol_type | all]
mod_num/ port_num | (Optional) Number of the module and the ports on the module. |
mac_addr | (Optional) MAC address on which the filter that you want to clear is based. This address can be entered in canonical format (00-11-33-44-55) or in noncanonical format (00:11:22:33:44:55). |
protocol_type | (Optional) Protocol type on which the filter that you want to clear is based. |
all | (Optional) Keyword that specifies that all filters be cleared. |
The command has no default setting.
Catalyst 5000 family switches
Switch command.
Privileged.
This example shows how to clear a MAC address filter (00:40:0b:01:bc:65) configured on port 2 of module 3:
Console> (enable) clear port filter 3/2 00:40:0b:01:bc:65 Port 3/2 filter Mac Address 00:40:0b:01:bc:65 cleared. Console> (enable)
set port filter
show port filter
Use the clear port host command to return access ports back to the system default configuration.
clear port hostThis command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear port host 1 on module2:
Console> (enable) clear port host 2/1 Port(s) 2/1 trunk mode set to auto. Spantree port 2/1 fast start disabled. Port(s) 2/1 channel mode set to auto. Console> (enable)
This example shows how to clear port hosts 1-4 on module 2:
Console> (enable) clear port host 2/1-4 Port(s) 2/1 trunk mode set to auto. Port(s) 2/2 trunk mode set to auto. Port(s) 2/3 trunk mode set to auto. Port(s) 2/4 trunk mode set to auto. Spantree ports 2/1-4 fast start disabled. Port(s) 2/1 channel mode set to auto. Port(s) 2/2 channel mode set to auto. Port(s) 2/3 channel mode set to auto. Port(s) 2/4 channel mode set to auto. console> (enable)
Use the clear port qos cos command to return the values set by the set port qos command to the default values for all specified ports.
clear port qos mod/ports... cos
mod/ports... | Number of the module and ports. |
The default CoS for a port is 0.
Catalyst 5000 family switches
Switch command.
Privileged.
This example shows how to return the values set by the set port qos command to the default values for module 2, port 1:
Console> (enable)clear port qos 2/1 cosPort 2/1 qos cos setting cleared.Console> (enable)
Use the clear port security command to clear all MAC addresses or a specific MAC address from the list of secure MAC addresses on a port.
clear port security mod_num/port_num {mac_addr | all}
mod_num/ port_num | (Optional) Number of the module and the ports on the module. |
mac_addr | Specific MAC address to be deleted. |
all | Removes all MAC addresses. |
There is no default setting for this command.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to remove a specific MAC address from a port's list of secure addresses:
Console> (enable)clear port security 4/1 00-11-22-33-44-5500-11-22-33-44-55 cleared from secure address list list for port 4/1.Console> (enable)
set port security
show port security
Use the clear qos config command to return the values set by the set qos command to the default values and deletes the CoS-to-MAC address mappings.
clear qos configThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to return the values set by the set qos command to the default values and delete the CoS assigned to MAC addresses:
Console> (enable) clear qos config
This command will disable QoS and take values back to factory default.
Do you want to continue (y/n) [n]? y
QoS config cleared.
Console> (enable)
Use the clear qos defaultcos command to restore the default CoS value for the entire switch.
clear qos defaultcosThis command has no arguments or keywords.
The default CoS for the entire switch is CoS equals 0.
Catalyst 4000 family switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to restore the default CoS value for the entire switch:
Console> (enable) clear qos defaultcos qos defaultcos setting cleared. Console> (enable)
Use the clear qos ip-filter command to delete entries from the ACE list.
clear qos ip-filter {ACE# | all}
ACE# | Number of the current position in the ACE list. |
all | Keyword to specify all the entries in the ACE list. |
This command has no default setting.
Catalyst 5000 family switches
Switch command.
Privileged.
This command is supported only on Catalyst 5000 family switches with Supervisor Engine II G or III G, or Supervisor Engine III or III F with the NFFC II.
This example shows how to remove a specific entry from the ACE list:
Console> (enable)clear qos ip-filter 3qos ip-filter 3 is cleared.Console>(enable)
This example shows how to remove all entries from the ACE list:
Console>(enable)clear qos ip allqos ip-filter are all cleared.Console>(enable)
Use the clear qos mac-cos command to clear the values set by the set qos mac-cos command.
clear qos mac-cos dest_mac [vlan]
dest_mac | Destination host MAC address. |
vlan | (Optional) Number of the VLAN. |
all | Keyword to clear CoS values for all MAC/VLAN pairs. |
This command has no default setting.
Catalyst 5000 family switches
Switch command.
Privileged.
This command is supported only on Catalyst 5000 family switches with Supervisor Engine II G or III G, or Supervisor Engine III or III F with the NFFC II.
If the vlan number is not entered, all entries for the MAC address are cleared.
This example shows how to clear the values set by the set qos mac-cos command and return to the default values for all MAC address and VLAN pairs:
Console> (enable) clear qos mac-cos allAll CoS to Mac/Vlan entries are cleared.Console> (enable)
This example shows how to clear the values set by the set qos mac-cos command and return to the default values for a specific MAC address:
Console> (enable)clear qos mac-cos 1-2-3-4-5-6 1CoS to Mac/Vlan entry for mac 01-02-03-04-05-06 vlan 1 is cleared.Console> (enable)
set qos mac-cos
show qos mac-cos
Use the clear qos map command to return the CoS-to-transmit queue and drop threshold values to their default values.
clear qos map port_type
port_type | Port type. Valid port types are 1q4t and 2q1t. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2948G switch
Switch command.
Privileged.
On the Catalyst 5000 family switches, this command is supported only with Supervisor Engine II G or III G, or Supervisor Engine III or III F with the NFFC II.
This example shows how to return the CoS-to-transmit queue and drop threshold mappings to the default values on 1q4t ports (Catalyst 5000 family switches):
Console> (enable) clear qos map 1q4t Qos map setting cleared. Console> (enable)
This example shows how to return the CoS-to-transmit queue and drop threshold mappings to the default values on 2q1t ports (Catalyst4000 family and 2948G switches):
Console> (enable) clear qos map 2q1t Qos map setting cleared. Console> (enable)
Use the clear qos router-mac command to remove entries from the list of router MAC address-to-VLAN mappings on which to perform ACE-based classification.
clear qos router-mac mac_address vlan
mac_addr | MAC address to remove from the list of router MAC address-to-VLAN mappings. This address can be entered in canonical format (00-11-33-44-55) or in noncanonical format (00:11:22:33:44:55). |
vlan | VLAN number mapped to the specified router MAC address. Valid values are 1 to 1005. |
all | Keyword used to remove all entries from the list of router MAC address-to-VLAN mappings. |
This command has no default setting.
Catalyst 5000 family switches
Switch command.
Privileged.
This command is supported only on Catalyst 5000 family switches with Supervisor Engine II G or III G, or Supervisor Engine III or III F with the NFFC II.
This example shows how to remove a specific entry from the list of router MAC address-to-VLAN mappings:
Console> (enable)clear qos router-mac 00-40-0b-30-03-48 2QoS Router MAC/Vlan(s) cleared.Console> (enable)
set qos router-mac
show qos info
Use the clear radius key command to clear all or one of the RADIUS shared keys from the RADIUS shared key table.
clear radius key
key | Keyword to specify the RADIUS shared key. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear the RADIUS key:
Console> (enable)clear radius keyRadius server key cleared.Console> (enable)
Use the clear radius server command to clear all or one of the RADIUS servers from the RADIUS server table.
clear radius server all
server | Keyword to specify RADIUS servers. |
all | Keyword to specify all RADIUS servers. |
ipaddr | Number of the IP address or IP alias in dotted decimal notation, for example, 101.102.103.104. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear a specific RADIUS server from the RADIUS server table:
Console> (enable)clear radius server 192.168.255.255192.168.255.255 cleared from radius server table.Console> (enable)
Use the clear snmp trap command to clear an entry from the SNMP trap receiver table.
clear snmp trap {rcvr_addr | all}
rcvr_addr | IP address or IP alias of the trap receiver (the SNMP management station) to clear; in dotted decimal notation, for example, 101.102.103.104. |
all | Keyword that specifies every entry in the SNMP trap receiver table. |
The default configuration has no entries in the SNMP trap receiver table.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear an entry from the SNMP trap receiver table:
Console> (enable) clear snmp trap 192.168.255.255 SNMP trap receiver deleted. Console> (enable)
set snmp trap
show port counters
test snmp trap
Use the clear spantree portvlancost command to restore the default spanning-tree port VLAN cost on a port.
clear spantree portvlancost mod_num/port_num preferred_vlans
mod_num | Number of the module. |
port_num | Number of the port. |
preferred_vlans | List of VLANs for which to restore the default spanning-tree port VLAN cost. Valid values are 1 to 1005. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to restore the default spanning-tree port VLAN cost for VLANs 1 through 10 on port 2/10:
Console> (enable) clear spantree portvlancost 2/10 1-10 Port 2/10 VLANs 11-21 have path cost 6 Port 2/10 VLANs 1-10,22-1000 have path cost 10. Console> (enable)
set spantree portfast
show spantree statistics
Use the clear spantree portvlanpri command to restore the default spanning-tree port VLAN priority on a port.
clear spantree portvlanpri mod_num/port_num vlans
mod_num | Number of the module. |
port_num | Number of the port on the module. |
vlans | List of VLANs for which to restore the default spanning-tree port VLAN priority. Valid values are 1 to 1005. |
trcrf | Argument to specify the TrCRF for which to clear the spanning-tree port VLAN priority. |
trbrf | Keyword to specify the TrBRF for which to clear the spanning-tree port VLAN priority. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to restore the default spanning-tree port VLAN priority for VLANs 23 to 40 on port 1/2:
Console> (enable) clear spantree portvlanpri 1/2 23-40
Port 1/2 vlans 3,6-20,23-1000 using portpri 32
Port 1/2 vlans 1-2,4-5,21-22 using portpri 30 Console> (enable)
set spantree portvlanpri
show spantree
Use the clear spantree root command to restore the spanning-tree bridge priority, hello time, maxage, and forward delay on the switch to their default values.
clear spantree root vlans
vlans | List of the VLANs for which to restore the spanning-tree default settings. Valid values are 1 to 1005. |
The default bridge configurations are:
switch priority | 32768 |
forward delay | 15 seconds |
hello time | 2 seconds |
maxage | 20 seconds |
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to restore the spanning-tree bridge priority, hello time, maxage, and forward delay for VLANs 1 through 20 to their default values:
Console>(enable) clear spantree root 1-20 VLANs 1-20 bridge priority set to 32678. VLANs 1-20 bridge hello time set to 2 seconds. VLANs 1-20 bridge max aging time set to 20 seconds. VLANs 1-20 bridge forward delay set to 15 seconds.
set spantree root
show spantree
Use the clear spantree statistics command to clear the spanning-tree statistics on a specified port or VLAN.
clear spantree statistics mod_num/port_num
mod_num | Number of the module. |
port_num | Number of the port on the module. |
vlan | List of the VLAN numbers to clear. |
This command has no defaults.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear the spanning-tree statistics for VLAN 1:
Console>(enable) clear spantree statistics 1 Cleared all VLAN counters for VLAN 1 Statistics cleared for vlans 1 Console> (enable)
Use the clear spantree uplinkfast command to disable UplinkFast and return the spanning-tree bridge priority, port priorities, and port costs to their default values.
clear spantree uplinkfastThis command has no arguments or keywords.
This command has no defaults.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This command changes spanning-tree port priorities and port costs, which might affect VLAN load-balancing configurations.
This example shows how to turn off the UplinkFast feature and return the spanning-tree bridge priority, port priorities, and port costs to their default values:
Console>(enable) clear spantree uplinkfast This command will cause all portcosts, portvlancosts, and the bridge priority on all vlans to be set to default. Do you want to continue (y/n) [n]? y VLANs 1-1005 bridge priority set to 32768. The port cost of all bridge ports set to default value. The portvlancost of all bridge ports set to default value. uplinkfast disabled for bridge. Console> (enable)
set spantree uplinkfast
show spantree uplinkfast
Use the clear tacacs key command to remove the TACACS+ authentication and encryption server key.
clear tacacs keyThis command has no arguments or keywords.
The default key value is null.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear the TACACS+ server key used for authentication and encryption:
Console> (enable) clear tacacs key TACACS server key cleared. Console> (enable)
Use the clear tacacs server command to remove a host from the list of TACACS+ servers.
clear tacacs server {ip_addr | all}
ip_addr | IP address of the server to be removed from the list of TACACS+ servers. |
all | Keyword to remove all hosts from the list of TACACS+ servers. |
There is no default setting for this command.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to remove a server from the list of TACACS+ servers:
Console> (enable) clear tacacs server 192.168.255.255 192.168.255.255 cleared from TACACS table Console> (enable)
Use the clear timezone command to return the time zone to its default, UTC.
clear timezoneThis command has no arguments or keywords.
The default time zone is UTC.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
The clear timezone command functions only when NTP is enabled. If you set the time manually and NTP is disabled, the clear timezone command has no effect.
This example shows how to clear the time zone:
Console> (enable) clear timezone Timezone name and offset cleared. Console> (enable)
Use the clear top command to terminate running TopN report processes.
clear top {all | report_num}
all | Keyword that terminates all nonpending TopN results. |
report_num | TopN report number to terminate; valid values are 1 to 5. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
The clear top all command will not kill any pending TopN reports. Only reports with a done status are killed.
You can terminate TopN processes without the background option (use the show top background command to find out if the background option is used) by pressing Ctrl-C in the same Telnet/console session, or by entering the clear top [report_num] command from a separate Telnet/console session. The prompt is not printed before the TopN report is completely displayed. Other commands will be blocked until the report has been displayed.
This example shows how to stop the TopN process 1 process from a console session:
Console> (enable) clear top 1 Console> (enable) %MGMT-5-TOPN_TERMINATE:Report 1 terminated by Console// Console> (enable)
This example shows how to stop all nonpending TopN report processes:
Console> (enable) clear top all Console> (enable) %MGMT-5-TOPN_TERMINATE:Report 1 terminated by Console// %MGMT-5-TOPN_TERMINATE:Report 2 terminated by Console// %MGMT-5-TOPN_TERMINATE:Report 3terminated by Console// Console> (enable)
This example shows how to stop the TopN 4 process from a Telnet session:
Console> (enable) clear top 1 Console> (enable) %MGMT-5-TOPN_TERMINATE:Report 1 terminated by telnet/172.20.52.124// Console> (enable)
mod | Number of the module. |
ports... | Number of the ports on the module. |
vlans | (Optional) One or more VLANs to remove from the allowed VLAN list for the trunk port; valid values are 2 to 1005. |
If you do not specify any VLANs, this command sets the mode to auto for ISL and IEEE 802.1Q trunk ports. For more information about auto and off modes, see the set trunk command.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
If you specify VLANs, those VLANs are removed from the list of VLANs allowed on the trunk. Traffic for the removed VLANs is not forwarded over the trunk port.
Default VLANs cannot be cleared from the allowed VLAN list on the trunk.
To add VLANs that you have removed, use the set trunk mod_num/port_num vlan_range command.
This example shows how to clear VLANs 200 to 500 from the trunk port on port 2 of module 1:
Console> (enable) clear trunk 1/2 200-500 Removing Vlan(s) 200-500 from allowed list. Port 1/2 allowed vlans modified to 1-199,501-1000. Console> (enable)
This example shows how to clear the trunk on port2 of module1:
Console> (enable) clear trunk 1/2 Port(s) 1/2 trunk mode set to auto. Port(s) 1/2 trunk type set to isl. Console> (enable)
Use the clear vlan command to delete an existing VLAN from a management domain.
clear vlan vlan_num
vlan_num | Number of the VLAN; valid value is 2 to 1000. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
![]() | Caution
When you clear a VLAN on a switch configured as a VTP server, the VLAN is deleted from the entire VTP domain. Every switch in that VTP domain will delete the VLAN. When you clear a VLAN, all ports assigned to that VLAN become inactive. However, the VLAN port assignments are retained until you move the ports to another VLAN. If the cleared VLAN is reactivated, all ports still configured on that VLAN are also reactivated. |
This example shows how to clear an existing VLAN (VLAN 4) from a management domain:
Console> (enable) clear vlan 4
This command will deactivate all ports on vlan 4
in the entire management domain
Do you want to continue(y/n) [n]? y
VLAN 4 deleted Console> (enable)
Use the clear vlan mapping command to delete existing 802.1Q VLAN to ISL VLAN-mapped pairs.
clear vlan mapping dot1q {1q_vlan_num | all}
dot1q | Keyword to specify the 802.1Q VLAN. |
1q_vlan_num | Number identifying the 802.1Q VLAN for which to remove the mapping. |
all | Keyword to clear the mapping table of all entries. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switch
Switch command.
Privileged.
This example shows how to clear an existing mapped 802.1Q VLAN (VLAN 1044) from the mapping table:
Console> (enable) clear vlan mapping dot1q 1044 Vlan Mapping 1044 Deleted. Console> (enable)
This example shows how to clear all mapped 802.1Q VLANs from the mapping table:
Console> (enable) clear vlan mapping dot1q all All Vlan Mapping Deleted. Console> (enable)
set vlan mapping
show vlan mapping
Use the clear vmps server command to delete a VMPS server from the VMPS server table.
clear vmps server ip_addr
ip_addr | IP address of the VMPS server to be deleted. |
This command has no default setting.
Catalyst 5000 family switches
Catalyst 2926G series switches
Switch command.
Privileged.
This example shows how to clear a VMPS server from the VMPS table:
Console> (enable) clear vmps server 192.168.255.255 VMPS domain server 192.168.255.255 cleared from VMPS table. Console> (enable)
This example shows the results of trying to clear a nonexistent VMPS server from the VMPS table:
Console> (enable) clear vmps server 192.168.255.255 VMPS domain server 192.168.255.255 not in VMPS table. Console> (enable)
Use the clear vmps statistics command to delete existing VMPS statistics.
clear vmps statisticsThis command has no arguments or keywords.
This command has no default setting.
Catalyst 5000 family switches
Catalyst 4000 family switches
Catalyst 2926G series switches
Catalyst 2948G switches
Switch command.
Privileged.
This example shows how to delete existing VMPS statistics:
Console> (enable) clear vmps statistics VMPS and dynamic vlan statistics cleared. Console> (enable)
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Oct 18 12:29:36 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.