Table Of Contents
cd
Use the cd command to set the default Flash device for the system.
cd [[m/]device:]
Syntax Description
Default
The default Flash device is bootflash.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guidelines
A colon (:) is required after the specified device.
For those commands where device is an option, the device set by cd is used if the default device is not specified.
This command applies only to the Supervisor Engine III and the Catalyst 4000 and 2948G series switch supervisor engine module. If you attempt to run this command on a Supervisor Engine I or II, you will receive an error message.
Example
This example shows how to set the system default Flash device to bootflash:
Console> cd bootflash:Default flash device set to bootflash.Related Command
clear alias
Use the clear alias command to clear the shorthand versions of commands.
clear alias {name | all}
Syntax Description
name
Alternate identifier of the command.
all
Keyword that identifies every alternate identifier previously created.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Examples
This example shows how to erase the arpdel alias:
Console> (enable) clear alias arpdelCommand alias deleted.Console> (enable)This example shows how to erase all the aliases:
Console> (enable) clear alias allCommand alias table cleared. (1)Console> (enable)(1) indicates the number of command aliases cleared.
Related Commands
clear arp
Use the clear arp command to delete a specific entry or all entries from the ARP table.
clear arp {ip_addr | all}
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
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.209ARP entry deleted.Console> (enable)This example shows how to remove all entries from the ARP table:
Console> (enable) clear arp allARP table cleared. (1)Console> (enable)(1) indicates the number of entries cleared.
Related Commands
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.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Example
This example shows how to clear the message-of-the-day banner:
Console> (enable) clear banner motdMOTD banner clearedConsole> (enable)Related Command
clear boot system
Use the clear boot system command to clear the contents of the BOOT environment variables and the configuration register setting.
clear boot system all [mod]
clear boot system flash device:[filename] [mod]Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guidelines
If you enter the clear boot system command without any arguments, the whole BOOT environment variable is cleared.
If you want to rearrange the booting order, you must enter the clear boot system command first, and then redefine the list.
This command applies only to the Supervisor Engine III and the Catalyst 4000 and 2948G series switch supervisor engine module. If you attempt to run this command on a Supervisor Engine I or II, you will receive an error message.
Example
This example shows how to clear the whole BOOT environment variable:
Console> (enable) clear boot system allBOOT variable =Console> (enable)This example shows how to clear a specific device:
Console> (enable) clear boot system flash bootflash:cat5000-sup3.4-5-1.binBOOT variable =Console> (enable)Related Command
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_num]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guideline
If you enter the clear cam command on a Catalyst 5000, 2926G, or 2926 series switch, the EARL CAM table entries are cleared. If you enter the clear cam command on a Catalyst 4000 or 2948G series switch, the ASE 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-faCAM table entry cleared.Console> (enable)This example shows how to clear dynamic entries from the CAM table:
Console> (enable) clear cam dynamicDynamic CAM entries cleared.Console> (enable)Related Commands
clear cgmp statistics
Use the clear cgmp statistics command to clear CGMP statistical information.
clear cgmp statistics
Syntax Description
This command has no arguments or keywords.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Example
This example shows how to clear CGMP statistical information:
Console> (enable) clear cgmp statisticsCGMP statistics cleared.Console> (enable)Related Command
clear config
Use the clear config command to clear the system or module configuration information stored in NVRAM.
clear config mod_num
clear config rmon | all | extendedrmonSyntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guidelines
CautionOn the Catalyst 4000 and 2948G series switches, the clear config all command clears the IP address and netmasks of me1 and sc0 to 0.0.0.0; me1 is brought down, and sc0 is brought up.
Note
Before using the clear config all command, save a backup of the configuration.
When using an RSM, clear config clears the portion of the RSM configuration kept by the Catalyst 5000, 4000, 2926G, and 2926 series switch supervisor engines. The portion of the configuration kept by the RSM must be cleared at the router level (router> prompt).
The extendedrmon keyword is not supported by the Catalyst 4000 and 2948G series switches.
Examples
This example shows how to delete the configuration information in NVRAM on module 2:
Console> (enable) clear config 2This command will clear module 2 configuration.Do you want to continue (y/n) [n]? y..............................Module 2 configuration cleared.Console> (enable)This example shows how to delete the configuration information stored in NVRAM on module 1 (the supervisor module):
Console> (enable) clear config 1This command will clear module 1 configuration.Do you want to continue (y/n) [n]? y......Module 1 configuration cleared.host%This example shows how to delete all the configuration information for the Catalyst 5000, 4000, 2948G, 2926G, and 2926 series switches:
Console> (enable) clear config allThis command will clear all configuration in NVRAM.Do you want to continue (y/n) [n]? y...........................................Connection closed by foreign hosthost%Related Commands
clear counters
Use the clear counters command to clear MAC and port counters.
clear counters
Syntax Description
This command has no keywords or arguments.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guideline
This command also clears ATM module counters.
Example
This example shows how to reset MAC and port counters to zero:
Console> (enable) clear countersMAC and Port counters cleared.Console> (enable)Related Command
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.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Example
This example shows how to clear DRiP statistical information:
Console> (enable) clear drip statisticsDRIP statistics cleared.Console> (enable)Related Command
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.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guideline
This command is not supported on the Catalyst 4000 and 2948G series switches.
Example
This example shows how to clear IGMP statistical information:
Console> (enable) clear igmp statisticsIGMP statistics cleared.Console> (enable)Related Command
clear ip alias
Use the clear ip alias command to clear IP aliases set using the set ip alias command.
clear ip alias {name | all}
Syntax Description
name
IP address alias to delete.
all
Keyword that specifies that all previously set IP address aliases be deleted.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Example
This example shows how to delete a previously defined IP alias named babar:
Console> (enable) clear ip alias babarIP alias deleted.Console> (enable)Related Commands
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.
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Example
This example shows how to clear the default DNS domain name:
Console> (enable) clear ip dns domainDefault DNS domain name cleared.Console> (enable)Related Commands
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
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Example
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.32198.92.30.32 cleared from DNS table.Console> (enable)Related Commands
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 | all} [mask]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guideline
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.
Examples
These examples show the usage of the clear ip permit command:
Console> (enable) clear ip permit 172.100.101.102172.100.101.102 cleared from IP permit list.Console> (enable)Console> (enable) clear ip permit 172.160.128.0 255.255.192.0172.160.128.0 with mask 255.255.192.0 cleared from IP permit list.Console> (enable)Console> (enable) clear ip permit allIP permit list cleared.WARNING!! IP permit list is still enabled.Console> (enable)Related Commands
set ip permit
show ip permit
show port countersclear ip route
Use the clear ip route command to delete IP routing table entries.
clear ip route all
clear ip route destination gatewaySyntax Description
Default
The default is destination. If the destination is not the active default gateway, the actual destination is the default.
Command Type
Switch command.
Command Mode
Privileged.
Example
This example shows how to delete the route table entries using the clear ip route command:
Console> (enable) clear ip route 134.12.3.0 elvisRoute deleted.Console> (enable)Related Commands
clear log
Use the clear log command to delete module or system error log entries.
clear log [mod_num]
Syntax Description
Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guidelines
If you do not specify a module number, the system error log for the entire system is erased.
Example
This example shows how to clear the system error log:
Console> (enable) clear logSystem error log cleared.Console> (enable)Related Command


