cc/td/doc/product/lan/cat6000/sw_5_3
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

cd
clear alias
clear arp
clear banner motd
clear boot system
clear cam
clear channel statistics
clear config
clear cops
clear counters
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 lda
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 and slot0.

Default

The default Flash device is bootflash.

Command Type

Switch command.

Command Mode

Normal.

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.

Example

This example shows how to set the system default Flash device to bootflash:

Console> cd bootflash:
Default flash device set to bootflash.
Console> 
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 clears 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 to clear 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

set banner motd

clear boot system

Use the clear boot system command to clear the contents of the BOOT environment variable and the configuration register setting.

clear boot system all [mod_num]
clear boot system flash device:[filename] [mod_num]

Syntax Description

all

Keyword to clear the whole BOOT environment variable.

mod_num

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

flash

(Optional) Keyword to clear the Flash device.

device:

Name of the Flash device.

filename

(Optional) Filename of the Flash device.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Examples

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:cat6000-sup.5-3-1.CSX.bin
BOOT variable = 
Console> (enable)
 

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.

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; valid values are 1 to 1005.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

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
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 channel statistics

Use the clear channel statistics command to clear PAgP statistical information.

clear channel 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 PAgP statistical information:

Console> (enable) clear channel statistics
PAgP statistics cleared.
Console> (enable) 
Related Command

show channel

clear config

Use the clear config command to clear the system or module configuration information stored in NVRAM.

clear config {mod_num | rmon | all}

Syntax Description

mod_num

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 modules and system configuration information, including the IP address.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

Before using the clear config all command, save a backup of the configuration.

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

This example shows how to delete all the configuration information for the Catalyst 6000 family 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 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 [primary] [diff-serv | rsvp]
clear cops server ipaddress [diff-serv | rsvp]
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

Keyword and variable to specify the IP address or IP alias of the server.

primary

(Optional) Keyword to specify the primary server.

diff-serv

(Optional) Keyword to specify the differentiated services server table.

rsvp

(Optional) Keyword to specify the RSVP+ server table.

domain-name

Domain name of the server.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

You can use the clear cops all-roles command to clean up all the roles from all the ports even if there are still roles applied to ports.

Examples

This example shows how to clear specific roles:

Console> (enable) clear cops roles backbone_port main_port
Roles cleared.
Console> (enable) 
 

This example shows how to clear all roles:

Console> (enable) clear cops all-roles
All roles cleared.
Console> (enable) 
 

This example shows how to clear all COPS servers:

Console> (enable) clear cops server all
All COPS servers cleared.
Console> (enable) 
 

This example shows how to clear a specific COPS server:

Console> (enable) clear cops server my_server1
All COPS servers cleared.
Console> (enable) 
 

This example shows how to clear the COPS domain name:

Console> (enable) clear cops domain-name
Domain name cleared.
Console> (enable) 
Related Commands

show cops
set 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.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Example

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

show port

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.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Examples

This example shows how to clear GMRP statistical information from all VLANs:

Console> (enable) clear gmrp statistics
GMRP statistics cleared.
Console> (enable) 
 

This example shows how to clear GMRP statistical information from VLAN 1:

Console> (enable) clear gmrp statistics 1
GMRP statistics cleared from VLAN 1.
Console> (enable) 
Related Command

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.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Examples

This example shows how to clear all GVRP statistical information:

Console> (enable) clear gvrp statistics all
GVRP statistics cleared for all ports.
Console> (enable) 
 

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

show gvrp configuration
set gvrp

clear igmp statistics

Use the clear igmp statistics command to clear IGMP snooping 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.

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

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.
Console> (enable)
 

This example shows how to remove all DNS servers from the DNS server listing:

Console> (enable) clear ip dns server all
All DNS servers cleared 
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 to remove all entries in the IP permit list.

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 how to use 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 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.

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 lda

Use the clear lda commands to remove the ASLB MLS entries or MAC addresses from the switch.

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

(Optional) Keyword to remove configured LDs.

destination ip_addr_spec

(Optional) Full destination IP address or a subnet address in these formats: ip_addr or 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 or ip_addr/netmask or ip_addr/maskbit.

protocol protocol

(Optional) Keyword and variable to specify 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 port_number

(Optional) Keyword and variable to specify 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 port_number

(Optional) Keyword and variable to specify 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

Keywords to remove all VIP couples (set using the set lda command).

vip vip

Keyword and variable to specify a VIP.

vip vip tcp_port

Keyword and variables to specify a VIP and port couple.

mac all

Keywords to clear all ASLB router MAC addresses.

mac router_mac_ address

Keyword and variable to clear a specific router MAC address.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

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 or 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
MLS IP entry cleared.
Console> (enable)
 

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.
Console> (enable)
 

This example shows how to clear all ASLB router MAC address:

Console> (enable) clear lda mac all
Successfully cleared Router MAC address.
Console> (enable)
 

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

commit lda
show lda
set lda

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 Guideline

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: Fri Dec 31 10:55:04 PST 1999
Copyright 1989-1999©Cisco Systems Inc.