cc/td/doc/product/lan/cat5000/rel_4_5
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

cd
clear alias
clear arp
clear banner motd
clear boot system
clear cam
clear cgmp statistics
clear config
clear counters
clear drip statistics
clear igmp statistics
clear ip alias
clear ip dns domain
clear ip dns server
clear ip permit
clear ip route
clear log

cd

Use the cd command to set the default Flash device for the system.

cd [[m/]device:]
Syntax Description

m/

(Optional) Module number of the supervisor engine containing the Flash device.

device:

(Optional) Valid devices include bootflash, slot0, and slot1 for Catalyst 5000, 2926G, and 2926 series switches and bootflash for the Catalyst 4000 and 2948G series switch.

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

pwd

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 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.

Related Commands

set alias
show alias

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

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.

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.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.

Related Commands

set arp
show arp

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 motd
MOTD banner cleared
Console> (enable)
Related Command

clear banner motd

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

all

Keyword to specify clearing the whole BOOT environment variable.

mod

(Optional) Module number of the supervisor engine containing the Flash device.

flash

Keyword to specify the Flash device.

device:

(Optional) Valid devices include bootflash, slot0, and slot1 for Catalyst 5000, 2926G, and 2926 series switches and bootflash for the Catalyst 4000 and 2948G series switch.

filename

(Optional) Filename of the Flash device.

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 all
BOOT variable = 
Console> (enable)
 

This example shows how to clear a specific device:

Console> (enable) clear boot system flash bootflash:cat5000-sup3.4-5-1.bin
BOOT variable = 
Console> (enable)
Related Command

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_num]
Syntax Description

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.

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-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) 
Related Commands

set cam
show cam

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 statistics
CGMP statistics cleared.
Console> (enable) 
Related Command

show cgmp statistics

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 | extendedrmon
Syntax Description

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.

extendedrmon

Keyword that specifies the Network Analysis Module extended RMON configuration information for the module from NVRAM.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines
Caution
On 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 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, 4000, 2948G, 2926G, and 2926 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
host%
Related Commands

configure
show config

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 counters
MAC and Port counters cleared.
Console> (enable)
Related Command

show port

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 statistics
DRIP statistics cleared.
Console> (enable) 
Related Command

show drip statistics

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 statistics
IGMP statistics cleared.
Console> (enable) 
Related Command

show igmp statistics

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 babar
IP alias deleted.
Console> (enable)
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.

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 domain
Default DNS domain name cleared.
Console> (enable)
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. 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.

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.32
198.92.30.32 cleared from DNS table.
Console> (enable)
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 | all} [mask]
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.

all

Keyword that specifies all entries in the IP permit list to be removed.

mask

(Optional) Subnet mask of the specified IP address.

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.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)
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 to delete all IP routing table entries.

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.

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 elvis
Route deleted.
Console> (enable)
Related Commands

set ip route
show ip route

clear log

Use the clear log command to delete module or system error log entries.

clear log [mod_num]
Syntax Description

mod_num

(Optional) Module number.

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 log
System error log cleared.
Console> (enable) 
Related Command

show log


hometocprevnextglossaryfeedbacksearchhelp
Posted: Wed Mar 31 08:45:43 PST 1999
Copyright 1989-1999©Cisco Systems Inc.