|
|
Use the cd command to set the default Flash device for the system.
cd [[m/]device:]
m/ | (Optional) Module number of the supervisor engine containing the Flash device. |
device: | (Optional) Valid devices include bootflash, slot0, and slot1. |
The default Flash device is bootflash.
Switch command.
Privileged.
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. If you attempt to run this command on a Supervisor Engine I or II, you will receive an error message.
This example shows how to set the system default Flash device to bootflash:
Console> cd bootflash: Default flash device set to bootflash.
Use the clear alias command to clear the shorthand versions of commands.
clear alias {name | all}
name | Alternate identifier of the command. |
all | Keyword that identifies every alternate identifier previously created. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to erase the arpdel alias:
Console> (enable) clear alias arpdel Command alias deleted. Console> (enable)
This example shows how to erase all the aliases:
Console> (enable) clear alias all Command alias table cleared. (1) Console> (enable)
(1) indicates the number of command aliases cleared.
Use the clear arp command to delete a specific entry or all entries from the ARP table.
clear arp {ip_addr | all}
ip_addr | Specific IP address in the ARP table to be cleared. An IP alias or host name that can be resolved through the DNS can be specified instead of an IP address. |
all | Keyword that specifies every IP address in the ARP table. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to remove IP address 198.133.219.209 from the ARP table:
Console> (enable) clear arp 198.133.219.209 ARP entry deleted. Console> (enable)
This example shows how to remove all entries from the ARP table:
Console> (enable) clear arp all ARP table cleared. (1) Console> (enable)
(1) indicates the number of entries cleared.
Use the clear banner motd command to clear the message-of-the-day banner.
clear banner motdThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
This example shows how to clear the message-of-the-day banner:
Console> (enable) clear banner motd MOTD banner cleared Console> (enable)
Use the clear boot command to clear the contents of the BOOT and BOOTLDR environment variables and the configuration register setting.
clear boot [mod_num]
mod_num | (Optional) Module number of the supervisor engine containing the Flash device. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to use the clear boot command:
Console> (enable) clear boot BOOT variable = Console> (enable)
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]
mac_addr | One or more MAC addresses. |
dynamic | Keyword that clears the dynamic CAM entries from the CAM table. |
static | Keyword that clears the static CAM entries from the CAM table. |
permanent | Keyword that clears the permanent CAM entries from the CAM table. |
vlan_num | (Optional) Number of the VLAN. |
This command has no default setting.
Switch command.
Privileged.
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 CAM table entry cleared. Console> (enable)
This example shows how to clear dynamic entries from the CAM table:
Console> (enable) clear cam dynamic Dynamic CAM entries cleared. Console> (enable)
Use the clear cgmp statistics command to clear CGMP statistical information.
clear cgmp statisticsThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
This example shows how to clear CGMP statistical information:
Console> (enable) clear cgmp statistics CGMP statistics cleared. Console> (enable)
Use the clear config command to clear the system or module configuration information stored in NVRAM.
clear config {mod_num | rmon | all}
mod_num | Number of the module. |
rmon | Keyword that clears all RMON configurations, including the historyControlTable, the alarmTable, the eventTable, and the ringStation ControlTable. |
all | Keyword that specifies all modules and system configuration information, including the IP address. |
This command has no default setting.
Switch command.
Privileged.
When using an RSM, clear config clears the portion of the RSM configuration kept by the Catalyst 5000 series switch supervisor engine. The portion of the configuration kept by the RSM must be cleared at the router level (router> prompt).
Before using the clear config all command, save a backup of the configuration.
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. Console> (enable)
This example shows how to delete the configuration information stored in NVRAM on module 1 (the supervisor module):
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. host%
This example shows how to delete all the configuration information for the Catalyst 5000 series switch:
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 host%
Use the clear counters command to clear MAC and port counters.
clear countersThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Privileged.
This command also clears ATM module counters.
This example shows how to reset MAC and port counters to zero:
Console> (enable) clear counters MAC and Port counters cleared. Console> (enable)
Use the clear drip statistics command to clear DRiP statistical information.
clear drip statisticsThis command has no keywords or arguments.
This command has no default setting.
Switch command.
Privileged.
This example shows how to clear DRiP statistical information:
Console> (enable) clear drip statistics DRIP statistics cleared. Console> (enable)
Use the clear igmp statistics command to clear IGMP router port statistical information.
clear igmp statisticsThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
This example shows how to clear IGMP statistical information:
Console> (enable) clear igmp statistics IGMP statistics cleared. Console> (enable)
Use the clear ip alias command to clear IP aliases set using the set ip alias command.
clear ip alias {name | all}
name | IP address alias to delete. |
all | Keyword that specifies that all previously set IP address aliases be deleted. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to delete a previously defined IP alias named babar:
Console> (enable) clear ip alias babar IP alias deleted. Console> (enable)
Use the clear ip dns domain command to clear the default DNS domain name.
clear ip dns domainThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
This example shows how to clear the default DNS domain name:
Console> (enable) clear ip dns domain Default DNS domain name cleared. Console> (enable)
Use the clear ip dns server command to remove a DNS server from the DNS server listing.
clear ip dns server {ip_addr | all}
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 | Keyword that specifies all the IP addresses in the DNS server listing to be removed. |
This command has no default setting.
Switch command.
Privileged.
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. Console> (enable)
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]
ip_addr | IP address to be cleared. An IP alias or a host name that can be resolved through DNS can also be used. |
all | Keyword that specifies all entries in the IP permit list to be removed. |
mask | (Optional) Subnet mask of the specified IP address. |
This command has no default setting.
Switch command.
Privileged.
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.
These examples show the usage of the clear ip permit command:
Console> (enable) clear ip permit 172.100.101.102 172.100.101.102 cleared from IP permit list. Console> (enable) Console> (enable) clear ip permit 172.160.128.0 255.255.192.0 172.160.128.0 with mask 255.255.192.0 cleared from IP permit list. Console> (enable) Console> (enable) clear ip permit all IP permit list cleared. WARNING!! IP permit list is still enabled. Console> (enable)
set ip permit
show ip permit
show port counters
Use the clear ip route command to delete IP routing table entries.
clear ip route destination gateway
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. |
The default is destination. If the destination is not the active default gateway, the actual destination is the default.
Switch command.
Privileged.
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 elvis Route deleted. Console> (enable)
Use the clear log command to delete module or system error log entries.
clear log [mod_num]
mod_num | (Optional) Module number. |
This command has no default setting.
Switch command.
Privileged.
If you do not specify a module number, the system error log for the entire system is erased.
This example shows how to clear the system error log:
Console> (enable) clear log System error log cleared. Console> (enable)
Use the clear logging buffer command to clear the system logging buffer.
clear logging bufferThis command has no arguments or keywords.
This command has no default setting.
Switch command.
Privileged.
This example shows how to clear the system logging buffer:
Console> (enable) clear logging buffer System logging buffer cleared. Console> (enable)
Use the clear logging server command to delete a syslog server from the system log server table.
clear logging server ip_addr
ip_addr | IP address of the syslog server to be deleted. |
This command has no default setting.
Switch command.
Privileged.
This example shows how to delete a syslog server from the configuration:
Console> (enable) clear logging server 171.69.192.207
System log server 171.69.192.207 removed from system log server table. Console> (enable)
set logging server
show logging
|
|