Table Of Contents
clear banner motd
clear boot
clear cam
clear cgmp statistics
clear channel statistics
clear config
clear cops
clear counters
clear dot1x config
clear drip statistics
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
2
clear banner motd
Use the clear banner motd command to clear the message-of-the-day banner.
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.
Usage Guidelines
You can use either the clear banner motd command or the set banner motd ## command to clear the message-of-the-day banner.
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
Use the clear boot command to clear the contents of the BOOT environment variable and the configuration register setting.
clear boot system all [mod]
clear boot system flash device:[filename] [mod]
clear boot auto-config [mod]
Syntax Description
all
|
Keyword to clear the whole BOOT environment variable.
|
mod
|
(Optional) Module number of the supervisor engine on which to clear the BOOT environment variable.
|
flash
|
Keyword to specify the Flash file system.
|
device:
|
Valid devices include bootflash, slot0, and slot1.
|
filename
|
(Optional) Filename of the system image on the Flash device.
|
auto-config
|
Keyword to specify the auto-config file.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you want to rearrange the booting order, you can use the prepend keyword with the set boot system command or you can clear the entire BOOT environment variable using the clear boot system command and then redefine the list.
This command is supported on the Supervisor Engine III only.
Examples
This example shows how to clear the contents of the Flash device:
Console> (enable) clear boot system all
This example shows how to clear the auto-config file:
Console> (enable) clear boot auto-config
Related Commands
show boot
clear cam
Use the clear cam command to delete a specific entry or all entries from the CAM table.
clear cam {mac_addr | dynamic | static | permanent} [vlan]
Syntax Description
mac_addr
|
One or more MAC addresses to clear from the CAM table.
|
dynamic
|
Keyword to clear the dynamic CAM entries from the CAM table.
|
static
|
Keyword to clear the static CAM entries from the CAM table.
|
permanent
|
Keyword to clear the permanent CAM entries from the CAM table.
|
vlan
|
(Optional) Number of the VLAN associated with the CAM entries.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you enter the clear cam command, the EARL CAM table entries are cleared.
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 cgmp statistics
Use the clear cgmp statistics command to clear CGMP statistical information.
clear cgmp statistics
Syntax DescriptionDescription
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 CGMP statistical information:
Console> (enable) clear cgmp statistics
Related Commands
set cgmp
show cgmp leave
show cgmp statistics
clear channel statistics
Use the clear channel statistics command to clear CGMP statistical information.
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 CGMP statistical information:
Console> (enable) clear channel statistics
Related Commands
show cgmp statistics
clear config
Use the clear config command to clear the system or module configuration information stored in NVRAM.
clear config {mod | rmon | all | snmp | acl {nvram}}
Syntax Description
mod
|
Number of the module.
|
rmon
|
Keyword to clear all RMON configurations, including the historyControlTable, the alarmTable, the eventTable, and the ringStation ControlTable.
|
all
|
Keyword to clear all module and system configuration information, including the IP address.
|
snmp
|
Keyword to clear all SNMP configurations.
|
acl nvram
|
Keywords to clear all ACL configurations.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you clear the configuration using the clear config all command, the default switch configuration is restored. The information that is cleared includes manually configured IP addresses and IP addresses learned through DHCP or RARP.
When you clear the configuration, the IP address and subnet mask on the sc0 interface are set to 0.0.0.0.
Note
Before using the clear config all command, save a backup of the configuration.
When using an RSM or RSFC, the clear config command clears the portion of the RSM or RSFC configuration stored on the Catalyst 5000 family switch. The portion of the configuration stored on the RSM or RSFC must be cleared from the RSM or RSFC CLI.
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 (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:
Console> (enable) clear config all
This command will clear all configuration in NVRAM.
This command will cause ifIndex to be reassigned on the next system startup.
Do you want to continue (y/n) [n]? y
Releasing IP address...Done
.....................................................
System configuration cleared.
This example shows how to delete all the SNMP configuration information:
Console> (enable) clear config snmp
This command will clear SNMP 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
Related Commands
configure
show config
show running-config
clear cops
Use the clear cops commands to clear COPS configurations.
clear cops roles role1 [role2]...
clear cops all-roles
clear cops server all
clear cops server ipaddress
clear cops domain-name
Syntax Description
roles role#
|
Keyword and variable to specify the roles to clear.
|
all-roles
|
Keyword to clear all roles.
|
server
|
Keyword to specify the COPS server.
|
all
|
Keyword to clear all servers.
|
ipaddress
|
IP address or IP alias of the server.
|
domain-name
|
Keyword to clear 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 the roles.
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
Use the clear counters command to clear MAC and port counters.
clear counters
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
This command also clears ATM module counters.
Examples
This example shows how to reset MAC and port counters to zero:
Console> (enable) clear counters
MAC and Port counters cleared.
Related Commands
show counters
show port
clear dot1x config
Use the clear dot1x config command to disable dot1x on all ports and return the values to the factory default settings.
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 dot1x and return the values to the factory 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 dot1x
set port dot1x
show dot1x
show port dot1x
clear drip statistics
Use the clear drip statistics command to clear DRiP statistical information.
clear drip statistics
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 clear DRiP statistical information:
Console> (enable) clear drip statistics
Related Commands
show drip statistics
clear gmrp statistics
Use the clear gmrp statistics command to clear all the GMRP statistics information from a specified VLAN or all VLANs.
clear gmrp statistics {vlan | all}
Syntax Description
vlan
|
Number of the VLAN.
|
all
|
Keyword to specify 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
Use the clear gvrp statistics command to clear all the GVRP statistics information.
clear gvrp statistics {mod/port | all}
Syntax Description
mod/port
|
Number of the module and port.
|
all
|
Keyword to specify all ports.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear 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
show gvrp statistics
set gvrp
clear igmp statistics
Use the clear igmp statistics command to clear IGMP router port statistical information.
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
show igmp statistics
clear ip alias
Use the clear ip alias command to clear IP aliases that are set using the set ip alias command.
clear ip alias {name | all}
Syntax Description
name
|
IP address alias to delete.
|
all
|
Keyword to specify 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
Use the clear ip dns domain command to clear the default DNS domain name.
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
Use the clear ip dns server command to remove a DNS server from the DNS server listing.
clear ip dns server {ip_addr | all}
Syntax Description
ip_addr
|
IP address of the DNS server you want to remove.
|
all
|
Keyword to specify all the IP addresses in the DNS server listing be removed.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When entering the ip_addr value, you can also enter an IP alias or a host name that can be resolved through DNS.
Examples
This example shows how to remove the DNS server at IP address 192.168.255.255 from the DNS server listing:
Console> (enable) clear ip dns server 192.168.255.255
192.168.255.255 cleared from DNS table.
Related Commands
set ip dns server
show ip dns
clear ip permit
Use the clear ip permit command to remove a specified IP address and mask or all IP addresses and masks from the permit list.
clear ip permit {ip_addr} [mask] [telnet | ssh | snmp | all]
clear ip permit 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) Keyword to remove the specified IP address from the Telnet IP permit list.
|
ssh
|
(Optional) Keyword to remove the specified IP address from the SSH IP permit list.
|
snmp
|
(Optional) Keyword to remove the specified IP address from the SNMP IP permit list.
|
all
|
(Optional) Keyword to remove the specified IP address from all permit lists.
|
all
|
Keyword to remove all entries in the IP permit list.
|
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 you do not enter the snmp, telnet, or all keyword, the IP address is removed from both the SNMP and Telnet permit lists.
When entering the ip_addr value, you can also enter an IP alias or a host name that can be resolved through DNS.
Examples
These examples show different ways to remove specified 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
show port counters
clear ip route
Use the clear ip route command to delete IP routing table entries.
clear ip route all
clear ip route destination gateway
Syntax Description
all
|
Keyword that deletes all IP routing table entries.
|
destination
|
IP address of the host or network.
|
gateway
|
IP address or alias of the gateway router.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When entering the ip_addr value, you can also enter an IP alias or a host name that can be resolved through DNS.
Examples
This example shows how to delete the route table entries using the clear ip route command:
Console> (enable) clear ip route 172.16.2.2 elvis
Related Commands
set ip route
show ip route
clear kerberos clients mandatory
Use the clear kerberos clients mandatory command to disable mandatory Kerberos authentication for services on the network.
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
A user authenticated to a Kerberized switch has a TGT and can use it to authenticate to a host on the network. However, if forwarding is not enabled and a user tries to list credentials after authenticating to a host, the output will show no Kerberos credentials present.
You can optionally configure the switch to forward users' TGTs with them as they authenticate from the switch to Kerberized remote hosts on the network when using Kerberized Telnet.
As an added layer of security, you can optionally configure the switch so that after users authenticate to it, they can authenticate to other services on the network only with Kerberos clients. 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
set kerberos credentials forward
clear kerberos credentials forward
Use the clear kerberos credentials forward command to disable credentials forwarding.
clear kerberos credentials forward
Syntax Description
This command has no arguments or keywords.
Defaults
Forwarding is disabled by default.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
A user authenticated to a Kerberized switch has a TGT and can use it to authenticate to a host on the network. However, if forwarding is not enabled and a user tries to list credentials after authenticating to a host, the output will show no Kerberos credentials present.
You can optionally configure the switch to forward users' TGTs with them as they authenticate from the switch to Kerberized remote hosts on the network when using Kerberized Telnet.
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
clear kerberos creds
Use the clear kerberos creds command to delete all the Kerberos credentials.
clear kerberos creds
Syntax Description
This command has no arguments or keywords.
Defaults
Forwarding is disabled by default.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
A user authenticated to a Kerberized switch has a TGT and can use it to authenticate to a host on the network. This command deletes all Kerberos credentials.
Examples
This example shows how to delete all Kerberos credentials:
Console> (enable) clear kerberos creds
Related Commands
set kerberos credentials forward
clear kerberos realm
Use the clear kerberos realm command to clear an entry that is mapping the name of a Kerberos realm to a DNS domain name or a host name.
clear kerberos realm {dns_domain | host} kerberos_realm
Syntax Description
dns_domain
|
DNS domain name to map to a Kerberos realm.
|
host
|
Host name.
|
kerberos_realm
|
IP address or name (in uppercase characters) of the Kerberos realm.
|
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The name of the Kerberos realm can sometimes be mapped to a DNS domain name or a host name. This mapping can be done 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 realm
set kerberos local-realm
clear kerberos server
Use the clear kerberos server command to clear a specified KDC entry.
clear kerberos server kerberos_realm {hostname | ip_address} [port]
Syntax Description
kerberos_realm
|
Name of a Kerberos realm.
|
hostname
|
Name of host running the KDC.
|
ip_address
|
IP address of host running the KDC.
|
port
|
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 which KDC for the switch 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