Table Of Contents
cd
clear acllog
clear acl mac-packet-classify
clear alias
clear arp
clear arp x.x.x.x
clear autoshut
clear banner motd
clear boot auto-config
clear boot device
clear boot system
clear cam
clear cam monitor
clear cam notification
clear channel statistics
clear config
clear config checkpoint
clear config pvlan
clear cops
clear counters
clear crypto key rsa
clear dhcp-snooping bindings
clear dhcp-snooping statistics
clear diagnostic
clear dot1x config
clear dot1x vlan-group
clear eou
clear ethernet-cfm
clear ethernet-cfm maintenance-association
clear ethernet-cfm port-mac-enable
clear ethernet-cfm statistics
clear ethernet-cfm traceroute-database
clear ethernet-evc
clear ftp
clear gmrp statistics
clear gvrp statistics
clear igmp statistics
clear ip alias
clear ip dns domain
clear ip dns server
clear ip permit
clear ip route
clear kerberos clients mandatory
clear kerberos credentials forward
clear kerberos creds
clear kerberos realm
clear kerberos server
clear key config-key
clear l2protocol-tunnel cos
clear l2protocol-tunnel statistics
clear lacp-channel statistics
clear lda
clear localuser
clear log
clear log command
clear logging buffer
clear logging callhome
clear logging callhome from
clear logging callhome reply-to
clear logging callhome severity
clear logging callhome smtp-server
clear logging level
clear logging server
clear macro
clear mac utilization
clear mls cef
clear mls cef rpf statistics
clear mls entry
clear mls entry cef
clear mls exclude protocol
cd
To set the default Flash device for the system, use the cd command.
cd [[m/]device:]
Syntax Description
m/
|
(Optional) Module number of the supervisor engine containing the Flash device.
|
device:
|
(Optional) Valid devices include bootflash and slot0.
|
Defaults
The default Flash device is bootflash.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
A colon (:) is required after the specified device.
With commands where the device is an option, if the default device is not specified, the device set by the cd command is used.
Examples
This example shows how to set the system default Flash device to bootflash:
Default flash device set to bootflash.
Related Commands
pwd
clear acllog
To disable ACL log rate limiting, use the clear acllog command.
clear acllog
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to disable ACL log rate limiting:
Console> (enable) clear acllog
ACL log rate limit is cleared.
If the ACLs-LOG were already applied, the rate limit mechanism will be disabled on system
restart, or after shut/no shut the interface.
Related Commands
set acllog ratelimit
show acllog
clear acl mac-packet-classify
To match only MAC packets with MAC ACLs, use the clear acl mac-packet-classify command.
clear acl mac-packet-classify {vlans | all}
Syntax Description
vlans
|
VLAN list; valid values are 1 to 4094.
|
all
|
Specifies all VLANs.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The MAC-based ACL feature is available only on a system with a PFC3B or a PFC3BXL. This feature affects both security ACLs and QoS MAC ACLs.
The specified VLAN reverts back to matching only MAC packets with MAC ACLs. The set acl mac-packet-classify command sets MAC-based ACL lookups for all packet types on a VLAN.
Examples
This example shows how to revert the specified VLAN back to matching only MAC packets with MAC ACLs:
Console> (enable) clear acl mac-packet-classify 5
Disabled mac-packet-classify on vlan(s) 5.
Related Commands
set acl mac-packet-classify
show acl mac-packet-classify
clear alias
To clear the abbreviated versions of commands, use the clear alias command.
clear alias {name | all}
Syntax Description
name
|
Alternate identifier of the command.
|
all
|
Clears every alternate identifier previously created.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to erase the arpdel alias:
Console> (enable) clear alias arpdel
This example shows how to erase all the aliases:
Console> (enable) clear alias all
Command alias table cleared. (1)
(1) indicates the number of command aliases cleared.
Related Commands
set alias
show alias
clear arp
To delete a specific entry or all entries from the ARP table, use the clear arp command.
clear arp [all | dynamic | permanent | static] {ip_addr}
Syntax Description
all
|
(Optional) Clears all ARP entries.
|
dynamic
|
(Optional) Clears all dynamic ARP entries.
|
permanent
|
(Optional) Clears all permanent ARP entries.
|
static
|
(Optional) Clears all static ARP entries.
|
ip_addr
|
IP address to clear from the ARP table.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove IP address 198.133.219.209 from the ARP table:
Console> (enable) clear arp 198.133.219.209
This example shows how to remove all entries from the ARP table:
Console> (enable) clear arp all
(1) indicates the number of entries cleared.
This example shows how to remove all dynamically learned ARP entries:
Console> (enable) clear arp dynamic
Dynamic ARP entries cleared. (3)
This example shows how to clear all permanently entered ARP entries:
Console> (enable) clear arp permanent
Permanent ARP entries cleared.(5)
Related Commands
set arp
show arp
clear arp x.x.x.x
To clear the arp entry for a single host, use the clear ip arp command.
clear arp x.x.x.x
Syntax Description
x.x.x.x
|
IP address of the host.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the ARP entry of a host:
Console> (enable) clear arp 172.22.145.1
Related Commands
set arp
clear autoshut
To clear the runtime counters or reset the automatic module shutdown settings to the default settings, use the clear autoshut command.
clear autoshut {{counters mod} | frequency | period}
Syntax Description
counters mod
|
Clears the runtime counters for the specified module.
|
frequency
|
Resets the autoshut frequency to the default setting.
|
period
|
Resets the autoshut period to the default setting.
|
Defaults
The defaults are as follows:
•
frequency is three times.
•
period is two minutes.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can shut down a module manually using the set module disable or the set module power down commands.
This command is supported on Ethernet modules only.
Examples
This example shows how to clear the runtime counters on a specific module:
Console> (enable) clear autoshut counters 3
Automatic shutdown counters cleared for module 3
This example shows how to reset the autoshut frequency to the default setting:
Console> (enable) clear autoshut frequency
This example shows how to reset the autoshut period to the default setting:
Console> (enable) clear autoshut period
Related Commands
set autoshut
set module autoshut
show autoshut
clear banner motd
To clear the message-of-the-day banner, use the clear banner motd command.
clear banner motd
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the message-of-the-day banner:
Console> (enable) clear banner motd
Related Commands
set banner motd
clear boot auto-config
To clear the contents of the CONFIG_FILE environment variable used to specify the configuration files used during bootup, use the clear boot auto-config command.
clear boot auto-config [mod]
Syntax Description
mod
|
(Optional) Module number of the supervisor engine containing the Flash device.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the auto-config file:
Console> (enable) clear boot auto-config
Related Commands
set boot auto-config
show boot
clear boot device
To clear the contents of the CONFIG_FILE environment variable used to specify the NAM startup configuration files, use the clear boot device command.
clear boot device mod
Syntax Description
mod
|
Number of the module containing the Flash device.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the NAM module only.
Examples
This example shows how to clear the NAM boot string from NVRAM for module 2:
Console> (enable) clear boot device 2
Related Commands
set boot device
show boot device
clear boot system
To clear the contents of the BOOT environment variable and the configuration register setting, use the clear boot system command.
clear boot system all [mod]
clear boot system flash device:[filename] [mod]
Syntax Description
all
|
Clears the whole BOOT environment variable.
|
mod
|
(Optional) Module number of the supervisor engine containing the Flash device.
|
flash
|
(Optional) Clears the Flash device.
|
device:
|
Name of the Flash device.
|
filename
|
(Optional) Filename of the Flash device.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the whole BOOT environment variable:
Console> (enable) clear boot system all
This example shows how to clear a specific device; note that the specified device is not listed:
Console> (enable) clear boot system flash bootflash:cat6000-sup.5-5-1.bin
BOOT variable = bootflash:cat6000-sup.6-1-1.bin,1;bootflash:cat6000-sup.5-5-2.
Related Commands
set boot system flash
show boot
clear cam
To delete a specific entry or all entries from the CAM table, use the clear cam command.
clear cam mac_addr [vlan]
clear cam {dynamic | static | permanent} [vlan]
Syntax Description
mac_addr
|
One or more MAC addresses.
|
vlan
|
(Optional) Number of the VLAN; valid values are from 1 to 4094.
|
dynamic
|
Clears the dynamic CAM entries from the CAM table.
|
static
|
Clears the static CAM entries from the CAM table.
|
permanent
|
Clears the permanent CAM entries from the CAM table.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove MAC address 00-40-0b-a0-03-fa from the CAM table:
Console> (enable) clear cam 00-40-0b-a0-03-fa
This example shows how to clear dynamic entries from the CAM table:
Console> (enable) clear cam dynamic
Dynamic CAM entries cleared.
Related Commands
set cam
show cam
clear cam monitor
To clear the configuration for the MAC-address limits and actions, use the clear cam monitor command.
clear cam monitor {all | mod/port | vlan}
clear cam monitor high-threshold {mod/port | vlan}
clear cam monitor low-threshold {mod/port | vlan}
Syntax Description
all
|
Clears all CAM table monitoring and MAC-address limit configurations from all ports.
|
mod/port
|
Number of the module and the port on the module.
|
vlan
|
VLAN number; valid values are from 1 to 4094.
|
high-threshold
|
Clears the upper limit for MAC address learning.
|
low-threshold
|
Clears the lower limit for MAC address learning.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear all CAM table monitoring and MAC-address limit configurations from all ports:
Console> (enable) clear cam monitor all
Cleared all cam monitor configuration
This example shows how to clear the high threshold on port 3/1:
Console> (enable) clear cam monitor high-threshold 3/1
Successfully cleared high-threshold on 3/1
Console> (enable)
Related Commands
set cam monitor
show cam monitor
clear cam notification
To clear the CAM notification counters and history log, use the clear cam notification command.
clear cam notification {all | counters | history}
clear cam notification move counters [all | vlan]
Syntax Description
all
|
Clears the CAM notification counters and history log.
|
counters
|
Clears the CAM notification counters.
|
history
|
Clears the CAM notification history log.
|
move counters
|
Clears MAC move counters.
|
all
|
(Optional) Clears the MAC move counters for all VLANs.
|
vlan
|
(Optional) Number of the VLAN; valid values are from 1 to 4094.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The MAC move counters are not supported on EARL 4 and earlier.
Examples
This example shows how to clear the CAM notification counters and history log:
Console> (enable) clear cam notification all
MAC address notification counters and history log cleared.
This example shows how to clear the CAM notification counters:
Console> (enable) clear cam notification counters
MAC address notification counters cleared.
This example shows how to clear the CAM notification history log:
Console> (enable) clear cam notification history
MAC address notification history log cleared.
This example shows the output if you enter the command when MMC is disabled:
Console> (enable) clear cam notification move counters
MAC move counters are disabled
These examples show the output if you enter the command when MMC is enabled and you enter the all keyword:
Console> (enable) clear cam notification move counters all
This will clear the mac move counters for all the vlans.
Do you want to continue (y/n)? y
MAC move counters for all Vlans cleared
Console> (enable) clear cam notification move counters all
This will clear the mac move counters for all the vlans.
Do you want to continue (y/n)? n
MAC move counters not cleared
These examples show the output if you enter the command and specify a VLAN:
Console> (enable) clear cam notification move counters 2
This will clear the mac move counters for vlan 2.
Do you want to continue (y/n)? y
MAC move counters for Vlan 1 cleared
Console> (enable) clear cam notification move counters 2
This will clear the mac move counters for vlan 2.
Do you want to continue (y/n)? n
MAC move counters not cleared
Related Commands
set cam notification
set snmp trap
show cam notification
clear channel statistics
To clear PAgP statistical information, use the clear channel statistics command.
clear channel statistics
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear PAgP statistical information:
Console> (enable) clear channel statistics
Related Commands
show channel
clear config
To clear the system or module configuration information stored in NVRAM, use the clear config command.
clear config {all [factory-defaults] | mod | acl nvram | interface | sysinfo-log | pvlan | rmon |
snmpv3}
Syntax Description
all
|
Clears all module and system configuration information, including the IP address.
|
factory-defaults
|
(Optional) Clears the profile configuration.
|
mod
|
Number of the module.
|
acl nvram
|
Clears all ACL configurations.
|
interface
|
Clears all interface configurations.
|
sysinfo-log
|
Clears all system information logging configurations.
|
pvlan
|
Clears private VLAN configurations.
|
rmon
|
Clears all RMON configurations, including the historyControlTable, the alarmTable, the eventTable, and the ringStation ControlTable.
|
snmpv3
|
Clears all SNMP version 3 configurations.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you use a Multilayer Switch Module (MSM), you can enter the clear config command to clear the portion of the MSM configuration retained by the Catalyst 6500 series switch supervisor engine. You must clear the portion of the configuration kept by the MSM at the router level (at the router CLI prompt).
Before using the clear config all command, save a backup of the configuration using the copy command.
When you enter the clear config all command, the system loads the profile configuration if there is one. When you enter the clear config all factory-defaults command, both the system configuration and the profile configuration are cleared.
Examples
This example shows how to delete the configuration information in NVRAM on module 2:
Console> (enable) clear config 2
This command will clear module 2 configuration.
Do you want to continue (y/n) [n]? y
..............................
Module 2 configuration cleared.
This example shows how to delete the configuration information stored in NVRAM on module 1 (the supervisor engine):
Console> (enable) clear config 1
This command will clear module 1 configuration.
Do you want to continue (y/n) [n]? y
Module 1 configuration cleared.
This example shows how to delete all the configuration information for the Catalyst 6500 series switches:
Console> (enable) clear config all
This command will clear all configuration in NVRAM.
Do you want to continue (y/n) [n]? y
...........................................
Connection closed by foreign host
This example shows how to delete all the SNMP configuration information for the Catalyst 6500 series switches:
Console> (enable) clear config snmpv3
This command will clear SNMPv3 configuration in NVRAM.
Do you want to continue (y/n) [n]? y
...........................................
Connection closed by foreign host
This example shows how to delete all ACL configuration information from NVRAM:
Console> (enable) clear config acl nvram
ACL configuration has been deleted from NVRAM.
Warning:Use the copy commands to save the ACL configuration to a file
and the 'set boot config-register auto-config' commands to configure the
This example shows how to delete all system information logging configurations and return them to their default settings:
Console> (enable) clear config sysinfo-log
Successfully cleared the system information logging configuration.
This example shows how to clear both the system configuration and the profile configuration:
Console> (enable) clear config all factory-default
System configuration and profile configuration is cleared.
Related Commands
clear system info-log command
clear system profile
set config acl nvram
set system info-log
set system profile
show config qos acl
show system profile
clear config checkpoint
To clear all checkpoint configuration files or a particular configuration checkpoint file, use the clear config checkpoint command.
clear config checkpoint {all | name}
Syntax Description
all
|
Clears all configuration checkpoint files.
|
name
|
Name of a particular configuration checkpoint file to clear.
|
Defaults
This command has no default settings.
Command Modes
Switch command.
Command Types
Privileged.
Usage Guidelines
When a configuration checkpoint filename is cleared from the system, the associated checkpoint configuration file is deleted. You should squeeze the device to reclaim space.
The checkpoint configuration is not cleared when you enter the clear config all command.
Examples
This example shows how to clear all configuration checkpoint files:
Console> (enable) clear config checkpoint all
All configuration checkpoints cleared.
This example shows how to clear a particular configuration checkpoint file:
Console> (enable) clear config checkpoint SARAH_07122002
Cleared configuration checkpoint SARAH_07122002
Related Commands
set config checkpoint
set config rollback
show config checkpoints
clear config pvlan
To clear all private VLAN configurations in the system including port mappings, use the clear config pvlan command.
clear config pvlan
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear all private VLAN configurations in the system:
Console> (enable) clear config pvlan
This command will clear all private VLAN configurations.
Do you want to continue (y/n) [n]? y
Private VLAN configuration cleared.
Related Commands
clear pvlan mapping
clear vlan
configure
set vlan
set pvlan
set pvlan mapping
show config
show pvlan
show pvlan mapping
show vlan
clear cops
To clear Common Open Policy Service (COPS) configurations, use the clear cops command.
clear cops roles role1 [role2]...
clear cops all-roles
clear cops server all [diff-serv | rsvp]
clear cops server ipaddr [diff-serv | rsvp]
clear cops domain-name
Syntax Description
roles role#
|
Specifies the roles to clear.
|
all-roles
|
Clears all roles.
|
server
|
Specifies the COPS server.
|
all
|
Clears all server tables.
|
diff-serv
|
(Optional) Specifies the differentiated services server table.
|
rsvp
|
(Optional) Specifies the RSVP+ server table.
|
ipaddr
|
IP address or IP alias of the server.
|
domain-name
|
Specifies the domain name of the server.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can use the clear cops all-roles command to clear all roles from all ports.
Examples
This example shows how to clear specific roles:
Console> (enable) clear cops roles backbone_port main_port
This example shows how to clear all roles:
Console> (enable) clear cops all-roles
This example shows how to clear all COPS servers:
Console> (enable) clear cops server all
All COPS servers cleared.
This example shows how to clear a specific COPS server:
Console> (enable) clear cops server my_server1
All COPS servers cleared.
This example shows how to clear the COPS domain name:
Console> (enable) clear cops domain-name
Related Commands
set cops
show cops
clear counters
To clear MAC counters, EtherChannel MAC counters, port counters, and the channel traffic percentile, use the clear counters command.
clear counters all
clear counters mod/ports
clear counters supervisor
clear counters channel {all | channel_id}
clear counters lacp-channel {all | channel_id}
Syntax Description
all
|
Clears MAC and port counters for all ports.
|
mod/ports
|
Number of the module and the ports on the module.
|
supervisor
|
Clears error counters for the supervisor engine.
|
channel
|
Clears PAgP channel MAC and port counters.
|
all
|
Clears all PAgP channel counters.
|
channel_id
|
Number of a specific PAgP channel.
|
lacp-channel
|
Clears LACP channel counters.
|
all
|
Clears all LACP channel counters.
|
channel_id
|
Number of a specific LACP channel.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you do not specify a range of ports to be cleared, then all ports on the switch are cleared.
To clear channel-based counters on a per-channel basis, use the channel ID number. Enter the show port channel command to find the channel ID number for PAgP channels. Enter the show port lacp-channel command to find the channel ID number for LACP channels.
If you enter a channel-id argument that conflicts with the protocol type for the command, this message displays:
Wrong protocol type for the command.
If you enter a channel-id argument that is not in the correct channel-id range, this message displays:
Valid channel Id range 1665..1792.
Examples
This example shows how to reset MAC and port counters to zero:
Console> (enable) clear counters
This command will reset all MAC and port counters reported in CLI and SNMP.
Do you want to continue (y/n) [n]? y
MAC and Port counters cleared.
This example shows how to reset MAC and port counters to zero for a specific module and port:
Console> (enable) clear counters 5/1
This command will reset MAC and port counters reported by the CLI for port(s) 5/1.
Do you want to continue (y/n) [n]? y
MAC and Port counters cleared.
This example shows how to reset all PAgP channel counters:
Console> (enable) clear counters channel all
This command will reset MAC and port counters reported by the CLI for all ports.
Counters reported by SNMP will not be affected.
Do you want to continue (y/n) [n]? y
MAC and Port counters cleared.
This example shows how to reset the counters for a specific PAgP channel:
Console> (enable) clear counters channel 769
This command will reset MAC and port counters reported by the CLI for PAGP channel 769
Counters reported by SNMP will not be affected.
Do you want to continue (y/n) [n]? y
MAC and Port counters cleared.
Related Commands
restore counters
show channel traffic
show port channel
show port counters
show port lacp-channel
clear crypto key rsa
To remove all RSA public-key pairs, use the clear crypto key rsa command.
clear crypto key rsa
Syntax Description
This command has no keywords or arguments.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The crypto commands are supported on systems that run these image types only:
•
supk9 image—for example, cat6000-supk9.6-1-3.bin
•
supcvk9 image—for example, cat6000-supcvk9.6-1-3.bin
Examples
This example shows how to clear RSA key pairs:
Console> (enable) clear crypto key rsa
Do you really want to clear RSA keys (y/n) [n]? y
RSA keys has been cleared.
Related Commands
show crypto key
clear dhcp-snooping bindings
To clear DHCP snooping binding table entries, use the clear dhcp-snooping bindings command.
clear dhcp-snooping bindings [ip_addr] [mac_addr] [vlan vlan] [port mod/port]
Syntax Description
ip_addr
|
(Optional) IP address.
|
mac_addr
|
(Optional) MAC address.
|
vlan vlan
|
(Optional) Specifies the VLAN.
|
port mod/port
|
(Optional) Specifies the module number and the port on the module.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you do not enter any arguments of keywords, all DHCP-bindings are cleared.
You should use caution when using this command because clearing a binding can affect Dynamic ARP Inspection (DAI), IP Source Guard, and other features that depend on DHCP snooping.
Examples
This example shows how to clear the DHCP snooping bindings on a specific IP address:
Console> (enable) clear dhcp-snooping bindings 172.20.22.191
DHCP Snooping binding entries cleared.
This example shows how to clear the DHCP snooping bindings on a specific MAC address:
Console> (enable) clear dhcp-snooping bindings 0-0-0-0-0-1
DHCP Snooping binding entries cleared.
This example shows how to clear the DHCP snooping bindings on a specific VLAN:
Console> (enable) clear dhcp-snooping bindings vlan 2
DHCP Snooping binding entries cleared.
This example shows how to clear the DHCP snooping bindings on a specific port:
Console> (enable) clear dhcp-snooping bindings port 2/2
DHCP Snooping binding entries cleared.
Related Commands
set port dhcp-snooping
show dhcp-snooping bindings
clear dhcp-snooping statistics
To clear DHCP snooping statistics, use the clear dhcp-snooping statistics command.
clear dhcp-snooping statistics
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you use the clear dhcp-snooping statistics command, all statistics except the number of bindings are cleared. To clear the bindings see the clear dhcp-snooping bindings command.
Examples
This example shows how to clear the DHCP snooping statistics:
Console> (enable) clear dhcp-snooping statistics
DHCP Snooping statistics cleared
Related Commands
show dhcp-snooping statistics
clear diagnostic
To clear the online diagnostic test configuration, use the clear diagnostic command.
clear diagnostic bootup level
clear diagnostic event-log size
clear diagnostic monitor {interval module mod_num test {all | test_ID_num | test_list} | module
mod_num test {all | test_ID_num | test_list} | syslog}
clear diagnostic schedule module mod_num test {all | test_ID_num | test_list} {port {port_num |
port_range | all} daily hh:mm | on month days_of_month range_of_years hh:mm | weekly day
hh:mm}
Syntax Description
bootup level
|
Restores the diagnostic bootup level to bypass mode.
|
event-log size
|
Restores the diagnostic event log size to 500 events (default size).
|
monitor
|
Clears diagnostics monitoring.
|
interval module
|
Clears online diagnostic monitoring test intervals.
|
mod_num
|
Number of the module.
|
test
|
Specifies diagnostic tests.
|
all
|
Clears all online diagnostic tests.
|
test_ID_num
|
Number of a specific online diagnostic test.
|
test_list
|
List of tests to be cleared.
|
module
|
Disables diagnostic monitoring for a specific module.
|
syslog
|
Disables the syslog for online diagnostic tests.
|
schedule
|
Clears diagnostic test schedule
|
port
|
Specifies the ports on which the online diagnostic tests are run.
|
port_num
|
Number of the port.
|
port_range
|
Range of ports.
|
all
|
Specifies all ports.
|
daily
|
Specifies a daily schedule.
|
hh:mm
|
Hour and minute.
|
on
|
Specifies an absolute schedule.
|
month
|
Specifies the month.
|
days_of_month
|
Days of the month; valid values are from 1 to 31.
|
range_of_years
|
Range of years; valid values are from 1993-2035.
|
weekly
|
Specifies a weekly schedule.
|
day
|
Specifies a day of the week.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
Note
GOLD is supported on the Supervisor Engine 720 and the Supervisor Engine 32 only. Earlier diagnostic commands are still supported on the Supervisor Engine 1 and the Supervisor Engine 2.
Examples
This example shows how to clear the bootup online diagnostics level:
Console> (enable) clear diagnostic bootup level
Diagnostic level set to bypass
This example shows how to clear the online diagnostics event log size:
Console> (enable) clear diagnostic event-log size
Diagnostic event-log size set to default(500)
These examples show how to clear the online diagnostics monitoring configuration:
Console> (enable) clear diagnostic monitor interval module 7 test 3
Clear diagnostic monitor interval for module 7 test 3
Console> (enable) clear diagnostic monitor module 7 test 1
Module 7 test 1 diagnostic monitor disable.
Console> (enable) clear diagnostic monitor syslog
Diagnostic monitor syslog disable.
This example shows how to clear the online diagnostic scheduling configuration for tests 1 and 2 on module 7:
Console> (enable) clear diagnostic schedule module 7 test 1-2 daily 12:12
Clear diagnostic schedule at daily 12:12 for module 7 test 1-2
Related Commands
diagnostic start
diagnostic stop
set diagnostic bootup level
set diagnostic diagfail-action
set diagnostic event-log size
set diagnostic monitor
set diagnostic ondemand
set diagnostic schedule
show diagnostic
clear dot1x config
To disable 802.1X on all ports and return values to the default settings, use the clear dot1x config command.
clear dot1x config
Syntax Description
This command has no keywords or arguments.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to disable 802.1X and return values to the default settings:
Console> (enable) clear dot1x config
This command will disable Dot1x and take values back to factory default.
Do you want to continue (y/n) [n]? y
Related Commands
set port dot1x
show dot1x
show port dot1x
clear dot1x vlan-group
To clear a VLAN from a VLAN group, use the clear dot1x vlan-group command.
clear dot1x vlan-group {all | vlan_group_name [vlan | all]}
Syntax Description
all
|
Clears all 802.1X VLAN groups.
|
vlan_group_name
|
802.1X VLAN group to be cleared.
|
vlan
|
(Optional) VLAN number; valid values are from 1 to 4094.
|
all
|
(Optional) Clears all VLANs from the 802.1X VLAN group.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Types
Privileged.
Usage Guidelines
When an existing VLAN is cleared from the VLAN group name, none of the ports authenticated in the VLAN are cleared, but the mappings are removed from the existing VLAN group.
If you clear the last VLAN from the VLAN group name, the VLAN group is deleted.
You can clear a VLAN group even when active VLANs are mapped to the group. When a VLAN group is cleared, none of the ports or users that are in the authenticated state in any VLAN within the group are cleared, but the VLAN mappings to the VLAN group are cleared.
If you enter the clear dot1x vlan-group vlan_group_name command without a vlan value or the all keyword, the entire VLAN group is cleared.
Examples
This example shows how to clear a VLAN from a VLAN group:
Console> (enable) clear dot1x vlan-group engg-dept 4
Vlan 4 is successfully cleared from vlan group engg-dept
This example shows the message that displays when you clear the last VLAN from a VLAN group:
Console> (enable) clear dot1x vlan-group engg-dept 3
No active vlans are mapped to this vlan group engg-dept, Clearing this vlan group
This example shows how to clear an entire VLAN group:
Console> (enable) clear dot1x vlan-group engg-dept all
Dot1x vlan group engg-dept is cleared.
Related Commands
set dot1x
show dot1x
clear eou
To clear the Extensible Authentication Protocol over User Datagram Protocol (EoU) configuration, use the clear eou command.
clear eou all
clear eou config
clear eou authorize ip ip_addr [ip_mask] policy policy_name
clear eou authorize mac-address mac_addr [mac_mask] policy policy_name
clear eou clientless {password | username}
clear eou host {ip_addr | mac_addr}
clear eou max-retry
clear eou ratelimit
clear eou timeout {aaa | hold-period | retransmit | revalidate | status-query}
Syntax Description
all
|
Clears EoU sessions for all hosts.
|
config
|
Disables EoU on all ports and restores EoU parameters back to factory defaults.
|
authorize
|
Clears EoU authorization information.
|
ip
|
Clears the specified IP from the exception list.
|
ip_addr
|
IP address to be cleared.
|
ip_mask
|
(Optional) IP mask to be cleared.
|
policy
|
Clears a specified policy name.
|
policy_name
|
Policy name.
|
mac-address
|
Clears the specified MAC address.
|
mac_addr
|
MAC address to be cleared.
|
mac_mask
|
(Optional) MAC mask to be cleared.
|
clientless
|
Clears clientless password or username.
|
password
|
Clears the password.
|
username
|
Clears the username.
|
host
|
Clears the EoU session for the specified host.
|
max-retry
|
Clears maximum number of reattempts on a global basis.
|
ratelimit
|
Clears rate limit value on a global basis.
|
timeout
|
Restores timeout values to their default values on a global basis.
|
aaa
|
Clears EoU AAA timeout value.
|
hold-period
|
Clears EoU hold-period value.
|
retransmit
|
Clears EoU retransmit value.
|
revalidate
|
Clears EoU revalidate value.
|
status-query
|
Clears EoU status-query value.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear EoU sessions for all hosts:
Console> (enable) clear eou all
EOU sesssions of all hosts are cleared.
Console> (enable)
This example shows how to clear the current EoU configuration and to restore the EoU factory default settings:
Console> (enable) clear eou config
This command will disable EoU on all ports and take EoU parameter values back to
Do you want to continue (y/n) [n]? y
This example shows how to clear an EOU session for a host with a specified IP address:
Console> (enable) clear eou host 9.9.10.10
EOU session of host with IP 9.9.10.10 cleared.
This example shows how to clear an IP address from an exception group:
Console> (enable) clear eou authorize ip 10.1.1.1 255.255.255.240 policy pol1
Cleared host 10.1.1.1 255.255.255.240 from exception group and removed its policy mapping.
Related Commands
set eou
clear eou
set security acl ip
show eou
show port eou
clear ethernet-cfm
To clear Connectivity Fault Management (CFM) parameters, use the clear ethernet-cfm command.
clear ethernet-cfm continuity-check level level vlan vlan
clear ethernet-cfm domain domain_name level level
Syntax Description
continuity-check
|
Clears CFM continuity-check (CC) information.
|
level level
|
Specifies the maintenance level; valid values are from 0 to 7.
|
vlan vlan
|
Specifies a VLAN or range of VLANs; valid values are from 1 to 4094.
|
domain domain_name
|
Clears the particular CFM domain.
|
Defaults
This command restores all CFM parameters to their defaults.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear an Ethernet CFM continuity-check level on a VLAN:
Console> (enable) clear ethernet-cfm continuity-check level 3 vlan 1
cc attributes are cleared for level(s) 3
This example shows how to clear an Ethernet CFM domain:
Console> (enable) clear ethernet-cfm domain test level 1
Domain test is cleared from level 1.
This example shows how to clear an Ethernet CFM VLAN from a domain:
Console> (enable) clear ethernet-cfm vlan 1 domain test
vlan 1 is cleared from domain test
Related Commands
set ethernet-cfm continuity-check
set ethernet-cfm continuity-check level
set ethernet-cfm domain
show ethernet-cfm continuity-check statistics
show ethernet-cfm domain
clear ethernet-cfm maintenance-association
To clear the maintenance association configured within the maintenance domain, use the clear ethernet-cfm maintenance-association command.
clear ethernet-cfm maintenance-association domain domain-name
clear ethernet-cfm maintenance-association ma-name-fmt ma_fmt ma-name domain
domain-name
Syntax Description
ma-name-fmt ma_fmt ma-name
|
Specifies the maintenance association name used to construct the Maintenance Association ID (MAID) to be used in CFM frames.
|
domain domain-name
|
Specifies the maintenance domain where the maintenance association is configured.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
All the Maintenance End Points (MEPs) associated with the maintenance association have to be cleared before the maintenance association can be cleared.
Examples
This example shows how to clear the maintenance association, customerXYA in customerXYADomain:
Console> (enable) clear ethernet-cfm maintenance-association ma-name-fmt text customerXYA
Maintenance Association is cleared from domain customerXYADomain
Related Commands
set ethernet-cfm maintenance-association
show ethernet-cfm maintenance-association
clear ethernet-cfm port-mac-enable
To clear the port MAC configuration for Maintenance End Points (MEPs) that are down in a particular module and port number of a VLAN, use the clear ethernet-cfm port-mac-enable command.
clear ethernet-cfm port-mac-enable mNo/pNo vlan vlans
Syntax Description
mNo/pNo
|
Module number and port number.
|
vlan vlans
|
Specifies the VLAN ID. Range: 1 to 4094.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
None.
Examples
This example shows how to clear the port MAC configuration for MEPs that are down in module 2, port 14 and VLAN ID 10:
Console> (enable) clear ethernet-cfm port-mac-enable 2/14 vlan 10
Successfully deleted entries for port(s) 2/14 vlan(s) 10
Related Commands
set ethernet-cfm port-mac-enable
show ethernet-cfm port-mac-enable
clear ethernet-cfm statistics
To clear the Connectivity Fault Management (CFM) statistics, use the clear ethernet-cfm statistics command.
clear ethernet-cfm statistics [mpid mpid]
Syntax Description
statistics
|
Clears CFM CC statistics.
|
mpid mpid
|
(Optional) Specifies the Maintenance Point Identifier (MPID). Valid values are from 1 to 8191.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you do not specify the MPID, CFM statistics are cleared for all Maintenance End Points (MEPs).
Examples
This example shows how to clear the CFM statistics for MPID 3033:
Console> (enable) clear ethernet-cfm statistics mpid 3033
Ethernet-cfm statistics cleared for mpid 3033.
Related Commands
show ethernet-cfm statistics
clear ethernet-cfm traceroute-database
To clear the contents of the traceroute database, use the clear ethernet-cfm traceroute-database command.
clear ethernet-cfm traceroute-database
clear ethernet-cfm traceroute-database hold-time
clear ethernet-cfm traceroute-database size
Syntax Description
traceroute-database
|
Clears Connectivity Fault Management (CFM) traceroute database information.
|
hold-time
|
Specifies the hold time of the traceroute-database.
|
size
|
Specifies the size of the traceroute-database.
|
Defaults
size=100
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the contents of the traceroute database:
Console> (enable) clear ethernet-cfm traceroute-database
Traceroute database entries cleared.
Console> (enable)
This example shows how to clear the hold time of the traceroute database:
Console> (enable) clear ethernet-cfm traceroute-database hold-time
Ethernet TRDB Hold time is cleared and set to default.
Console> (enable)
This example shows how to clear the size of the traceroute database:
Console> (enable) clear ethernet-cfm traceroute-database size
Ethernet TRDB Size cleared and set to default.
Console> (enable)
Related Commands
set ethernet-cfm traceroute-database
show ethernet-cfm traceroute-database
clear ethernet-evc
To clear the Ethernet Virtual Connections (EVC) configured in the system, use the clear ethernet-evc command.
clear ethernet-evc [evc_id]
Syntax Description
evc_id
|
(Optional) ID of the EVC.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you specify the EVC ID, only the specified EVC is cleared from the system. The User to Network Interfaces (UNI) associated to an EVC are not cleared.
Examples
This example shows how to clear an Ethernet EVC1:
Console> (enable) clear ethernet-evc EVC1
EVC1 is successfully cleared.
Related Commands
set ethernet-evc
show ethernet-evc
clear ftp
To clear File Transfer Protocol (FTP) parameters, use the clear ftp command.
clear ftp [username | password]
Syntax Description
username
|
(Optional) Clears the username for FTP connections.
|
password
|
(Optional) Clears the password for FTP connections.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you do not enter any keywords, the system clears all FTP parameters.
Examples
This example shows how to clear the username for FTP connections:
Console> (enable) clear ftp username
This example shows how to clear the password for FTP connections:
Console> (enable) clear ftp password
Related Commands
set ftp
show ftp
clear gmrp statistics
To clear all the GARP Multicast Registration Protocol (GMRP) statistics information from a specified VLAN or all VLANs, use the clear gmrp statistics command.
clear gmrp statistics {vlan | all}
Syntax Description
vlan
|
Number of the VLAN; valid values are from 1 to 4094.
|
all
|
Specifies all VLANs.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear GMRP statistical information from all VLANs:
Console> (enable) clear gmrp statistics all
This example shows how to clear GMRP statistical information from VLAN 1:
Console> (enable) clear gmrp statistics 1
GMRP statistics cleared from VLAN 1.
Related Commands
show gmrp statistics
clear gvrp statistics
To clear all the GVRP statistics information, use the clear gvrp statistics command.
clear gvrp statistics {mod/port | all}
Syntax Description
mod/port
|
Number of the module and port.
|
all
|
Specifies all ports.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear all GVRP statistical information:
Console> (enable) clear gvrp statistics all
GVRP statistics cleared for all ports.
This example shows how to clear GVRP statistical information for module 2, port 1:
Console> (enable) clear gvrp statistics 2/1
GVRP statistics cleared on port 2/1.
Related Commands
set gvrp
show gvrp configuration
clear igmp statistics
To clear IGMP snooping statistical information, use the clear igmp statistics command.
clear igmp statistics
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear IGMP statistical information:
Console> (enable) clear igmp statistics
Related Commands
set igmp
show igmp statistics
clear ip alias
To clear IP aliases that were set using the set ip alias command, use the clear ip alias command.
clear ip alias {name | all}
Syntax Description
name
|
IP address alias to delete.
|
all
|
Specifies that all previously set IP address aliases be deleted.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to delete a previously defined IP alias named babar:
Console> (enable) clear ip alias babar
Related Commands
set ip alias
show ip alias
clear ip dns domain
To clear the default DNS domain name, use the clear ip dns domain command.
clear ip dns domain
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the default DNS domain name:
Console> (enable) clear ip dns domain
Default DNS domain name cleared.
Related Commands
set ip dns domain
show ip dns
clear ip dns server
To remove a DNS server from the DNS server listing, use the clear ip dns server command.
clear ip dns server {ip_addr | all}
Syntax Description
ip_addr
|
IP address of the DNS server you want to remove. An IP alias or a host name that can be resolved through DNS can also be used.
|
all
|
Specifies all the IP addresses in the DNS server listing to be removed.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove the DNS server at IP address 198.92.30.32 from the DNS server listing:
Console> (enable) clear ip dns server 198.92.30.32
198.92.30.32 cleared from DNS table.
This example shows how to remove all DNS servers from the DNS server listing:
Console> (enable) clear ip dns server all
Related Commands
set ip dns server
show ip dns
clear ip permit
To remove a specified IP address and mask or all IP addresses and masks from the permit list, use the clear ip permit command.
clear ip permit all
clear ip permit {ip_addr} [mask] [telnet | ssh | snmp | all]
Syntax Description
ip_addr
|
IP address to be cleared. An IP alias or a host name that can be resolved through DNS can also be used.
|
mask
|
(Optional) Subnet mask of the specified IP address.
|
telnet
|
(Optional) Clears the entries in the Telnet permit list.
|
ssh
|
(Optional) Clears the entries in the SSH permit list.
|
snmp
|
(Optional) Clears the entries in the SNMP permit list.
|
all
|
(Optional) Clears all permit lists.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The clear ip permit all command clears the permit list but does not change the state of the IP permit feature. A warning is displayed if all IP addresses are cleared from the permit list, and the feature is enabled. If a mask other than the default (255.255.255.255) has been configured, you must provide both the address and mask to clear a specific entry.
If the telnet, ssh, snmp, or all keyword is not specified, the IP address is removed from both the SNMP and Telnet permit lists.
Examples
These examples show how to remove IP addresses:
Console> (enable) clear ip permit 172.100.101.102
172.100.101.102 cleared from IP permit list.
Console> (enable) clear ip permit 172.160.161.0 255.255.192.0 snmp
172.160.128.0 with mask 255.255.192.0 cleared from snmp permit list.
Console> (enable) clear ip permit 172.100.101.102 telnet
172.100.101.102 cleared from telnet permit list.
Console> (enable) clear ip permit all
IP permit list is still enabled.
Related Commands
set ip permit
show ip permit
clear ip route
To delete IP routing table entries, use the clear ip route command.
clear ip route destination gateway
Syntax Description
destination
|
IP address of the host or network. An IP alias or a host name that can be resolved through DNS can also be used.
|
gateway
|
IP address or alias of the gateway router.
|
Defaults
The default is destination. If the destination is not the active default gateway, the actual destination is the default.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to delete the routing table entries using the clear ip route command:
Console> (enable) clear ip route 134.12.3.0 elvis
Related Commands
set ip route
show ip route
clear kerberos clients mandatory
To disable mandatory Kerberos authentication for services on the network, use the clear kerberos clients mandatory command.
clear kerberos clients mandatory
Syntax Description
This command has no arguments or keywords.
Defaults
Kerberos clients are not set to mandatory.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you do not make Kerberos authentication mandatory and Kerberos authentication fails, the application attempts to authenticate users using the default method of authentication for that network service. For example, Telnet prompts for a password.
Examples
This example shows how to clear mandatory Kerberos authentication:
Console> (enable) clear kerberos clients mandatory
Kerberos clients mandatory cleared
Related Commands
set kerberos clients mandatory
show kerberos
clear kerberos credentials forward
To disable credentials forwarding, use the clear kerberos credentials forward command.
clear kerberos credentials forward
Syntax Description
This command has no arguments or keywords.
Defaults
The default is forwarding is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you have a ticket granting ticket (TGT) and are authenticated to a Kerberized switch, you can use the TGT to authenticate to a host on the network. If forwarding is not enabled and you try to list credentials after authenticating to a host, the output will show no Kerberos credentials are present.
Examples
This example shows how to disable Kerberos credentials forwarding:
Console> (enable) clear kerberos credentials forward
Kerberos credentials forwarding disabled
Related Commands
set kerberos clients mandatory
set kerberos credentials forward
show kerberos
clear kerberos creds
To delete all the Kerberos credentials, use the clear kerberos creds command.
clear kerberos creds
Syntax Description
This command has no arguments or keywords.
Defaults
The command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you have a TGT and are authenticated to a Kerberized switch, you can use the TGT to authenticate to a host on the network.
Examples
This example shows how to delete all Kerberos credentials:
Console> (enable) clear kerberos creds
Related Commands
set kerberos credentials forward
show kerberos
clear kerberos realm
To clear an entry that maps the name of a Kerberos realm to a DNS domain name or a host name, use the clear kerberos realm command.
clear kerberos realm {dns_domain | host} kerberos_realm
Syntax Description
dns_domain
|
DNS domain name to map to a Kerberos realm.
|
host
|
IP address or name to map to a Kerberos realm.
|
kerberos_realm
|
IP address or name of a Kerberos realm.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can map the name of a Kerberos realm to a DNS domain name or a host name with the set kerberos realm command.
Examples
This example shows how to clear an entry mapping a Kerberos realm to a domain name:
Console> (enable) clear kerberos realm CISCO CISCO.COM
Kerberos DnsDomain-Realm entry CISCO - CISCO.COM deleted
Related Commands
set kerberos local-realm
set kerberos realm
show kerberos
clear kerberos server
To clear a specified Key Distribution Center (KDC) entry, use the clear kerberos server command.
clear kerberos server kerberos_realm {hostname | ip_address} [port_number]
Syntax Description
kerberos_realm
|
Name of a Kerberos realm.
|
hostname
|
Name of the host running the KDC.
|
ip_address
|
IP address of the host running the KDC.
|
port_number
|
(Optional) Number of the port on the module.
|
Defaults
This command has no default settings.
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 750
Kerberos Realm-Server-Port entry CISCO.COM-187.0.2.1-750 deleted
Related Commands
set kerberos server
show kerberos
clear key config-key
To remove a private 3DES key, use the clear key config-key command.
clear key config-key string
Syntax Description
string
|
Name of the 3DES key; the name should be no longer than eight bytes.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove a private 3DES key:
Console> (enable) clear key config-key abcd
Kerberos config key deleted
Related Commands
set key config-key
clear l2protocol-tunnel cos
To clear the Layer 2 protocol tunneling CoS value for all ingress tunneling ports, use the clear l2protocol-tunnel cos command.
clear l2protocol-tunnel cos
Syntax Description
This command has no arguments or keywords.
Defaults
The CoS value is restored to 5.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the Layer 2 protocol tunneling CoS value:
Console> (enable) clear l2protocol-tunnel cos
Related Commands
clear l2protocol-tunnel statistics
set l2protocol-tunnel cos
set port l2protocol-tunnel
show l2protocol-tunnel statistics
show port l2protocol-tunnel
clear l2protocol-tunnel statistics
To clear Layer 2 protocol tunneling statistics on a port or on all tunneling ports, use the clear l2protocol-tunnel statistics command.
clear l2protocol-tunnel statistics [mod/port]
Syntax Description
mod/port
|
(Optional) Number of the module and port on the module. See the "Usage Guidelines" section for more information.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you do not specify a module and port number, the Layer 2 protocol tunneling statistics for all tunneling ports and all VLANs are cleared.
Examples
This example shows how to clear the Layer 2 protocol tunneling statistics for a single port:
Console> (enable) clear l2protocol-tunnel statistics 7/1
Layer 2 Protocol Tunneling statistics cleared on port 7/1.
Related Commands
clear l2protocol-tunnel cos
set l2protocol-tunnel cos
set port l2protocol-tunnel
show l2protocol-tunnel statistics
show port l2protocol-tunnel
clear lacp-channel statistics
To clear Link Aggregation Control Protocol (LACP) statistical information, use the clear lacp-channel statistics command.
clear lacp-channel statistics
Syntax Description
This command has no keywords or arguments.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Normal.
Usage Guidelines
For differences between PAgP and LACP, refer to the "Guidelines for Port Configuration" section of the "Configuring EtherChannel" chapter of the Catalyst 6500 Series Switch Software Configuration Guide.
Examples
This example shows how to clear LACP statistical information:
Console> (enable) clear lacp-channel statistics
LACP channel counters are cleared.
Related Commands
set channelprotocol
set lacp-channel system-priority
set port lacp-channel
set spantree channelcost
set spantree channelvlancost
show lacp-channel
show port lacp-channel
clear lda
To remove the accelerated server load balancing (ASLB) multilayer switching (MLS) entries or MAC addresses from the switch, use the clear lda command.
clear lda mls
clear lda mls [destination ip_addr_spec] [source ip_addr_spec] [protocol protocol
src-port src_port dst-port dst_port]
clear lda vip {all | vip | vip tcp_port}
clear lda mac {all | router_mac_address}
Syntax Description
mls
|
Removes a LocalDirector Accelerator (LDA) MLS entry.
|
destination ip_addr_spec
|
(Optional) Full destination IP address or a subnet address in these formats: ip_addr, ip_addr/netmask, or ip_addr/maskbit.
|
source ip_addr_spec
|
(Optional) Full source IP address or a subnet address in these formats: ip_addr, ip_addr/netmask, or ip_addr/maskbit.
|
protocol protocol
|
(Optional) Specifies additional flow information (protocol family and protocol port pair) to be matched; valid values include tcp, udp, icmp, or a decimal number for other protocol families.
|
src-port src_port
|
(Optional) Specifies the number of the TCP/UDP source port (decimal). Used with dst-port to specify the port pair if the protocol is tcp or udp. 0 indicates "do not care."
|
dst-port dst_port
|
(Optional) Specifies the number of the TCP/UDP destination port (decimal). Used with src-port to specify the port pair if the protocol is tcp or udp. 0 indicates "do not care."
|
vip all
|
Removes all VIP couples (set using the set lda command).
|
vip vip
|
Specifies a VIP.
|
vip vip tcp_port
|
Specifies a VIP and port couple.
|
mac all
|
Clears all ASLB router MAC addresses.
|
mac router_mac_ address
|
Clears a specific router MAC address.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported only on switches configured with the Supervisor Engine 1 with Layer 3 Switching Engine WS-F6K-PFC (Policy Feature Card).
Entering the destination keyword specifies the entries matching the destination IP address specification, entering the source keyword specifies the entries matching the source IP address specification, and entering an ip_addr_spec can specify a full IP address or a subnet address. If you do not specify a keyword, it is treated as a wildcard, and all entries are displayed.
When entering the ip_addr_spec, use the full IP address or a subnet address in one of the following formats: ip_addr, ip_addr/netmask, or ip_addr/maskbit.
If you do not enter any keywords, the LD is removed from the switch, and the LD configuration is removed from NVRAM.
If you do not enter any keywords with the clear lda mls command, all ASLB MLS entries are cleared.
Examples
This example shows how to clear the ASLB MLS entry at a specific destination address:
Console> (enable) clear lda mls destination 172.20.26.22
This example shows how to delete a VIP and port pair (VIP 10.0.0.8, port 8):
Console> (enable) clear lda vip 10.0.0.8 8
Successfully deleted vip/port pairs.
This example shows how to clear all ASLB router MAC addresses:
Console> (enable) clear lda mac all
Successfully cleared Router MAC address.
This example shows how to clear a specific ASLB router MAC address:
Console> (enable) clear lda mac 1-2-3-4-5-6
Successfully cleared Router MAC address.
Related Commands
commit lda
set lda
show lda
clear localuser
To delete a local user account from the switch, use the clear localuser command.
clear localuser name
Syntax Description
name
|
Specifies the local user account.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to delete a local user account:
Console> (enable) clear localuser troy
Related Commands
set localuser
show localuser
clear log
To delete module, system error log, or dump log entries, use the clear log command.
clear log [mod]
clear log dump
Syntax Description
mod
|
(Optional) Module number.
|
dump
|
Clears dump log entries.
|
Defaults
This command has no default settings.
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 log
System error log cleared.
This example shows how to clear the dump log:
Console> (enable) clear log dump
Related Commands
show log
clear log command
To clear the command log entry table, use the clear log command command.
clear log command [mod]
Syntax Description
mod
|
(Optional) Number of the module.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The command log entry table is a history log of the commands sent to the switch from the console or Telnet.
Examples
This example shows how to clear the command log table for the switch:
Console> (enable) clear log command
This example shows how to clear the command log table for the supervisor engine:
Console> (enable) clear log command 5
Related Commands
show log command
clear logging buffer
To clear the system logging buffer, use the clear logging buffer command.
clear logging buffer
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the system logging buffer:
Console> (enable) clear logging buffer
System logging buffer cleared.
Related Commands
show logging buffer
clear logging callhome
To retore the CallHome default values or to clear a destination address used in the CallHome feature, use the clear logging callhome command.
clear logging callhome all
clear logging callhome destination {E_addr | all}
Syntax Description
all
|
Restores default values for CallHome functionality.
|
destination
|
Clears destination address for CallHome messages.
|
E_addr
|
E-mail or E-pager address to receive syslog messages.
|
all
|
Clears all destination addresses.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to restore all default values for CallHome functionality:
Console> (enable) clear logging callhome all
Removed all addresses from the callhome destination address table.
Cleared the from address field of callhome messages.
Cleared the reply-to address field of callhome messages.
Cleared callhome severity level to its default value of 2 (LOG_CRIT).
Removed all IP address from the callhome SMTP server table.
Callhome functionality is disabled.
This example shows how to clear the destination address adminboss@cisco.com from the list of addresses receiving CallHome messages:
Console> (enable) clear logging callhome destination adminboss@cisco.com
Removed adminboss@cisco.com from the table of callhome destination addresses.
This example shows how to clear all destination addresses from the list of addresses receiving CallHome messages:
Console> (enable) clear logging callhome destination all
Removed all addresses from the callhome destination address table.
Related Commands
clear logging callhome from
clear logging callhome reply-to
clear logging callhome severity
clear logging callhome smtp-server
set logging callhome
set logging callhome destination
set logging callhome from
set logging callhome reply-to
set logging callhome severity
set logging callhome smtp-server
show logging callhome
show logging callhome destination
clear logging callhome from
To clear the From address used by the CallHome feature, use the clear logging callhome from command.
clear logging callhome from
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the From address:
Console> (enable) clear logging callhome from
Cleared the from address field of callhome messages.
Related Commands
clear logging callhome
clear logging callhome reply-to
clear logging callhome severity
clear logging callhome smtp-server
set logging callhome
set logging callhome destination
set logging callhome from
set logging callhome reply-to
set logging callhome severity
set logging callhome smtp-server
show logging callhome
show logging callhome from
clear logging callhome reply-to
To clear the Reply-to address used by the CallHome feature, use the clear logging callhome reply-to command.
clear logging callhome reply-to
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the Reply-to address:
Console> (enable) clear logging callhome reply-to
Cleared the reply-to address field of callhome messages.
Related Commands
clear logging callhome
clear logging callhome from
clear logging callhome severity
clear logging callhome smtp-server
set logging callhome
set logging callhome destination
set logging callhome from
set logging callhome reply-to
set logging callhome severity
set logging callhome smtp-server
show logging callhome
show logging callhome reply-to
clear logging callhome severity
To clear the severity level used by the CallHome feature and return it to the default value of 2, use the clear logging callhome severity command.
clear logging callhome severity
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the CallHome severity:
Console> (enable) clear logging callhome severity
Cleared callhome severity level to its default value of 2(LOG_CRIT).
Related Commands
clear logging callhome
clear logging callhome from
clear logging callhome reply-to
clear logging callhome smtp-server
set logging callhome
set logging callhome destination
set logging callhome from
set logging callhome reply-to
set logging callhome severity
set logging callhome smtp-server
show logging callhome
show logging callhome severity
show logging callhome smtp-server
clear logging callhome smtp-server
To clear an SMTP server from the list of CallHome SMTP servers, use the clear logging callhome smtp-server command.
clear logging callhome smtp-server {IP_addr | all}
Syntax Description
IP_addr
|
IP address of the SMTP server.
|
all
|
Clears all IP addresses.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the SMTP server 172.20.8.16 from the list of CallHome servers:
Console> (enable) clear logging callhome smtp-server 172.20.8.16
Removed 172.20.8.16 from the table of callhome SMTP servers.
This example shows how to clear all IP addresses from the list of CallHome servers:
Console> (enable) clear logging callhome smtp-server all
Removed all addresses from the callhome SMTP server table.
Related Commands
clear logging callhome
clear logging callhome from
clear logging callhome reply-to
clear logging callhome severity
set logging callhome
set logging callhome destination
set logging callhome from
set logging callhome reply-to
set logging callhome severity
set logging callhome smtp-server
show logging callhome
show logging callhome smtp-server
clear logging level
To reset the logging level for a facility or for all facilities to their default settings, use the clear logging level command.
clear logging level {facility | all}
Syntax Description
facility
|
Name of the facility to reset; facility types are listed in Table 2-1.
|
all
|
Resets all facilities.
|
Table 2-1 Facility Types
Facility Name
|
Definition
|
all
|
All facilities
|
acl
|
access control list
|
cdp
|
Cisco Discovery Protocol
|
cops
|
Common Open Policy Service Protocol
|
dtp
|
Dynamic Trunking Protocol
|
dvlan
|
Dynamic VLAN
|
earl
|
Enhanced Address Recognition Logic
|
filesys
|
file system facility
|
gvrp
|
GARP VLAN Registration Protocol
|
ip
|
Internet Protocol
|
kernel
|
Kernel
|
ld
|
ASLB facility
|
mcast
|
Multicast
|
mgmt
|
Management
|
mls
|
Multilayer Switching
|
pagp
|
Port Aggregation Protocol
|
protfilt
|
Protocol Filter
|
pruning
|
VTP pruning
|
privatevlan
|
Private VLAN facility
|
qos
|
Quality of Service
|
radius
|
Remote Access Dial-In User Service
|
rsvp
|
ReSerVation Protocol
|
security
|
Security
|
snmp
|
Simple Network Management Protocol
|
spantree
|
Spanning Tree Protocol
|
sys
|
System
|
tac
|
Terminal Access Controller
|
tcp
|
Transmission Control Protocol
|
telnet
|
Terminal Emulation Protocol
|
tftp
|
Trivial File Transfer Protocol
|
udld
|
User Datagram Protocol
|
vmps
|
VLAN Membership Policy Server
|
vtp
|
Virtual Terminal Protocol
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to reset a specific facility back to its default settings:
Console> (enable) clear logging level dtp
Current session and default severities of facility <dtp> set to factory default values.
This example shows how to reset all facilities back to their default settings:
Console> (enable) clear logging level all
Current session and default severities of all facilities set to factory default values.
Related Commands
set logging level
show logging
clear logging server
To delete a syslog server from the system log server table, use the clear logging server command.
clear logging server ip_addr
Syntax Description
ip_addr
|
IP address of the syslog server to be deleted.
|
Defaults
This command has no default settings.
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 171.69.192.207
System log server 171.69.192.207 removed from system log server table.
Related Commands
set logging server
show logging
clear macro
To clear user-defined SmartPorts macros, use the clear macro command.
clear macro name macro_name
clear macro all
clear macro variable {all | variable_name [mod/port]}
Syntax Description
name
|
Clears a user-defined SmartPorts macro.
|
macro_name
|
Name of the macro.
|
all
|
Clears all user-defined SmartPorts macros.
|
variable
|
Clears a user-defined SmartPorts variable.
|
all
|
Clears all user-defined variables on all ports.
|
variable_name
|
Name of the variable.
|
mod/port
|
(Optional) Number of the module and the port on the module.
|
Command Default
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you clear a macro using the clear macro name name_of_macro command, you clear the commands from the macro and remove the macro from the switch. The configurations that were applied using the macro that is being cleared are retained. If the macro that is being cleared is using any variables, and if the variables are not being used by any other macros, the variables are automatically cleared.
Examples
This example shows how to clear a specific macro and its variables (when those variables are not used by other macros):
Console> (enable) clear macro name videophone
Clearing macro videophone....
Cleared Macro videophone ....
This example shows how to clear all macros and their variables:
Console> (enable) clear macro all
This example shows a specific variable from all ports:
Console> (enable) clear macro variable $DATAVLAN
Clearing variable $DATAVLAN for all mod/ports...
Deleting Variable: DATAVLAN ...
Cleared variable DATAVLAN
This example shows how to clear a specific macro from a specific port:
Console> (enable) clear macro variable $AUXVLAN 3/7
Clearing variable $AUXVLAN for mod/port.3/7..
This example shows how to clear all macro variables from all ports:
Console> (enable) clear macro variable all
Clearing all variables for all mod/ports...
All variables in the switch are cleared
Related Commands
set macro
set port macro
show macro
clear mac utilization
To clear the MAC utilization counters, use the clear mac utilization command.
clear mac utlization [mod/port]
Syntax Description
mod/port
|
(Optional) Number of the module and the port on the module.
|
Command Default
No default.
Command Types
Switch command.
Command Modes
Enabled.
Examples
This example shows how to clear MAC utilization counters for a port:
Console> (enable) clear mac utilization 1/1
Mac utilization counters are cleared for the port 1/1.
This example shows how to clear MAC utilization counters for a module:
Console> (enable) clear mac utilization 1
Module 1 mac utilization counters are cleared.
This example shows how to clear MAC utilization counters globally:
Console> (enable) clear mac utilization
Mac utilization counters are cleared
Related Commands
set mac utilization load-interval
clear mac utilization
clear mls cef
To clear Cisco Express Forwarding (CEF) summary statistics, use the clear mls cef command.
clear mls cef
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported on Catalyst 6500 series switches configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2) only.
Examples
This example shows how to clear CEF summary information:
Console> (enable) clear mls cef
Console> (enable)
Related Commands
show mls cef summary
clear mls cef rpf statistics
To clear the counters for packets and bytes that failed the hardware RPF check, use the clear mls cef rpf statistics command.
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command only clears the counters related to the hardware RPF check. To configure RPF, you must access the CLI on the MSFC. For more information about accessing the CLI on the MSFC, refer to the "Command Line Interface" chapter of the Catalyst 6500 Series MSFC Cisco IOS Command Reference, 12.2SX.
Examples
This example shows how to clear MLS CEF RPF statistics:
Console> (enable) clear mls cef rpf statistics
Related Commands
show mls cef rpf
clear mls entry
To clear MLS entries in the Catalyst 6500 series switches, use the clear mls entry command.
clear mls entry [ip | ipx] all
clear mls entry ip destination ip_addr_spec [source ip_addr_spec] [protocol protocol]
[src-port src_port] [dst-port dst_port]
clear mls entry ipx destination ipx_addr_spec
Syntax Description
ip
|
(Optional) Specifies IP MLS.
|
ipx
|
(Optional) Specifies IPX MLS.
|
all
|
Clears all MLS entries.
|
destination
|
Specifies the destination IP address.
|
ip_addr_spec
|
Full IP address or a subnet address in these formats: ip_addr, ip_addr/netmask, or ip_addr/maskbit.
|
source ip_addr_spec
|
(Optional) Specifies the source IP address.
|
protocol protocol
|
(Optional) Specifies additional flow information (protocol family and protocol port pair) to be matched; valid values are 0 to 255 or ip, ipinip, icmp, igmp, tcp, and udp.
|
src-port src_port
|
(Optional) Specifies the source port IP address; valid values are 1 to 65535, dns, ftp, smtp, telnet, x (X-Windows), www.
|
dst-port dst_port
|
(Optional) Specifies the destination port IP address; valid values are 1 to 65535, dns, ftp, smtp, telnet, x (X-Windows), www.
|
ipx_addr_spec
|
Full IPX address or a subnet address in these formats: src_net/[mask], dest_net.dest_node, or dest_net/mask.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is not supported on systems configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2). To clear entries on systems configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2), you must enter the clear mls entry cef command.
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)
Up to 16 routers can be included explicitly as MLS-RPs.
To use a router as an MLS, you must meet these conditions:
•
The router must be included (either explicitly or automatically) in the MLS-SE.
•
The MLS feature must be enabled in the Catalyst 6500 series switches.
•
The Catalyst 6500 series switches must know the router's MAC-VLAN pairs.
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.
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.
If no value or 0 is entered for src_port and dest_port, all entries are cleared.
When you remove a Multilayer Switch Module (MSM) from the Catalyst 6500 series switch, it is removed immediately from the inclusion list and all the MLS entries for the MSM are removed.
Examples
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.
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
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
Related Commands
show mls entry
clear mls entry cef
To clear CEF adjacency statistics, use the clear mls entry cef command.
clear mls entry cef adjacency
clear mls entry cef ip [[ip_addr]/mask_len] adjacency
clear mls entry cef ipx [[ipx_addr]/mask_len] adjacency
Syntax Description
ip
|
Specifies IP entries.
|
ipx
|
Specifies IPX entries.
|
ip_addr
|
(Optional) IP address of the entry.
|
/mask_len
|
(Optional) Mask length associated with the IP or IPX address of the entry; valid values are from 0 to 32.
|
ipx_addr
|
(Optional) IPX address of the entry.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported on Catalyst 6500 series switches configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2).
To clear MLS entries on systems configured with the Supervisor Engine 1 with Layer 3 Switching Engine WS-F6K-PFC (Policy Feature Card), enter the clear mls entry command.
The ipx_addr value is entered as 32-bit hexadecimal digits.
Examples
This example shows how to clear all adjacencies associated with CEF entries:
Console> (enable) clear mls cef entry adjacency
Adjacency statistics has been cleared.
Related Commands
show mls entry cef
clear mls exclude protocol
To remove a protocol port that has been excluded from shortcutting using the set mls exclude protocol command, use the clear mls exclude protocol command.
clear mls exclude protocol tcp | udp | both port
Syntax Description
tcp
|
Specifies a TCP port.
|
udp
|
Specifies a UDP port.
|
both
|
Specifies that the port be applied to both TCP and UDP traffic.
|
port
|
Number of the port.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to set TCP packets in a protocol port to be hardware switched:
Console> (enable) clear mls exclude protocol tcp 25
TCP packets with protocol port 25 will be MLS switched.
Related Commands
set mls exclude protocol
show mls exclude protocol