Catalyst 6500 Series Command Reference, 6.3 and 6.4
cd to clear mls entry cef adjacency

Table Of Contents

cd

clear alias

clear arp

clear banner motd

clear boot auto-config

clear boot device

clear boot system

clear cam

clear channel statistics

clear config

clear config pvlan

clear cops

clear counters

clear crypto key rsa

clear dot1x config

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

clear key config-key

clear lda

clear log

clear log command

clear logging buffer

clear logging level

clear logging server

clear mls cef

clear mls entry

clear mls entry cef adjacency


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.


Defaults

The default Flash device is bootflash.

Command Types

Switch command.

Command Modes

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.

Examples

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

Console> cd bootflash:
Default flash device set to bootflash.
Console> 

Related Commands

pwd

clear alias

Use the clear alias command to clear the abbreviated versions of commands.

clear alias {name | all}

Syntax Description

name

Alternate identifier of the command.

all

Keyword to clear every alternate identifier previously created.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

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 [all | dynamic | permanent | static] {ip_addr}

Syntax Description

all

(Optional) Keyword to clear all ARP entries.

dynamic

(Optional) Keyword to clear all dynamic ARP entries.

permanent

(Optional) Keyword to clear all permanent ARP entries.

static

(Optional) Keyword to clear all static ARP entries.

ip_addr

IP address to clear from the ARP table.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

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.

This example shows how to remove all dynamically learned ARP entries:

Console> (enable) clear arp dynamic
Unknown host
Dynamic ARP entries cleared. (3)                 
Console> (enable)

This example shows how to clear all permanently entered ARP entries:

Console> (enable) clear arp permanent
Unknown host
Permanent ARP entries cleared.(5)
Console> (enable) 

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.

Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to clear the message-of-the-day banner:

Console> (enable) clear banner motd
MOTD banner cleared
Console> (enable)

Related Commands

set banner motd

clear boot auto-config

Use the clear boot auto-config command to clear the contents of the CONFIG_FILE environment variable used to specify the configuration files used during bootup.

clear boot auto-config [mod]

Syntax Description

mod

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


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to clear the auto-config file:

Console> (enable) clear boot auto-config
CONFIG_FILE variable =
Console> (enable)

Related Commands

set boot auto-config
show boot

clear boot device

Use the clear boot device command to clear the contents of the CONFIG_FILE environment variable used to specify the NAM startup configuration files used.

clear boot device mod

Syntax Description

mod

Number of the module containing the Flash device.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

This command is supported by the NAM module only.

Examples

This example shows how to clear the NAM boot string from NVRAM for module 2:

Console> (enable) clear boot device 2
Device BOOT variable =
Console> (enable)

Related Commands

set boot device
show boot device

clear boot system

Use the clear boot system command set 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]

Syntax Description

all

Keyword to clear the whole BOOT environment variable.

mod

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


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

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; note how the specified device is not listed:

Console> (enable) clear boot system flash bootflash:cat6000-sup.5-5-1.bin
BOOT variable = bootflash:cat6000-sup.6-1-1.bin,1;bootflash:cat6000-sup.5-5-2.
bin,1;
Console> (enable)

Related Commands

set boot system flash
show boot

clear cam

Use the clear cam command set to delete a specific entry or all entries from the CAM table.

clear cam mac_addr [vlan]

clear cam {dynamic | static | permanent} [vlan]

Syntax Description

mac_addr

One or more MAC addresses.

vlan

(Optional) Number of the VLAN; valid values are from 1 to 1000 and from 1025 to 4094.

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.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

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.

Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to clear PAgP statistical information:

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

Related Commands

show channel

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 using an MSM, entering the clear config command clears the portion of the MSM configuration kept by the Catalyst 6000 family switch supervisor engine. You must clear the portion of the configuration kept by the MSM at the router level (router> prompt).

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

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%

This example shows how to delete all the SNMP configuration information for the Catalyst 6000 family switches:

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

Related Commands

set config acl nvram
show config qos acl

clear config pvlan

Use the clear config pvlan command to clear all private VLAN configurations in the system including port mappings.

clear config pvlan

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 all private VLAN configurations in the system:

Console> (enable) clear config pvlan
This command will clear all private VLAN configurations.
Do you want to continue (y/n) [n]? y
VLAN 15 deleted 
VLAN 16 deleted 
VLAN 17 deleted 
VLAN 18 deleted
Private VLAN configuration cleared. 
Console> (enable) 

Related Commands

set vlan
show vlan
set pvlan
set pvlan mapping
clear vlan
clear pvlan mapping
show pvlan
show pvlan mapping
configure
show config

clear cops

Use the clear cops command set to clear COPS configurations.

clear cops roles role1 [role2]...

clear cops all-roles

clear cops server all [diff-serv | rsvp]

clear cops server ipaddr [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 server tables.

diff-serv

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

rsvp

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

ipaddr

IP address or IP alias of the server.

domain-name

Keyword to specify 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 roles from all 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 counters, EtherChannel MAC counters, port counters, and the channel traffic percentile.

clear counters [all | mod/ports]

Syntax Description

all

(Optional) Keyword to specify all ports.

mod/ports

(Optional) Number of the module and the ports on the module.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

If you do not specify a range of ports to be cleared, then all ports on the switch are cleared.

Examples

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)

This example shows how to reset MAC and port counters to zero for a specific module and port:

Console> (enable) clear counters 5/1
This command will reset MAC and port counters reported by the CLI for port(s) 5/1.
Do you want to continue (y/n) [n]? y

MAC and Port counters cleared.
Console> (enable)

Related Commands

restore counters
show port counters

clear crypto key rsa

Use the clear crypto key rsa command to remove all RSA public-key pairs.

clear crypto key rsa

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

The crypto commands are supported on systems that run these image types only:

supk9 image—for example, cat6000-supk9.6-1-3.bin

supcvk9 image—for example, cat6000-supcvk9.6-1-3.bin

Examples

This example shows how to clear RSA key pairs:

Console> (enable) clear crypto key rsa 
Do you really want to clear RSA keys (y/n) [n]? y
RSA keys has been cleared.
Console> (enable) 

Related Commands

set crypto key rsa
show crypto key

clear dot1x config

Use the clear dot1x config command to disable dot1x on all ports and return values to the 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 values to the 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
Dot1x config cleared.
Console> (enable) 

Related Commands

set port dot1x
show dot1x
show port dot1x

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; valid values are from 1 to 1000 and from 1025 to 4094.

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

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

Related Commands

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


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

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


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

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 set to remove a specified IP address and mask or all IP addresses and masks from the permit list.

clear ip permit all

clear ip permit {ip_addr} [mask] [telnet | ssh | snmp | 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 clear the entries in the Telnet permit list.

ssh

(Optional) Keyword to clear the entries in the SSH permit list.

snmp

(Optional) Keyword to clear the entries in the SNMP permit list.

all

(Optional) Keyword to clear all permit lists.


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 the telnet, ssh, snmp, or all keyword is not specified, the IP address is removed from both the SNMP and Telnet permit lists.

Examples

These examples show how to remove IP addresses:

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.161.0 255.255.192.0 snmp
172.160.128.0 with mask 255.255.192.0 cleared from snmp permit list.
Console> (enable)

Console> (enable) clear ip permit 172.100.101.102 telnet
172.100.101.102 cleared from telnet 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

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.


Defaults

The default is destination. If the destination is not the active default gateway, the actual destination is the default.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to delete the routing 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 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

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

Related Commands

set kerberos clients mandatory
show kerberos

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

The default is forwarding is disabled.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

If you have a TGT and are authenticated to a Kerberized switch, you can use the TGT to authenticate to a host on the network. However, if forwarding is not enabled and you try to list credentials after authenticating to a host, the output will show no Kerberos credentials are present.

Examples

This example shows how to disable Kerberos credentials forwarding:

Console> (enable) clear kerberos credentials forward 
Kerberos credentials forwarding disabled
Console> (enable) 

Related Commands

set kerberos credentials forward
set kerberos clients mandatory
show kerberos

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

The command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

If you have a TGT and are authenticated to a Kerberized switch, you can use the TGT to authenticate to a host on the network.

Examples

This example shows how to delete all Kerberos credentials:

Console> (enable) clear kerberos creds
Console> (enable) 

Related Commands

set kerberos credentials forward
show kerberos

clear kerberos realm

Use the clear kerberos realm command to clear an entry that maps 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

IP address or name to map to a Kerberos realm.

kerberos_realm

IP address or name of a Kerberos realm.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

You can map the name of a Kerberos realm to a DNS domain name or a host name 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
Console> (enable) 

Related Commands

set kerberos realm
set kerberos local-realm
show kerberos

clear kerberos server

Use the clear kerberos server command to clear a specified KDC entry.

clear kerberos server kerberos_realm {hostname | ip_address} [port_number]

Syntax Description

kerberos_realm

Name of a Kerberos realm.

hostname

Name of the host running the KDC.

ip_address

IP address of the host running the KDC.

port_number

(Optional) 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 to the switch which KDC 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
Console> (enable) 

Related Commands

set kerberos server
show kerberos

clear key config-key

Use the clear key config-key command to remove a private 3DES key.

clear key config-key string

Syntax Description

string

Name of the 3DES key; the name should be no longer than 8 bytes.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to remove a private 3DES key:

Console> (enable)  clear key config-key abcd
Kerberos config key deleted
Console> (enable) 

Related Commands

set key config-key

clear lda

Use the clear lda command set 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

Keyword to remove configured LDs.

destination ip_addr_spec

(Optional) Full destination IP address or a subnet address in these formats: ip_addr, 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, 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 src_port

(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 dst_port

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


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

This command is supported only on switches configured with the Supervisor Engine 1 with Layer 3 Switching Engine WS-F6K-PFC (Policy Feature Card).

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, 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 addresses:

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 set to delete module, system error log, or dump log entries.

clear log [mod]

clear log dump

Syntax Description

mod

(Optional) Module number.

dump

Keyword to clear dump log entries.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

If you do not specify a module number, the system error log for the entire system is erased.

Examples

This example shows how to clear the system error log:

Console> (enable) clear log
System error log cleared.
Console> (enable) 

This example shows how to clear the dump log:

Console> (enable) clear log dump
Console> (enable) 

Related Commands

show log

clear log command

Use the clear log command command to clear the command log entry table.

clear log command [mod]

Syntax Description

mod

(Optional) Number of the module.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

The command log entry table is a history log of the commands input to the switch from the console or Telnet.

Examples

This example shows how to clear the command log table for the switch:

Console> (enable) clear log command
Local-log cleared
Console> (enable) 

This example shows how to clear the command log table for a specific module:

Console> (enable) clear log command 3
Module 3 log cleared.
Console> (enable) 

Related Commands

show log command

clear logging buffer

Use the clear logging buffer command to clear the system logging buffer.

clear logging buffer

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 system logging buffer:

Console> (enable) clear logging buffer
System logging buffer cleared.
Console> (enable)

Related Commands

show logging buffer

clear logging level

Use the clear logging level command to reset the logging level for a facility or for all facilities to their default settings.

clear logging level {facililty | all}

Syntax Description

facility

Name of the facility to reset; facility types are listed in Table 2-1.

all

Keyword to reset all facilities.


Table 2-1 Facility Types 

Facility Name
Definition

all

All facilities

acl

access control list

cdp

Cisco Discovery Protocol

cops

Common Open Policy Service Protocol

dtp

Dynamic Trunking Protocol

dvlan

Dynamic VLAN

earl

Enhanced Address Recognition Logic

filesys

file system facility

gvrp

GARP VLAN Registration Protocol

ip

Internet Protocol

kernel

Kernel

ld

ASLB facility

mcast

Multicast

mgmt

Management

mls

Multilayer Switching

pagp

Port Aggregation Protocol

protfilt

Protocol Filter

pruning

VTP pruning

privatevlan

Private VLAN facility

qos

Quality of Service

radius

Remote Access Dial-In User Service

rsvp

ReSerVation Protocol

security

Security

snmp

Simple Network Management Protocol

spantree

Spanning Tree Protocol

sys

System

tac

Terminal Access Controller

tcp

Transmission Control Protocol

telnet

Terminal Emulation Protocol

tftp

Trivial File Transfer Protocol

udld

User Datagram Protocol

vmps

VLAN Membership Policy Server

vtp

Virtual Terminal Protocol


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to reset a specific facility back to its default settings:

Console> (enable) clear logging level dtp
Current session and default severities of facility <dtp> set to factory default values.
Console> (enable)

This example shows how to reset all facilities back to their default settings:

Console> (enable) clear logging level all
Current session and default severities of all facilities set to factory default values.
Console> (enable)

Related Commands

set logging level
show logging

clear logging server

Use the clear logging server command to delete a syslog server from the system log server table.

clear logging server ip_addr

Syntax Description

ip_addr

IP address of the syslog server to be deleted.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

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) 

Related Commands

set logging server
show logging

clear mls cef

Use the clear mls cef command to clear CEF summary statistics.

clear mls cef

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

This command is supported on Catalyst 6000 family switches configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2) only.

Examples

This example shows how to clear CEF summary information:

Console> (enable) clear mls cef 
CEF statistics cleared.

Console> (enable)

Related Commands

show mls cef summary

clear mls entry

Use the clear mls entry command set to clear MLS entries in the Catalyst 6000 family switches.

clear mls entry [ip | ipx] all

clear mls entry ip destination ip_addr_spec [source ip_addr_spec] [protocol protocol] [src-port src_port] [dst-port dst_port]

clear mls entry ipx destination ipx_addr_spec

Syntax Description

ip

(Optional) Keyword to specify IP MLS.

ipx

(Optional) Keyword to specify IPX MLS.

all

Keyword to clear all MLS entries.

destination

Keyword to specify the destination IP address.

ip_addr_spec

Full IP address or a subnet address in these formats: ip_addr, ip_addr/netmask, or ip_addr/maskbit.

source ip_addr_spec

(Optional) Keyword and variable to specify the source IP address.

protocol protocol

(Optional) Keyword and variable to specify additional flow information (protocol family and protocol port pair) to be matched; valid values are 0 to 255 or ip, ipinip, icmp, igmp, tcp, and udp.

src-port src_port

(Optional) Keyword and variable to specify the source port IP address; valid values are 1 to 65535, dns, ftp, smtp, telnet, x (X-Windows), www.

dst-port dst_port

(Optional) Keyword and variable to specify the destination port IP address; valid values are 1 to 65535, dns, ftp, smtp, telnet, x (X-Windows), www.

ipx_addr_spec

Full IPX address or a subnet address in these formats: src_net/[mask], dest_net.dest_node, or dest_net/mask.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

This command is not supported on systems configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2). To clear entries on systems configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2), you must enter the clear mls entry cef adjacency command.

When entering the IPX address syntax, use the following format:

IPX net address—1..FFFFFFFE

IPX node address—x.x.x where x is 0..FFFF

IPX address—ipx_net.ipx_node (for example 3.0034.1245.AB45, A43.0000.0000.0001)

Up to 16 routers can be included explicitly as MLS-RPs.

To use a router as an MLS, you must meet these conditions:

The router must be included (either explicitly or automatically) in the MLS-SE.

The MLS feature must be enabled in the Catalyst 6000 family switches.

The Catalyst 6000 family switches must know the router's MAC-VLAN pairs.

Use the following syntax to specify an IP subnet address:

ip_subnet_addr—This is the short subnet address format. The trailing decimal number 00 in an IP address YY.YY.YY.00 specifies the boundary for an IP subnet address. For example, 172.22.36.00 indicates a 24-bit subnet address (subnet mask 172.22.36.00/255.255.255.0), and 173.24.00.00 indicates a 16-bit subnet address (subnet mask 173.24.00.00/255.255.0.0). However, this format can identify only a subnet address of 8, 16, or 24 bits.

ip_addr/subnet_mask—This is the long subnet address format. For example, 172.22.252.00/255.255.252.00 indicates a 22-bit subnet address. This format can specify a subnet address of any bit number. To provide more flexibility, the ip_addr is a full host address, such as 172.22.253.1/255.255.252.00.

ip_addr/maskbits—This is the simplified long subnet address format. The mask bits specify the number of bits of the network masks. For example, 172.22.252.00/22 indicates a 22-bit subnet address. The ip_addr is a full host address, such as 193.22.253.1/22, which has the same subnet address as the ip_subnet_addr.

If you do not use the all argument in the clear mls entry command, you must specify at least one of the other three keywords (source, destination, or protocol) and its arguments.

If no value or 0 is entered for src_port and dest_port, all entries are cleared.

When you remove an MSM from the Catalyst 6000 family switch, it is removed immediately from the inclusion list and all the MLS entries for the MSM are removed.

Examples

This example shows how to clear the MLS entries with destination IP address 172.20.26.22:

Console> (enable) clear mls entry destination 172.20.26.22 
Multilayer switching entry cleared.
Console> (enable)

This example shows how to clear specific IP MLS entries for destination IP address 172.20.26.22:

Console> (enable) clear mls entry ip destination 172.20.26.22 source 172.20.22.113 protocol tcp 520 320
Multilayer switching entry cleared
Console> (enable)

This example shows how to clear specific IPX MLS entries for a destination IPX address:

Console> (enable) clear mls entry ipx destination 1.00e0.fefc.6000 source 3.0034.1245.AB45 
IPX Multilayer switching entry cleared
Console> (enable)

Related Commands

show mls entry

clear mls entry cef adjacency

Use the clear mls entry cef adjacency command set to clear CEF adjacency statistics.

clear mls entry cef adjacency

clear mls entry cef ip [[ip_addr/]mask_len] adjacency

clear mls entry cef ipx [[ipx_addr/]mask_len] adjacency

Syntax Description

ip

Keyword to specify IP entries.

ipx

Keyword to specify IPX entries.

ip_addr

(Optional) IP address of the entry.

mask_len

(Optional) Mask length associated with the IP or IPX address of the entry; valid values are from 0 to 32.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

This command is supported on Catalyst 6000 family switches configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2).

To clear MLS entries on systems configured with the Supervisor Engine 1 with Layer 3 Switching Engine WS-F6K-PFC (Policy Feature Card), enter the clear mls entry command.

The ipx_addr is entered as 32-bit hexadecimal digits.

Examples

This example shows how to clear all adjacencies associated with CEF entries:

Console> (enable) clear mls cef entry adjacency
Adjacency statistics has been cleared.
Console> (enable) 

Related Commands

show mls entry cef