Table Of Contents
clear mls multicast statistics
2clear kerberos server
Use the clear kerberos server command to clear a specified key distribution center (KDC) entry.
clear kerberos server kerberos-realm {hostname | ip-address} [port_num]
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can specify to the switch which KDC to use in a Kerberos realm. This command clears a server entry from the table.
Examples
This example shows how to clear a KDC server entered on the switch:
Console> (enable) clear kerberos server CISCO.COM 187.0.2.1 750Kerberos Realm-Server-Port entry CISCO.COM-187.0.2.1-750 deletedConsole> (enable)Related Commands
clear kerberos srvtab entry
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
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
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 0kerberos> (enable)Related Commands
set kerberos srvtab entry
set kerberos srvtab remoteclear key config-key
Use the clear key config-key command to clear the configuration key.
clear key config-key
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to delete a DES key:
Console> (enable) clear key config-keyRelated Commands
clear log
Use the clear log command to delete module or system error log entries.
clear log [mod_num]
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you do not specify a module number, the system error log for the entire system is erased.
Examples
This example shows how to clear the system error log:
Console> (enable) clear logSystem error log cleared.Console> (enable)Related Commands
clear logging buffer
Use the clear logging buffer command to clear the system logging buffer.
clear logging buffer
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the system logging buffer:
Console> (enable) clear logging bufferSystem logging buffer cleared.Console> (enable)Related Commands
clear logging server
Use the clear logging server command to delete a syslog server from the system log server table.
clear logging server ip_addr
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
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)Related Commands
set logging server
show loggingclear mls entry ip
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]Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
Use the following syntax to specify an IP subnet address:
•
ip_subnet_addr—This is the short subnet address format. The trailing decimal number 00 in an IP address YY.YY.YY.00 specifies the boundary for an IP subnet address. For example, 172.22.36.00 indicates a 24-bit subnet address (subnet mask 172.22.36.00/255.255.255.0), and 173.24.00.00 indicates a 16-bit subnet address (subnet mask 173.24.00.00/255.255.0.0). However, this format can identify only a subnet address of 8, 16, or 24 bits.
•
ip_addr/subnet_mask—This is the long subnet address format, for example, 172.22.252.00/255.255.252.00 indicates a 22-bit subnet address. This format can specify a subnet address of any bit number. To provide more flexibility, the ip_addr is a full host address, such as 172.22.253.1/255.255.252.00.
•
ip_addr/maskbits—This is the simplified long subnet address format. The mask bits specify the number of bits of the network masks. For example, 172.22.252.00/22 indicates a 22-bit subnet address. The ip_addr is a full host address, such as 193.22.253.1/22, which has the same subnet address as the ip_subnet_addr.
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.
Examples
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.255Multilayer 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 320Multilayer switching entry clearedConsole>(enable)Related Commands
clear mls entry ipx
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]
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
When entering the IPX address syntax, use the following format:
•
IPX net address—1..FFFFFFFE
•
IPX node address—x.x.x where x is 0..FFFF
•
IPX address—ipx_net.ipx_node (for example 3.0034.1245.AB45, A43.0000.0000.0001)
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.
Examples
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.AB45IPX Multilayer switching entry clearedConsole>(enable)Related Commands
clear mls include ip
Use the clear mls include ip command to remove routers from the IP MLS-RP include list.
clear mls include ip {ip_addr | all}
Syntax Description
ip_addr
IP address or host name of the router to remove from the IP MLS-RP include list.
all
Keyword that specifies to remove all routers from the IP MLS-RP include list.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
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.
Examples
This example shows how to remove a router from the IP MLS-RP include list:
Console> (enable) clear mls include ip StargateMultilayer switching is disabled for router 192.168.255.255 (Stargate)Console>(enable)Related Commands
clear mls include ipx
Use the clear mls include ipx command to remove routers from the IPX MLS-RP include list.
clear mls include ipx {ip_addr | all}
Syntax Description
ip_addr
IP address or host name of the router to remove from the IPX MLS-RP include list.
all
Keyword that specifies to remove all routers from the IPX MLS-RP include list.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
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.
Examples
This example shows how to remove a router from the IPX MLS-RP include list:
Console> (enable) clear mls include ipx StargateMultilayer switching is disabled for router 192.168.255.255 (Stargate)Console>(enable)Related Commands
clear mls multicast include
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}
Syntax Description
ip_addr
IP address or host name of the router to remove from the IP MMLS-RP include list.
all
Keyword that specifies to remove all routers from the IP MMLS-RP include list.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
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.
Examples
This example shows how to remove all routers from the MMLS-RP include list:
Console> (enable) clear mls multicast include allAll 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)Related Commands
set mls multicast
show mls multicast entryclear mls multicast statistics
Use the clear mls multicast statistics command to clear IP multicast MLS statistics for all MMLS-RPs.
clear mls multicast statistics rp
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
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)Related Commands
set mls multicast
show mls multicast entryclear mls nde
Use the clear mls nde command to clear the MLS NetFlow Data Export (NDE) flow filter.
clear mls nde flow
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
Examples
This example shows how to clear the NDE filter and export all flows:
Console> (enable) clear mls nde flowNetflow data export filter cleared.Console>(enable)Related Commands
clear mls statistics
Use the clear mls statistics command to clear IP or IPX MLS statistics on the switch.
clear mls statistics
clear mls statistics protocol {protocol port | all}
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
Examples
This example shows how to clear IP MLS statistics, including total packets switched and total packets exported (for NDE):
Console> (enable) clear mls statisticsNetflow 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 19344Protocol 17 port 1934 cleared from protocol statistics list.Console>(enable)Related Commands
show mls rp
show mls statisticsclear multicast router
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}
Syntax Description
mod_num
Number of the module.
port_num
Number of the port on the module.
all
Keyword that specifies all multicast router ports to be cleared.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove port 1 on module 3 from the list of multicast router ports:
Console> (enable) clear multicast router 3/1 Port 3/1 cleared from multicast router port list.Console> (enable)Related Commands
set multicast router
show multicast routerclear ntp key
Use the clear ntp key command to remove all authentication keys or a specific authentication key.
clear ntp key {public_keynum | all}
Syntax Description
public_keynum
Number of the key pair; valid values are 1 to 4292945295.
all
Keyword that specifies to remove all authentication keys.
Defaults
There is no default setting for this command.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear an NTP authentication key:
Console> (enable) clear ntp key 435NTP key 435 cleared.Console> (enable)Related Commands
clear ntp server
Use the clear ntp server command to remove one or more servers from the NTP server table.
clear ntp server {ip_addr | all}
Syntax Description
ip_addr
IP address of the server to remove from the server table.
all
Keyword that specifies that all server addresses in the server table be removed.
Defaults
The default configuration has no NTP servers configured.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear a specific NTP server from the server table:
Console> (enable) clear ntp server 172.20.22.191NTP 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 allAll NTP servers cleared.Console> (enable)Related Commands
clear port broadcast
Use the clear port broadcast command to disable broadcast/multicast suppression on one or more ports.
clear port broadcast mod/ports...
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
Examples
This example shows how to disable broadcast/multicast suppression:
Console> (enable) clear port broadcast 2/1Broadcast traffic unlimited on ports 2/1.Console> (enable)Related Commands
clear port filter
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]
Syntax Description
Defaults
The command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
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:65Port 3/2 filter Mac Address 00:40:0b:01:bc:65 cleared.Console> (enable)Related Commands
set port filter
show port filterclear port host
Use the clear port host command to return access ports back to the system default configuration.
clear port host
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear port host 1 on module2:
Console> (enable) clear port host 2/1Port(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-4Port(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)Related Commands
clear port qos cos
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
Syntax Description
Defaults
The default CoS for a port is 0.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
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)Related Commands
clear port security
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}
Syntax Description
mod_num/ port_num
(Optional) Number of the module and the ports on the module.
mac_addr
Specific MAC address to be deleted.
all
Keyword that removes all MAC addresses.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
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)Related Commands
set port security
show port securityclear qos config
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 config
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches, Catalyst 4000 family switches, and the Catalyst 2948G and 2980G switch.
Examples
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 configThis command will disable QoS and take values back to factory default.Do you want to continue (y/n) [n]? yQoS config cleared.Console> (enable)Related Commands
clear qos defaultcos
Use the clear qos defaultcos command to restore the default CoS value for the entire switch.
clear qos defaultcos
Syntax Description
This command has no arguments or keywords.
Defaults
The default CoS for the entire switch is CoS equals 0.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 4000 family switches and the Catalyst 2948G and 2980G switch.
Examples
This example shows how to restore the default CoS value for the entire switch:
Console> (enable) clear qos defaultcosqos defaultcos setting cleared.Console> (enable)Related Commands
clear qos ip-filter
Use the clear qos ip-filter command to delete entries from the ACE list.
clear qos ip-filter {ACE# | all}
Syntax Description
ACE#
Number of the current position in the ACE list.
all
Keyword that specifies all the entries in the ACE list.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
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.
Examples
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)Related Commands
clear qos mac-cos
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]
clear qos mac-cos all
Syntax Description
dest_mac
Destination host MAC address.
vlan
(Optional) Number of the VLAN.
all
Keyword that specifies to clear CoS values for all MAC/VLAN pairs.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
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.
Examples
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)Related Commands
set qos mac-cos
show qos mac-cosclear qos map
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
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches, Catalyst 4000 family switches, and the 2948G and 29890G switch.
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.
Examples
This example shows how to return the CoS-to-transmit queue and drop threshold mappings to the default values on 1q4t ports:
Console> (enable) clear qos map 1q4tQos map setting cleared.Console> (enable)Related Commands
clear qos router-mac
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
clear qos router-mac all
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
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.
Examples
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)Related Commands
set qos router-mac
show qos infoclear radius key
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
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the RADIUS key:
Console> (enable) clear radius keyRadius server key cleared.Console> (enable)Related Commands
clear radius server
Use the clear radius server command to clear all or one of the RADIUS servers from the RADIUS server table.
clear radius server all
clear radius server ipaddr
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
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)Related Commands
clear rgmp statistics
Use the clear rgmp statistics command to clear RGMP statistics information for all VLANs.
clear rgmp statistics
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
This example shows how to clear the RGMP statistics on the switch:
Console> (enable) clear rgmp statisticsRGMP statistics cleared.Console> (enable)Related Commands
clear snmp access
Use the clear snmp access command to remove the access rights of an SNMP group with a specific security model and security level.
clear snmp access {-hex} {groupname} {security-model {v1 | v2c}}
clear snmp access {security-model v3 {noauthentication | authentication | privacy}}
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for groupname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear SNMP access for a group:
Console> (enable) clear snmp access cisco-group security-model v3 authenticationCleared snmp access cisco-group version v3 level authentication.Console> (enable)Related Commands
set snmp access
show snmp
clear configclear snmp group
Use the clear snmp group command to clear the SNMP user from an SNMP group.
clear snmp group {-hex} {groupname} user {-hex} {username}
{security-model {v1 | v2 | v3}}Syntax Description
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for groupname or username (nonprintable delimiters for these parameters), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear the SNMP group from the vacmAccessTable:
Console> (enable) clear snmp group cisco-group user joe security-model v3Cleared snmp group cisco-group user joe version v3.Console> (enable)Related Commands
clear snmp notify
Use the clear snmp notify command to clear the SNMP notifyname in the SNMP Notify Table.
clear snmp notify {-hex} {notifyname}
Syntax Description
-hex
Keyword that displays the notifyname as a hexadecimal format.
notifyname
A unique identifier to index the snmpNotifyTable.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for notifyname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear an SNMP notifyname from the snmpNotifyTable:
Console> (enable) clear snmp notify joeCleared SNMP notify table joe.Console> (enable)Related Commands
clear snmp targetaddr
Use the clear snmp targetaddr command to clear the SNMP target address entry in the TargetAddressTable.
clear snmp targetaddr {-hex} {addrname}
Syntax Description
-hex
Keyword that displays the addrname as a hexadecimal format.
addrname
An arbitrary but unique name of the target agent; the maximum length is
32 bytes.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for addrname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear an SNMP target address entry in the snmpTargetAddressTable:
Console> (enable) clear snmp targetaddr joeCleared SNMP targetaddr joe.Console> (enable)Related Commands
clear snmp targetparams
Use the clear snmp targetparams command to clear the SNMP target parameters used in the snmpTargetParamsTable.
clear snmp targetparams {-hex} {paramsname}
Syntax Description
-hex
Keyword to display the paramsname as a hexadecimal format.
paramsname
Name of the target parameter in the snmpTargetParamsTable; the maximum length is 32 bytes.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for paramsname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear the SNMP target parameters in the snmpTargetParamsTable:
Console> (enable) clear snmp targetparams joeCleared SNMP targetparams table joe.Console> (enable)Related Commands
set snmp targetparams
show snmpclear snmp trap
Use the clear snmp trap command to clear an entry from the SNMP trap receiver table.
clear snmp trap {rcvr_addr | all}
Syntax Description
Defaults
The default configuration has no entries in the SNMP trap receiver table.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear an entry from the SNMP trap receiver table:
Console> (enable) clear snmp trap 192.168.255.255SNMP trap receiver deleted.Console> (enable)Related Commands
set snmp trap
show port counters
test snmp trapclear snmp user
Use the clear snmp user command to remove an SNMP user.
clear snmp user {-hex} {username} [remote {engineid}]
Syntax Description
Defaults
If a remote engine ID is not provided, the default local SNMP engine ID is used.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for username (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to remove a user from an SNMP group:
Console> (enable) clear snmp user joeCleared SNMP user joe.Console> (enable)This example shows how to remove a user on a remote SNMP engine:
Console> (enable) clear snmp user joe remote 00:00:00:09:00:d0:00:4c:18:00Cleared SNMP user.Console> (enable)Related Commands
clear snmp view
Use the clear snmp view command to remove the MIB viewname from the vacmViewTreeFamilyTable.
clear snmp view {-hex} {viewname} {subtree}
Syntax Description
-hex
Keyword that displays the viewname as a hexadecimal format.
viewname
Name of a MIB view.
subtree
Name of the subtree.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for viewname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
A MIB subtree used in conjunction with a mask defines a view subtree that can be in OID format or a text name mapped to a valid OID.
Examples
This example shows how to clear the SNMP MIB viewname:
Console> (enable) clear snmp view myview 1.1.3Cleared snmp view myview with subtree 1.1.3Console> (enable)Related Commands
clear spantree portvlancost
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
Syntax Description
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.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
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-10Port 2/10 VLANs 11-21 have path cost 6Port 2/10 VLANs 1-10,22-1000 have path cost 10.Console> (enable)Related Commands
set spantree portfast
show spantree statisticsclear spantree portvlanpri
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
clear spantree portvlanpri trcrf | trbrf
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
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 30Console> (enable)Related Commands
set spantree portvlanpri
show spantreeclear spantree root
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
Syntax Description
vlans
List of the VLANs for which to restore the spanning-tree default settings. Valid values are 1 to 1005.
Defaults
The default bridge configurations are:
Command Types
Switch command.
Command Modes
Privileged.
Examples
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-20VLANs 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.Related Commands
set spantree root
show spantreeclear spantree statistics
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
clear spantree statistics vlan
Syntax Description
mod_num
Number of the module.
port_num
Number of the port on the module.
vlan
List of the VLAN numbers to clear.
Defaults
This command has no defaults.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the spanning-tree statistics for VLAN 1:
Console>(enable) clear spantree statistics 1Cleared all VLAN counters for VLAN 1Statistics cleared for vlans 1Console> (enable)Related Commands
clear spantree uplinkfast
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 uplinkfast
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no defaults.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command changes spanning-tree port priorities and port costs, which might affect VLAN load-balancing configurations.
Examples
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 uplinkfastThis command will cause all portcosts, portvlancosts, and thebridge priority on all vlans to be set to default.Do you want to continue (y/n) [n]? yVLANs 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)Related Commands
set spantree uplinkfast
show spantree uplinkfastclear station
Use the clear station command to remove a station from the Token Ring network.
clear station mod_num/port_num mac_addr
Syntax Description
mod_num
Number of the module.
port_num
Number of the port on the module.
mac_addr
MAC address of the station that you want to remove. Enter this address in non-canonical (00:11:22:33:44:55) format.
Defaults
The command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Use this command with extreme caution, it issues a Remove Station MAC frame to a specific station and removes that station from the Token Ring network.
Examples
This example shows how to remove the station with the MAC address 00:40:0b:01:bc:65 from
port 2 of module 3:Console> (enable) clear station 3/2 00:40:0b:01:bc:65Mac Address 00:40:0b:01:bc:65 cleared.Console> (enable)Related Commands
clear station counters
set station softerror
show station softerror config
show station softerror countersclear station counters
Use the clear station counters command to reset the soft error statistics.
clear station counters mod_num[/port_num]
Syntax Description
Defaults
The command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
This example shows how to reset the soft error statistics collected for stations on port 10 of module 3:
Console> (enable) clear station counters 3/10Port 3/10 station counters cleared.Console> (enable)Related Commands
clear station
set station softerror
show station softerror countersclear tacacs key
Use the clear tacacs key command to remove the TACACS+ authentication and encryption server key.
clear tacacs key
Syntax Description
This command has no arguments or keywords.
Defaults
The default key value is null.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the TACACS+ server key used for authentication and encryption:
Console> (enable) clear tacacs keyTACACS server key cleared.Console> (enable)Related Commands
clear tacacs server
Use the clear tacacs server command to remove a host from the list of TACACS+ servers.
clear tacacs server {ip_addr | all}
Syntax Description
ip_addr
IP address of the server to be removed from the list of TACACS+ servers.
all
Keyword that specifies removal of all hosts from the list of TACACS+ servers.
Defaults
There is no default setting for this command.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove a server from the list of TACACS+ servers:
Console> (enable) clear tacacs server 192.168.255.255192.168.255.255 cleared from TACACS tableConsole> (enable)Related Commands
clear timezone
Use the clear timezone command to return the time zone to its default, UTC.
clear timezone
Syntax Description
This command has no arguments or keywords.
Defaults
The default time zone is UTC.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
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.
Examples
This example shows how to clear the time zone:
Console> (enable) clear timezoneTimezone name and offset cleared.Console> (enable)Related Commands
clear top
Use the clear top command to terminate running TopN report processes.
clear top {all | report_num}
Syntax Description
all
Keyword that terminates all nonpending TopN results.
report_num
TopN report number to terminate; valid values are 1 to 5.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
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 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. Use the show top background command to find out if the background option is used.
The prompt is not displayed before the TopN report is completely displayed. Other commands will be blocked until the report has been displayed.
Examples
This example shows how to stop the TopN process 1 from a console session:
Console> (enable) clear top 1Console> (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 allConsole> (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 1Console> (enable) %MGMT-5-TOPN_TERMINATE:Report 1 terminated by telnet/172.20.52.124//Console> (enable)Related Commands
clear trunk
Use the clear trunk command to restore a trunk port to its default trunk type and mode or to clear specific VLANs from the allowed VLAN list for a trunk port.
clear trunk mod/ports... [vlans]
Syntax Description
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.
Defaults
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.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
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.
Examples
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-500Removing 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 port 2 of module 1:
Console> (enable) clear trunk 1/2Port(s) 1/2 trunk mode set to auto.Port(s) 1/2 trunk type set to isl.Console> (enable)Related Commands
clear vlan
Use the clear vlan command to delete an existing VLAN from a management domain.
clear vlan vlan_num
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
Follow these guidelines for deleting VLANs:
•
When you delete an Ethernet VLAN in VTP server mode, the VLAN is removed from all switches in the same VTP domain.
•
When you delete a VLAN in VTP transparent mode, the VLAN is deleted only on the current switch.
•
To delete a Token Ring TrBRF VLAN, you must first reassign its child TrCRFs to another parent TrBRF, or delete the child TrCRFs.
CautionWhen 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. A warning is displayed if you clear a VLAN that exists in the mapping table.
Examples
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 deletedConsole> (enable)Related Commands
clear vlan mapping
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}
Syntax Description
dot1q
Keyword that specifies the 802.1Q VLAN.
1q_vlan_num
Number identifiying the 802.1Q VLAN for which to remove the mapping.
all
Keyword that specifies to clear the mapping table of all entries.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear an existing mapped 802.1Q VLAN (VLAN 1044) from the
mapping table:Console> (enable) clear vlan mapping dot1q 1044Vlan 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 allAll Vlan Mapping Deleted.Console> (enable)Related Commands
set vlan mapping
show vlan mappingclear vmps server
Use the clear vmps server command to delete a VMPS server from the VMPS server table.
clear vmps server ip_addr
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
Examples
This example shows how to clear a VMPS server from the VMPS table:
Console> (enable) clear vmps server 192.168.255.255VMPS 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.255VMPS domain server 192.168.255.255 not in VMPS table.Console> (enable)Related Commands
clear vmps statistics
Use the clear vmps statistics command to delete existing VMPS statistics.
clear vmps statistics
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to delete existing VMPS statistics:
Console> (enable) clear vmps statisticsVMPS and dynamic vlan statistics cleared.Console> (enable)Related Commands
clear vtp pruneeligible
Use the clear vtp pruneeligible command to specify which VLANs in the VTP domain are ineligible for pruning.
clear vtp pruneeligible vlan_num
Syntax Description
Defaults
By default, VLANs 2 to 1000 are eligible for pruning.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
VTP pruning prevents traffic in each pruning-eligible VLAN from being transmitted on a VLAN trunk if no stations belonging to that VLAN are located across that trunk. Use the set vtp command to enable VTP pruning.
Use the set vtp pruneeligible command to make the VLANs eligible for pruning again.
Examples
This example shows how to make VLANs 200 to 500 ineligible for pruning:
Console> (enable) clear vtp pruneeligible 200-500Vlans 1,200-500,1001-1005 will not be pruned on this device.VTP domain Company modified.Console> (enable)Related Commands

