|
|
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.
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.
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.
Switch command.
Privileged.
This example shows how to delete a syslog server from the configuration:
Console> (enable) clear logging server 171.69.192.207
System log server 171.69.192.207 removed from system log server table. Console> (enable)
set logging server
show logging
Use the clear mls command set to clear the IP or IPX MLS features in the Catalyst 6000 family switches.
clear mls statistics
statistics | Keyword to clear total packets switched and total packets exported (for NDE). |
statistics protocol | Keywords to clear protocols for statistics collection. |
protocol | Number of the protocol in the protocol statistics list. |
port | Number of the port. |
all | Keyword to clear all entries from the statistics protocol list. |
entry | Keyword to purge the specified MLS entry or all entries if all is specified. All matching MLS entries are purged. |
ip | (Optional) Keyword to specify IP MLS. |
ipx | (Optional) Keyword to specify IPX MLS. |
destination | (Optional) Keyword to specify the destination IP address. |
ip_addr_spec | (Optional) Full IP address or a subnet address in these formats: ip_addr, ip_addr/netmask, or ip_addr/maskbit. |
source | (Optional) Keyword to specify the source IP address. |
protocol protocol | (Optional) Keyword and variable to specify additional flow information (protocol family and protocol port pair) to be matched; valid values are from 1 to 255, ip, ipinip, icmp, igmp, tcp, and udp. |
src-port src_port | (Optional) Keyword and variable to specify the source port IP address. |
dst-port dst_port | (Optional) Keyword and variable to specify the destination port IP address. |
ipx_addr_spec | (Optional) Full IPX address or a subnet address in these formats: src_net/[mask], dest_net.dest_node, or dest_net/mask. |
ipx_net_addr | (Optional) Source IPX net address. |
This command has no default setting.
Switch command.
Privileged.
When specifying the ip | ipx keyword, if you specify ip or do not enter a keyword, this means that the command is for IP MLS. If you specify ipx, this means the command is for IPX only.
When entering the IPX address syntax, use the following format:
Up to 16 routers can be included explicitly as MLS-RPs.
To use a router as an MLS, you must meet these conditions:
Use the following syntax to specify an IP subnet address:
If you do not use the all argument in the clear mls entry command, you must specify at least one of the other three keywords (source, destination, or protocol) 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.
If you enter any of the clear mls commands on a Catalyst 6000 family switch without MLS, this warning message displays:
Feature not supported in hardware.When you remove an MSM from the Catalyst 6000 family switch, it is removed immediately from the inclusion list and all the MLS entries for the MSM are removed.
This example shows how to disable IP MLS for the Stargate router (IP address 172.20.15.1):
Console> (enable) clear mls include Stargate Multilayer switching is disabled for router 172.20.15.1 (Stargate) Console> (enable)
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)
This example shows how to clear the MLS entries with destination IP address 172.20.26.22:
Console> (enable) clear mls entry destination 172.20.26.22 Multilayer switching entry cleared. Console> (enable)
This example shows how to clear specific IP MLS entries for destination IP address 172.20.26.22:
Console> (enable) clear mls entry ip destination 172.20.26.22 source 172.20.22.113 protocol tcp 520 320 Multilayer switching entry cleared Console> (enable)
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)
set mls agingtime
set mls exclude protocol
set mls nde
set mls statistics protocol
show mls
Use the clear mls exclude protocol command to remove a protocol port that has been been excluded from shortcutting using the set mls exclude protocol command.
clear mls exclude protocol tcp | udp | both port_number
tcp | Keyword to specify a TCP port. |
udp | Keyword to specify a UDP port. |
both | Keyword to specify that the port be applied to both TCP and UDP traffic. |
port_number | Number of the port. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to set TCP packets in a protocol port to be hardware switched:
Console> (enable)clear mls exclude protocol tcp 25TCP packets with protocol port 25 will be MLS switched.Console> (enable)
show mls exclude protocol
set mls exclude protocol
Use the clear mls multicast statistics command to remove MLS multicast statistical information from the MSFC.
clear mls multicast statistics [mod]
mod | (Optional) Number of the MSFC; valid values are 15 and 16. |
This command has no default setting.
Switch command.
Privileged.
If you enter the clear mls multicast statistics command on a Catalyst 6000 family switch without MLS, this warning message is displayed:
MLS Multicast is not supported on feature card.If you place the MFSC on a supervisor engine installed in slot 1, then the MFSC is recognized as module 15. If you install the supervisor engine in slot 2, the MFSC is recognized as module 16.
This example shows how to clear MLS statistics:
Console> (enable)clear mls statisticsAll statistics for the MLS routers in include list are cleared.Console> (enable)
Use the clear mls nde flow command to reset the NDE filters in the Catalyst 6000 family switches.
clear mls nde flowThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
Clearing both exclusion and inclusion filters results in exporting of all flows.
This example shows how to clear the NDE exclusion and inclusion filters and export all flows:
Console> (enable) clear mls nde flow Netflow data export filter cleared. Console> (enable)
show mls exclude protocol
set mls nde
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}
mod _num | Number of the module. |
port_num | Number of the port on the module. |
all | Keyword to specify all multicast router ports to be cleared. |
The default configuration has no multicast router ports configured.
Switch command.
Privileged.
This example shows how to clear multicast router port 1 on module 3:
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 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 all server addresses in the server table to be removed. |
The default configuration has no NTP servers configured.
Switch command.
Privileged.
This example shows how to remove 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 remove 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_num/port_num
mod_num | Number of the module. |
port_num | Number of the port on the module. |
The default configuration has broadcast/multicast suppression cleared (that is, unlimited broadcast/multicast traffic allowed).
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)
set port broadcast
show port broadcast
Use the clear port cops command to clear port roles.
clear port cops mod/port roles role1 [role2]...
mod/port | Number of the module and the port. |
roles role# | Keyword and variable to specify the roles to clear. |
all-roles | Keyword to clear all roles. |
This command has no default setting.
Switch command.
Privileged.
The clear port cops command detaches the roles from the port only; it does not remove them from the global table.
This example shows how to remove specific roles from a port:
Console> (enable)clear port cops 3/1 roles backbone_port main_portRoles cleared for port(s) 3/1-4.Console> (enable)
This example shows how to remove all roles from a port:
Console> (enable)clear port cops 3/1 all-rolesAll roles cleared for port 3/1-4.Console> (enable)
Use the clear port qos cos command to return the values set by the set port qos cos command to the factory-set 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.
Switch command.
Privileged.
This example shows how to return the values set by the set port qos cos command to the factory-set 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 | MAC address to be deleted. |
all | Keyword to remove all MAC addresses. |
This command has no default setting.
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 pvlan mapping command to delete a private VLAN mapping.
clear pvlan mapping {primary_vlan}{isolated_vlan | community_vlan}{mod/port}
primary_vlan | Number of the primary VLAN. |
isolated_vlan | Number of the isolated VLAN. |
community_vlan | Number of the community VLAN. |
mod/port | Number of the module and port of the promiscuous port. |
This command has no default setting.
Switch command.
Privileged.
If you do not specify the mapping to clear, all the mappings of the specified promiscuous ports are cleared.
This example shows how to clear the mapping of VLAN 902 to 901, previously set on ports 3/2-5:
Console> (enable) clear pvlan mapping 901 902 3/2-5 Successfully cleared mapping between 901 and 902 on 3/2-5
Console> (enable)
set vlan
show vlan
set pvlan
set pvlan mapping
clear vlan
clear config pvlan
show pvlan
show pvlan mapping
Use the clear qos acl command set to remove various ACL configurations.
clear qos acl acl_name [editbuffer_index]
acl_name | Unique name that identifies the list to which the entry belongs. |
editbuffer_index | (Optional) ACE position in the ACL. |
default-action | Keyword to remove default actions. |
ip | Keyword to clear IP ACE default actions. |
ipx | Keyword to clear IPX ACE default actions. |
mac | Keyword to clear MAC-layer ACE default actions. |
all | Keyword to clear all ACE default actions. |
map | Keyword to detach an ACL. |
mod_num/port_num | Number of the module and port. |
vlan | Number of the VLAN. |
all | Keyword to detach an ACL from all interfaces. |
The default is no ACLs are attached.
Switch command.
Privileged.
Changes you make by entering this command are saved to NVRAM and hardware only after you enter the commit command.
Use the show qos acl editbuffer command to display the ACL list.
Use the default-action keyword to remove default actions set when you entered the set qos acl default-action command.
This example shows how to detach an ACL from all interfaces:
Console> (enable)clear qos acl map my_acl allHardware programming in progress...ACL my_acl is detached from all interfaces.Console> (enable)
This example shows how to detach an ACL from a specific VLAN:
Console> (enable)clear qos acl map ftp_acl 4Hardware programming in progress...ACL ftp_acl is detached from vlan 4.Console> (enable)
This example shows how to delete a specific ACE:
Console> (enable)clear qos acl my_ip_acl 1ACL my_ip_acl ACE# 1 is deleted.my_ip_acl editbuffer modified. Use `commit' command to apply changes.Console> (enable)
This example shows how to delete an ACL:
Console> (enable)clear qos acl my_ip_aclACL my_ip_acl is deleted.my_ip_acl editbuffer modified. Use `commit' command to apply changes.Console> (enable)
This example shows how to detach a specific ACL from all interfaces:
Console> (enable)clear qos acl map my_acl allHardware programming in progress...ACL my_acl is detached from all interfaces.Console> (enable)
This example shows how to detach a specific ACL from a specific VLAN:
Console> (enable)clear qos acl map ftp_acl 4Hardware programming in progress...ACL ftp_acl is detached from vlan 4.Console> (enable)
This example shows how to delete IP ACE default actions configured by the set qos acl default-action command:
Console> (enable)clear qos acl default-action ipHardware programming in progress...QoS default-action for IP ACL is restored to default setting.Console> (enable)
show qos acl editbuffer
commit
rollback
Use the clear qos config command to return the values set by the set qos command to the factory-set default values and delete the CoS assigned to MAC addresses.
clear qos configThis command has no arguments or keywords.
The default is QoS is disabled.
Switch command.
Privileged.
This example shows how to return the values set by the set qos command to the factory-set 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 cos-dscp-map command to clear CoS-to-DSCP mapping set by the set qos cos-dscp-map command and return to the default setting.
clear qos cos-dscp-mapThis command has no arguments or keywords.
The default CoS-to-DSCP configuration is listed in Table 2-1.
| CoS | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| DSCP | 0 | 8 | 16 | 24 | 32 | 40 | 48 | 56 |
Switch command.
Privileged.
This example shows how to clear the CoS-to-DSCP mapping table:
Console> (enable) clear qos cos-dscp-map QoS cos-dscp-map setting restored to default. Console> (enable)
set qos cos-dscp-map
show qos maps
Use the clear qos dscp-cos-map command to clear DSCP-to-CoS mapping set by the set qos dscp-cos-map command and return to the default setting.
clear qos dscp-cos-mapThis command has no arguments or keywords.
The default DSCP-to-CoS configuration is listed in Table 2-2.
| DSCP | 0 to 7 | 8 to 15 | 16 to 23 | 24 to 31 | 32 to 39 | 40 to 47 | 48 to 55 | 56 to 63 |
|---|---|---|---|---|---|---|---|---|
| CoS | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Switch command.
Privileged.
This example shows how to clear the DSCP-to-CoS mapping table:
Console> (enable) clear qos dscp-cos-map QoS dscp-cos-map setting restored to default. Console> (enable)
set qos dscp-cos-map
show qos maps
Use the clear qos ipprec-dscp-map command to reset the mapping set by the set qos ipprec-dscp-map command to the default setting.
clear qos ipprec-dscp-mapThis command has no arguments or keywords.
The default ipprec-to-DSCP configuration is listed in Table 2-3.
| IPPREC | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|---|
| DSCP | 0 | 8 | 16 | 24 | 32 | 40 | 48 | 56 |
Switch command.
Privileged.
This example shows how to clear the IP precedence-to-DSCP mapping table:
Console> (enable)clear qos ipprec-dscp-mapQoS ipprec-dscp-map setting restored to default.Console> (enable)
set qos ipprec-dscp-map
show qos maps
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 | Number of the 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.
Switch command.
Privileged.
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 factory-set 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 factory-set 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 values set by the set qos map command to the factory-set default values.
clear qos map port_type tx | rx
port_type | Port type; valid values are 2q2t and 1p2q2t for transmit and 1p1q4t for receive. |
tx | Keyword to specify the transmit queue. |
rx | Keyword to specify the receive queue. |
The default mappings for all ports are shown in Table 2-4 and Table 2-5 and applies to all ports.
| Port Type | Drop Threshold Type | Low Delay (Queue 2) | High Delay (Queue 1) | Priority Delay (Queue 3) |
|---|---|---|---|---|
2q2t | Low drop (Threshold 2) | 7, 6 | 3, 2 | N/A |
High drop (Threshold 1) | 5, 4 | 1, 0 | N/A | |
1p2q2t | Low drop (Threshold 2) | 7 | 3, 2 | N/A |
High drop (Threshold 1) | 5, 4 | 1, 0 | 5 |
| Port Type | Threshold 1 (highest drop possibility) | Threshold 2 | Threshold 3 | Threshold 4 (lowest drop possibility) | Priority Queue |
|---|---|---|---|---|---|
1q4t | 0, 1 | 2, 3 | 4, 5 | 6, 7 | N/A |
1p1q4t | 0, 1 | 2, 3 | 4, 5 | 7 | 6 |
Switch command.
Privileged.
This example shows how to return the values set by the set qos map command to the factory-set default values:
Console> (enable)clear qos map 2q2t This command will take map values back to factory default.QoS map cleared.Console> (enable)
Use the clear qos policed-dscp-map to reset the policer-to-dscp mapping table to the defaults.
clear qos policed-dscp-mapThis command has no arguments or keywords.
The default is the identity function; for example, DSCP 63 to policed DSCP 63 and DSCP 62 to policed DSCP 62.
Switch command.
Privileged.
This example shows how to reset the mapping to the defaults:
Console> (enable)clear qos policed-dscp-mapQoS policed-dscp-map setting restored to default.Console> (enable)
set qos policed-dscp-map
show qos maps
Use the clear qos policer command to clear policing rules from NVRAM.
clear qos policer microflow microflow_name | all
microflow microflow_name | Keyword and variable to specify the name of the microflow policing rule. |
aggregate aggregate_name | Keyword and variable to specify the name of the aggregate policing rule. |
all | Keyword to clear all policing rules. |
This command has no default setting.
Switch command.
Privileged.
Policing is the process by which the switch limits the bandwidth consumed by a flow of traffic. Policing can mark or drop traffic.
You cannot clear an entry that is currently being used in an ACE. You must first detach the ACEs from the interface.
You cannot use the all keyword if a microflow rate limit is currently being used in an ACE.
This example shows how to clear a specific microflow policing rule:
Console> (enable)clear qos policer microflow my_micromy_micro QoS microflow policer cleared.Console> (enable)
This example shows how to clear all microflow policing rules:
Console> (enable)clear qos policer microflow allAll QoS microflow policers cleared.Console> (enable)
This example shows how to clear a specific aggregate policing rule:
Console> (enable)clear qos policer microflow my_micromy_micro QoS microflow policer cleared.Console> (enable)
This example shows how to clear all aggregate policing rules:
Console> (enable)clear qos policer aggregate allAll QoS aggregate policer cleared.Console> (enable)
set qos policer
show qos policer
Use the clear radius command set to clear one or all 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. |
key | Keyword to specify the RADIUS shared key. |
This command has no default setting.
Switch command.
Privileged.
ipaddr is an IP alias or an IP address in dot notation; for example, 101.102.103.104.
This example shows how to clear the RADIUS key:
Console> (enable)clear radius keyRadius server key cleared.Console> (enable)
This example shows how to clear a specific RADIUS server from the RADIUS server table:
Console> (enable)clear radius server 128.56.45.32128.56.45.32 cleared from radius server table.Console> (enable)
set radius key
set radius server
show radius
Use the clear rgmp statistics command to clear RGMP statistics information for all VLANS.
clear rgmp statisticsThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
This example shows how to clear the RGMP statistics on the switch:
Console> (enable) clear rgmp statistics RGMP statistics cleared. Console> (enable)
Use the clear security acl command to remove a specific ACE or all ACEs from an ACL and delete the ACLs from the edit buffer.
clear security acl all
all | Keyword to remove ACEs for all the ACLs. |
acl_name | Name of the VACL whose ACEs are to be removed. |
editbuffer_index | (Optional) Index number of the ACE in the ACL. |
This command has no default setting.
Switch command.
Privileged.
Changes you make by entering this command are saved to NVRAM and hardware only after you enter the commit command.
Use the show security acl command to display the ACL list.
This example shows how to remove ACEs for all the ACLs:
Console> (enable)clear security allAll editbuffer modified. Use `commit' command to apply changes.Console> (enable)
This example shows how to remove a specific ACE from a specific ACL:
Console> (enable)clear security acl IPACL1 2IPACL1 editbuffer modified. Use `commit' command to apply changes.Console> (enable)
commit
show security acl
rollback
Use the clear security acl capture-ports command to remove a port from the capture port list.
clear security acl capture-ports {mod/ports...}
mod/ports | Module and port number. |
This command has no default setting.
Switch command.
Privileged.
Configurations you make by entering this command are saved in NVRAM. This command does not require that you enter the commit command.
If you have a given number of ports and a few are removed, the remaining ports continue to capture the traffic.
This example shows how to remove entries from the capture port list:
Console> (enable)clear security acl capture-ports 1/1,2/1Successfully cleared the following ports:1/1,2/1Console> (enable)
show security acl capture-ports
set security acl capture-ports
Use the clear security acl map command to remove VACL-to-VLAN mapping.
clear security acl map all
all | Keyword to remove all VACL-to-VLAN mappings. |
acl_name | Name of the VACL whose VLAN is to be deleted. |
vlan | Number of the VLAN whose mapping is to be deleted. |
This command has no default setting.
Switch command.
Privileged.
Changes you make by entering this command are saved to NVRAM and do not require you to enter the commit command.
Use the show security acl command to display the ACL list.
This example shows how to remove VACL-to-VLAN mapping from a specific VLAN:
Console> (enable)clear security acl map ip1 3Map deletion in progress.Successfully cleared mapping between ACL ip1 and VLAN 3.Console> (enable)
This example shows how to remove specific VACL-to-VLAN mapping from all VLANs:
Console> (enable)clear security acl map ip1Map deletion in progress.Successfully cleared mapping between ACL ip1 and VLAN 5.Successfully cleared mapping between ACL ip1 and VLAN 8.Console> (enable)
This example shows how to remove all VACL-to-VLAN mapping from a specific VLAN:
Console> (enable)clear security acl map 5Map deletion in progress.Successfully cleared mapping between ACL ipx1 and VLAN 5.Successfully cleared mapping between ACL mac2 and VLAN 5.Console> (enable)
This example shows how to remove all VACL-to-VLAN mapping from all VLANs:
Console> (enable)clear security acl map allMap deletion in progress.Successfully cleared mapping between ACL ip2 and VLAN 12.Successfully cleared mapping between ACL ipx1 and VLAN 12.Successfully cleared mapping between ACL ipx1 and VLAN 45.Successfully cleared mapping between ACL ip2 and VLAN 47.Successfully cleared mapping between ACL ip3 and VLAN 56.Console> (enable)
commit
show security acl
rollback
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}
-hex | (Optional) Keyword to display the groupname as a hexadecimal format. |
groupname | SNMP access table name. |
security-model v1 | v2c | Keywords to specify the security model v1 or v2c. |
security-model v3 | Keywords to specify security model v3. |
noauthentication | Keyword to specify groups with security model type set to noauthentication. |
authentication | Keyword to specify groups with security model type authentication protocol. |
privacy | Keyword to specify groups with security model type privacy. |
This command has no default setting.
Switch command.
Privileged.
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.
This example shows how to clear SNMP access for a group:
Console> (enable) clear snmp access cisco-group security-model v3 authentication Cleared snmp access cisco-group version v3 level authentication. Console> (enable)
Use the clear snmp group command to clear the SNMP user from an SNMP group.
clear snmp group [-hex] {groupname} user [-hex] {username}
groupname | Name of the SNMP group that defines an access control. |
user | Keyword to specify the SNMP group user name. |
-hex | (Optional) Keyword to display the groupname and username as a hexadecimal format. |
username | Name of the SNMP user. |
security model v1 | v2c | v3 | Keywords to specify security model v1, v2c, or v3. |
This command has no default settings.
Switch command.
Privileged.
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.
This example shows how to clear an SNMP group from the vacmAccessTable:
Console> (enable) clear snmp group cisco-group user joe security-model v3 Cleared snmp group cisco-group user joe version v3. Console> (enable)
Use the clear snmp notify command to clear the SNMP notifyname in the snmpNotifyTable.
clear snmp notify [-hex] {notifyname}
-hex | (Optional) Keyword to display the notifyname as a hexadecimal format. |
notifyname | Identifier to index the snmpNotifyTable. |
This command has no default setting.
Switch command.
Privileged.
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.
This example shows how to clear an SNMP notifyname from the snmpNotifyTable:
Console> (enable) clear snmp notify joe Cleared SNMP notify table joe. Console> (enable)
set snmp notify
show snmp notify
Use the clear snmp targetaddr command to clear the SNMP target address entry in the TargetAddressTable.
clear snmp targetaddr [-hex] {addrname}
-hex | (Optional) Keyword to display the addrname as a hexadecimal format. |
addrname | Name of the target agent; the maximum length is 32 bytes. |
This command has no default setting.
Switch command.
Privileged.
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.
This example shows how to clear an SNMP target address entry in the snmpTargetAddressTable:
Console> (enable) clear snmp targetaddr joe Cleared SNMP targetaddr joe. Console> (enable)
set snmp targetaddr
show snmp targetaddr
Use the clear snmp targetparams command to clear the SNMP target parameters used in the snmpTargetParamsTable.
clear snmp targetparams [-hex] {paramsname}
-hex | (Optional) Keyword to display the paramsname as a hexadecimal format. |
paramsname | Name of the target parameter in the snmpTargetParamsTable; the maximum length is 32 bytes. |
This command has no default setting.
Switch command.
Privileged.
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.
This example shows how to clear the SNMP target parameters in the snmpTargetParamsTable:
Console> (enable) clear snmp targetparams joe Cleared SNMP targetparams table joe. Console> (enable)
set snmp targetparams
show snmp targetparams
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. |
all | (Optional) Keyword to specify every entry in the SNMP trap receiver table. |
The default configuration has no entries in the SNMP trap receiver table.
Switch command.
Privileged.
This example shows how to clear an entry from the SNMP trap receiver table:
Console> (enable) clear snmp trap 192.122.173.82 SNMP trap receiver deleted. Console> (enable)
set snmp trap
show port counters
test snmp trap
Use the clear snmp user command to remove an SNMP user.
clear snmp user [-hex] {username} [remote {engineid}]
-hex | (Optional) Keyword to display the username as a hexadecimal format. |
username | Name of the user on the host that connects to the agent. |
remote engineid | (Optional) Keyword and variable to specify the username on a remote SNMP engine. |
If a remote engine ID is not provided, the default local SNMP engine ID is used.
Switch command.
Privileged.
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.
This example shows how to remove a user from an SNMP group:
Console> (enable) clear snmp user joe Cleared 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:00 Cleared SNMP user. Console> (enable)
Use the clear snmp view command to remove the MIB viewname from the vacmViewTreeFamilyTable.
clear snmp view [-hex] {viewname} {subtree}
-hex | (Optional) Keyword to display the viewname as a hexadecimal format. |
viewname | Name of a MIB view. |
subtree | Name of the subtree. |
This command has no default setting.
Switch command.
Privileged.
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 with a mask defines a view subtree that can be in OID format or a text name mapped to a valid OID.
This example shows how to clear the SNMP MIB viewname:
Console> (enable) clear snmp view myview 1.1.3 Cleared snmp view myview with subtree 1.1.3 Console> (enable)
Use the clear spantree portvlancost command to restore the default path cost to a VLAN on a port.
clear spantree portvlancost mod_num/port_num [vlan_list]
mod_num | Number of the module. |
port_num | Number of the port. |
vlan_list | (Optional) List of VLANs to clear. If not specified, all VLANs are cleared. |
This command has no default setting.
Switch command.
Privileged.
These examples show how to restore the default path cost to a VLAN on a port:
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) Console> (enable) clear spantree portvlancost 2/10 Port 2/10 VLANs 1-1000 have path cost 10. Console> (enable)
set spantree portfast
show spantree statistics
Use the clear spantree portvlanpri command to reset the spanning tree port VLAN priority.
clear spantree portvlanpri mod_num/port_num [vlans]
mod_num | Number of the module. |
port_num | Number of the port on the module. |
vlans | (Optional) One or more VLANs. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to reset the spanning tree port VLAN priority:
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 switch priority and Spanning Tree Protocol parameters to the factory-set default values.
clear spantree root [vlan_list]
vlan_list | (Optional) List of the VLAN numbers to clear. |
The default configuration has the switch priority set to 32768.
Switch command.
Privileged.
This example shows how to clear the spantree root on a range of VLANs:
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.
This example shows how to clear the spantree root on two specific VLANs:
Console> (enable) clear spantree root 22,24 VLANs 22,24 bridge priority set to 32678. VLANs 22,24 bridge hello time set to 2 seconds. VLANs 22,24 bridge max aging time set to 20 seconds. VLANs 22,24 bridge forward delay set to 15 seconds. Console> (enable)
set spantree root
show spantree
Use the clear spantree statistics command to clear the spanning tree statistics.
clear spantree statistics [vlan_list]
vlan_list | (Optional) List of the VLAN numbers to clear. |
This command has no default setting.
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 turn off the UplinkFast feature and to return the switch priority and port costs to the factory-set default values.
clear spantree uplinkfastThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
This command could cause load balancing to be lost in some cases.
This example shows how to turn off the UplinkFast feature and to return the switch priority to the factory-set 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 key setting used for TACACS+ authentication and encryption.
clear tacacs keyThis command has no arguments or keywords.
The default key value is null.
Switch command.
Privileged.
This example shows how to clear the key setting 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
ip_addr | IP address of the server to be removed from the list of TACACS+ servers. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to remove a server from the list of TACACS+ servers:
Console> (enable) clear tacacs server 170.1.2.20 170.1.2.20 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.
Switch command.
Privileged.
The clear timezone command functions only when NTP is running. If you set the time manually and NTP is disengaged, 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 stop the TopN process.
clear top {all | report_num}
all | Keyword to stop all nonpending TopN results. |
report_num | TopN report number to kill. |
This command has no default setting.
Switch command.
Privileged.
The clear top all command will not kill any pending TopN reports. Only the 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 1 process from a console session:
Console> (enable) clear top 1 10/29/1998,12:05:38:MGMT-5: TopN report 1 killed by Console//. Console> (enable)
This example shows how to stop the TopN 4 process from a Telnet session:
Console> (enable) clear top 4 10/29/1998,12:06:00:MGMT-5: TopN report 4 killed by telnet/172.22.34.2/. Console> (enable)
mod_num/port_num | Number of the module and the ports. |
vlans | (Optional) Number of the VLAN to remove from the allowed VLAN list. |
For all ports except MSM ports, the default is auto negotiate. For MSM ports, the default is off negotiate mode.
Switch command.
Privileged.
If you specify VLANs, those VLANs are removed from the list of VLANs allowed on the trunk. Default VLANs cannot be cleared on the trunk.
Traffic for the removed VLANs are not forwarded over a trunk port. 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 through 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 port 2 of module 1:
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 (range is 2 to 1000). |
This command has no default setting.
Switch command.
Privileged.
![]() | Caution
When you clear a VLAN, depending on the VTP configuration in the network, it might delete the VLAN from the entire VTP domain, which means every switch in the domain could delete that VLAN. If the configured switch is a VTP server and all or some of the other switches in the network are VTP clients, the change propagates to all the clients. For example, those clients will remove the VLAN from their configuration. Servers and transparent switches are unaffected; they keep the VLAN even if the VLAN is deleted by another server. |
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. A warning is displayed if you clear a VLAN that exists in the mapping table.
For private VLANs, when a private VLAN (primary, isolated or cummunity) is cleared, the ports are set to inactive and are not assigned to any VLAN. The private VLAN mappings for the selected VLAN are also cleared.
This example shows how to clear existing VLAN 4 from a management domain:
Console> (enable) clear vlan 4
This command will de-activate all ports on vlan 4
in the entire management domain
Do you want to continue(y/n) [n]? y
VTP: VLAN 4 deletion successful 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 VLAN type as 802.1Q. |
1q_vlan_num | Number identifying the 802.1Q VLAN. |
all | Keyword to clear the mapping table of all entries. |
This command has no default setting.
Switch command.
Privileged.
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 mapped VLAN (VLAN 4) from the mapping table:
Console> (enable) clear vlan mapping dot1q 444 Vlan Mapping 444 Deleted. Console> (enable)
This example shows how to clear all mapped VLANs from the mapping table:
Console> (enable) clear vlan mapping dot1q all All Vlan Mapping Deleted. 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.
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)
Use the clear voicevlan command to put all ports back to the 802.1p default values.
clear voicevlan {mod_num/port_num | vlan}
mod_num/ port_num | Number of the module and ports. |
vlan | Number of the VVID; valid values are from 1 to 4094. |
This command has no default setting.
Switch command.
Privileged.
If you specify the mod_num or port_num, only those specific modules or ports are changed to the 802.1p default value. The internal value is 0.
This example shows how to return all ports to the 802.1p default values for a specific VVID:
Console> (enable)clear voicevlan 2993Voicevlan 2993 cleared. All ports belong to it configured for 802.1p.Console> (enable)
This example shows how to return all ports to the 802.1p default values for a specific module and port:
Console> (enable)clear voicevlan 3/4Port 3/4 cleared from voicevlan 2993 and configured for 802.1pConsole> (enable)
This example shows how to return all ports to the 802.1p default values for a specific module and range of ports:
Console> (enable)clear voicevlan 3/6-9Ports 3/6-9 cleared from voice vlan 2993 and configured for 802.1p.Console> (enable)
Use the clear vtp pruneeligible command to specify which VLANs in the VTP domain are ineligible for pruning.
clear vtp pruneeligible vlan_num
vlan_num | Number of VLANs to make pruning ineligible. |
The default is VLANs 2 through 1000 are eligible for pruning.
Switch command.
Privileged.
VTP pruning causes information about each pruning-eligible VLAN to be removed from VTP updates if no stations belong to that VLAN out a particular switch port. Use the set vtp command to enable VTP pruning.
By default, VLANs 2 through 1000 are pruning eligible. Use the clear vtp pruneeligible command to make VLANs pruning ineligible.
If VLANs are pruning ineligible, use the set vtp pruneeligible command to make the VLANs pruning eligible again.
This example shows how to make VLANs 200 through 500 pruning ineligible:
Console> (enable) clear vtp pruneeligible 200-500 Vlans 1,200-500,1001-1005 will not be pruned on this device. VTP domain Company modified. Console> (enable)
set vtp
set vtp pruneeligible
show vtp domain
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Sep 18 16:52:54 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.