Catalyst 6500 Series Command Reference, 8.7
cd to clear mls exclude protocol

Table Of Contents

cd

clear acllog

clear acl mac-packet-classify

clear alias

clear arp

clear autoshut

clear banner motd

clear boot auto-config

clear boot device

clear boot system

clear cam

clear cam monitor

clear cam notification

clear channel statistics

clear config

clear config checkpoint

clear config pvlan

clear cops

clear counters

clear crypto key rsa

clear dhcp-snooping bindings

clear dhcp-snooping statistics

clear diagnostic

clear dot1x config

clear dot1x vlan-group

clear eou

clear ethernet-cfm

clear ftp

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 l2protocol-tunnel cos

clear l2protocol-tunnel statistics

clear lacp-channel statistics

clear lda

clear localuser

clear log

clear log command

clear logging buffer

clear logging callhome

clear logging callhome from

clear logging callhome reply-to

clear logging callhome severity

clear logging callhome smtp-server

clear logging level

clear logging server

clear macro

clear mac utilization

clear mls cef

clear mls cef rpf statistics

clear mls entry

clear mls entry cef

clear mls exclude protocol


22

cd

To set the default Flash device for the system, use the cd command.

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.

With commands where the device is an option, if the default device is not specified, the device set by the cd command is used.

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 acllog

To disable ACL log rate limiting, use the clear acllog command.

clear acllog

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 disable ACL log rate limiting:

Console> (enable) clear acllog
ACL log rate limit is cleared.
If the ACLs-LOG were already applied, the rate limit mechanism will be disabled on system 
restart, or after shut/no shut the interface.
Console> (enable) 

Related Commands

set acllog ratelimit
show acllog

clear acl mac-packet-classify

To match only MAC packets with MAC ACLs, use the clear acl mac-packet-classify command.

clear acl mac-packet-classify {vlans | all}

Syntax Description

vlans

VLAN list; valid values are 1 to 4094.

all

Specifies all VLANs.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

The MAC-based ACL feature is available only on a system with a PFC3B or a PFC3BXL. This feature affects both security ACLs and QoS MAC ACLs.

The specified VLAN reverts back to matching only MAC packets with MAC ACLs. The set acl mac-packet-classify command sets MAC-based ACL lookups for all packet types on a VLAN.

Examples

This example shows how to revert the specified VLAN back to matching only MAC packets with MAC ACLs:

Console> (enable) clear acl mac-packet-classify 5
Disabled mac-packet-classify on vlan(s) 5.
Console> (enable)

Related Commands

set acl mac-packet-classify
show acl mac-packet-classify

clear alias

To clear the abbreviated versions of commands, use the clear alias command.

clear alias {name | all}

Syntax Description

name

Alternate identifier of the command.

all

Clears 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

To delete a specific entry or all entries from the ARP table, use the clear arp command.

clear arp [all | dynamic | permanent | static] {ip_addr}

Syntax Description

all

(Optional) Clears all ARP entries.

dynamic

(Optional) Clears all dynamic ARP entries.

permanent

(Optional) Clears all permanent ARP entries.

static

(Optional) Clears 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 autoshut

To clear the runtime counters or reset the automatic module shutdown settings to the default settings, use the clear autoshut command.

clear autoshut {{counters mod} | frequency | period}

Syntax Description

counters mod

Clears the runtime counters for the specified module.

frequency

Resets the autoshut frequency to the default setting.

period

Resets the autoshut period to the default setting.


Defaults

The defaults are as follows:

frequency is three times.

period is two minutes.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

You can shut down a module manually using the set module disable or the set module power down commands.

This command is supported on Ethernet modules only.

Examples

This example shows how to clear the runtime counters on a specific module:

Console> (enable) clear autoshut counters 3
Automatic shutdown counters cleared for module 3
Console> (enable) 

This example shows how to reset the autoshut frequency to the default setting:

Console> (enable) clear autoshut frequency
Console> (enable) 

This example shows how to reset the autoshut period to the default setting:

Console> (enable) clear autoshut period
Console> (enable) 

Related Commands

set autoshut
set module autoshut
show autoshut

clear banner motd

To clear the message-of-the-day banner, use the clear banner motd command.

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

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

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

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

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

To clear the contents of the BOOT environment variable and the configuration register setting, use the clear boot system command.

clear boot system all [mod]

clear boot system flash device:[filename] [mod]

Syntax Description

all

Clears the whole BOOT environment variable.

mod

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

flash

(Optional) Clears 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 that 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

To delete a specific entry or all entries from the CAM table, use the clear cam command.

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

dynamic

Clears the dynamic CAM entries from the CAM table.

static

Clears the static CAM entries from the CAM table.

permanent

Clears 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 cam monitor

To clear the configuration for the MAC-address limits and actions, use the clear cam monitor command.

clear cam monitor {all | mod/port | vlan}

clear cam monitor high-threshold {mod/port | vlan}

clear cam monitor low-threshold {mod/port | vlan}

Syntax Description

all

Clears all CAM table monitoring and MAC-address limit configurations from all ports.

mod/port

Number of the module and the port on the module.

vlan

VLAN number; valid values are from 1 to 4094.

high-threshold

Clears the upper limit for MAC address learning.

low-threshold

Clears the lower limit for MAC address learning.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to clear all CAM table monitoring and MAC-address limit configurations from all ports:

Console> (enable) clear cam monitor all
Cleared all cam monitor configuration
Console> (enable)

This example shows how to clear the high threshold on port 3/1:

Console> (enable) clear cam monitor high-threshold 3/1
Successfully cleared high-threshold on 3/1

Console> (enable)

Related Commands

set cam monitor
show cam monitor

clear cam notification

To clear the CAM notification counters and history log, use the clear cam notification command.

clear cam notification {all | counters | history}

clear cam notification move counters [all | vlan]

Syntax Description

all

Clears the CAM notification counters and history log.

counters

Clears the CAM notification counters.

history

Clears the CAM notification history log.

move counters

Clears MAC move counters.

all

(Optional) Clears the MAC move counters for all VLANs.

vlan

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


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

The MAC move counters are not supported on EARL 4 and earlier.

Examples

This example shows how to clear the CAM notification counters and history log:

Console> (enable) clear cam notification all
MAC address notification counters and history log cleared.
Console> (enable)

This example shows how to clear the CAM notification counters:

Console> (enable) clear cam notification counters
MAC address notification counters cleared.
Console> (enable)

This example shows how to clear the CAM notification history log:

Console> (enable) clear cam notification history
MAC address notification history log cleared.
Console> (enable)

This example shows the output if you enter the command when MMC is disabled:

Console> (enable) clear cam notification move counters 
MAC move counters are disabled
Console> (enable) 

These examples show the output if you enter the command when MMC is enabled and you enter the all keyword:

Console> (enable) clear cam notification move counters all
This will clear the mac move counters for all the vlans.
Do you want to continue (y/n)? y
MAC move counters for all Vlans cleared
Console> (enable) 

Console> (enable) clear cam notification move counters all
This will clear the mac move counters for all the vlans.
Do you want to continue (y/n)? n
MAC move counters not cleared
Console> (enable) 

These examples show the output if you enter the command and specify a VLAN:

Console> (enable) clear cam notification move counters 2
This will clear the mac move counters for vlan 2.
Do you want to continue (y/n)? y
MAC move counters for Vlan 1 cleared
Console> (enable) 

Console> (enable) clear cam notification move counters 2
This will clear the mac move counters for vlan 2.
Do you want to continue (y/n)? n
MAC move counters not cleared
Console> (enable) 

Related Commands

set cam notification
set snmp trap
show cam notification

clear channel statistics

To clear PAgP statistical information, use the clear channel statistics command.

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

To clear the system or module configuration information stored in NVRAM, use the clear config command.

clear config {all [factory-defaults] | mod | acl nvram | interface | sysinfo-log | pvlan | rmon | snmpv3}

Syntax Description

all

Clears all module and system configuration information, including the IP address.

factory-defaults

(Optional) Clears the profile configuration.

mod

Number of the module.

acl nvram

Clears all ACL configurations.

interface

Clears all interface configurations.

sysinfo-log

Clears all system information logging configurations.

pvlan

Clears private VLAN configurations.

rmon

Clears all RMON configurations, including the historyControlTable, the alarmTable, the eventTable, and the ringStation ControlTable.

snmpv3

Clears all SNMP version 3 configurations.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

When you use a Multilayer Switch Module (MSM), you can enter the clear config command to clear the portion of the MSM configuration retained by the Catalyst 6500 series switch supervisor engine. You must clear the portion of the configuration kept by the MSM at the router level (at the router CLI prompt).

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

When you enter the clear config all command, the system loads the profile configuration if there is one. When you enter the clear config all factory-defaults command, both the system configuration and the profile configuration are cleared.

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 6500 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%

This example shows how to delete all the SNMP configuration information for the Catalyst 6500 series switches:

Console> (enable) clear config snmpv3
This command will clear SNMPv3 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) 

This example shows how to delete all system information logging configurations and return them to their default settings:

Console> (enable) clear config sysinfo-log
Successfully cleared the system information logging configuration.
Console> (enable)

This example shows how to clear both the system configuration and the profile configuration:

Console> (enable) clear config all factory-default
System configuration and profile configuration is cleared.
Console> (enable)

Related Commands

clear system info-log command
clear system profile
set config acl nvram
set system info-log
set system profile
show config qos acl
show system profile

clear config checkpoint

To clear all checkpoint configuration files or a particular configuration checkpoint file, use the clear config checkpoint command.

clear config checkpoint {all | name}

Syntax Description

all

Clears all configuration checkpoint files.

name

Name of a particular configuration checkpoint file to clear.


Defaults

This command has no default settings.

Command Modes

Switch command.

Command Types

Privileged.

Usage Guidelines

When a configuration checkpoint filename is cleared from the system, the associated checkpoint configuration file is deleted. You should squeeze the device to reclaim space.

The checkpoint configuration is not cleared when you enter the clear config all command.

Examples

This example shows how to clear all configuration checkpoint files:

Console> (enable) clear config checkpoint all
All configuration checkpoints cleared.
Console> (enable)

This example shows how to clear a particular configuration checkpoint file:

Console> (enable) clear config checkpoint SARAH_07122002
Cleared configuration checkpoint SARAH_07122002
Console> (enable)

Related Commands

set config checkpoint
set config rollback
show config checkpoints

clear config pvlan

To clear all private VLAN configurations in the system including port mappings, use the clear config pvlan command.

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

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

clear cops

To clear Common Open Policy Service (COPS) configurations, use the clear cops command.

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#

Specifies the roles to clear.

all-roles

Clears all roles.

server

Specifies the COPS server.

all

Clears all server tables.

diff-serv

(Optional) Specifies the differentiated services server table.

rsvp

(Optional) Specifies the RSVP+ server table.

ipaddr

IP address or IP alias of the server.

domain-name

Specifies 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

set cops
show cops

clear counters

To clear MAC counters, EtherChannel MAC counters, port counters, and the channel traffic percentile, use the clear counters command.

clear counters all

clear counters mod/ports

clear counters supervisor

clear counters channel {all | channel_id}

clear counters lacp-channel {all | channel_id}

Syntax Description

all

Clears MAC and port counters for all ports.

mod/ports

Number of the module and the ports on the module.

supervisor

Clears error counters for the supervisor engine.

channel

Clears PAgP channel MAC and port counters.

all

Clears all PAgP channel counters.

channel_id

Number of a specific PAgP channel.

lacp-channel

Clears LACP channel counters.

all

Clears all LACP channel counters.

channel_id

Number of a specific LACP channel.


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.

To clear channel-based counters on a per-channel basis, use the channel ID number. Enter the show port channel command to find the channel ID number for PAgP channels. Enter the show port lacp-channel command to find the channel ID number for LACP channels.

If you enter a channel-id argument that conflicts with the protocol type for the command, this message displays:

Wrong protocol type for the command.

If you enter a channel-id argument that is not in the correct channel-id range, this message displays:

Valid channel Id range 1665..1792.

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)

This example shows how to reset all PAgP channel counters:

Console> (enable) clear counters channel all
This command will reset MAC and port counters reported by the CLI for all ports.
Counters reported by SNMP will not be affected.
Do you want to continue (y/n) [n]? y
MAC and Port counters cleared.
Console> (enable)

This example shows how to reset the counters for a specific PAgP channel:

Console> (enable) clear counters channel 769
This command will reset MAC and port counters reported by the CLI for PAGP channel 769
Counters reported by SNMP will not be affected.
Do you want to continue (y/n) [n]? y
MAC and Port counters cleared.
Console> (enable) 

Related Commands

restore counters
show channel traffic
show port channel
show port counters
show port lacp-channel

clear crypto key rsa

To remove all RSA public-key pairs, use the clear crypto key rsa command.

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

show crypto key

clear dhcp-snooping bindings

To clear DHCP snooping binding table entries, use the clear dhcp-snooping bindings command.

clear dhcp-snooping bindings [ip_addr] [mac_addr] [vlan vlan] [port mod/port]

Syntax Description

ip_addr

(Optional) IP address.

mac_addr

(Optional) MAC address.

vlan vlan

(Optional) Specifies the VLAN.

port mod/port

(Optional) Specifies the module number and the port on the module.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

If you do not enter any arguments of keywords, all DHCP-bindings are cleared.

You should use caution when using this command because clearing a binding can affect Dynamic ARP Inspection (DAI), IP Source Guard, and other features that depend on DHCP snooping.

Examples

This example shows how to clear the DHCP snooping bindings on a specific IP address:

Console> (enable) clear dhcp-snooping bindings 172.20.22.191
DHCP Snooping binding entries cleared.
Console> (enable)

This example shows how to clear the DHCP snooping bindings on a specific MAC address:

Console> (enable) clear dhcp-snooping bindings 0-0-0-0-0-1
DHCP Snooping binding entries cleared.
Console> (enable)

This example shows how to clear the DHCP snooping bindings on a specific VLAN:

Console> (enable) clear dhcp-snooping bindings vlan 2
DHCP Snooping binding entries cleared.
Console> (enable)

This example shows how to clear the DHCP snooping bindings on a specific port:

Console> (enable) clear dhcp-snooping bindings port 2/2
DHCP Snooping binding entries cleared.
Console> (enable)

Related Commands

set port dhcp-snooping
show dhcp-snooping bindings

clear dhcp-snooping statistics

To clear DHCP snooping statistics, use the clear dhcp-snooping statistics command.

clear dhcp-snooping statistics

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

When you use the clear dhcp-snooping statistics command, all statistics except the number of bindings are cleared. To clear the bindings see the clear dhcp-snooping bindings command.

Examples

This example shows how to clear the DHCP snooping statistics:

Console> (enable) clear dhcp-snooping statistics
DHCP Snooping statistics cleared
Console> (enable)

Related Commands

show dhcp-snooping statistics

clear diagnostic

To clear the online diagnostic test configuration, use the clear diagnostic command.

clear diagnostic bootup level

clear diagnostic event-log size

clear diagnostic monitor {interval module mod_num test {all | test_ID_num | test_list} | module mod_num test {all | test_ID_num | test_list} | syslog}

clear diagnostic schedule module mod_num test {all | test_ID_num | test_list} {port {port_num | port_range | all} daily hh:mm | on month days_of_month range_of_years hh:mm | weekly day hh:mm}

Syntax Description

bootup level

Restores the diagnostic bootup level to bypass mode.

event-log size

Restores the diagnostic event log size to 500 events (default size).

monitor

Clears diagnostics monitoring.

interval module

Clears online diagnostic monitoring test intervals.

mod_num

Number of the module.

test

Specifies diagnostic tests.

all

Clears all online diagnostic tests.

test_ID_num

Number of a specific online diagnostic test.

test_list

List of tests to be cleared.

module

Disables diagnostic monitoring for a specific module.

syslog

Disables the syslog for online diagnostic tests.

schedule

Clears diagnostic test schedule

port

Specifies the ports on which the online diagnostic tests are run.

port_num

Number of the port.

port_range

Range of ports.

all

Specifies all ports.

daily

Specifies a daily schedule.

hh:mm

Hour and minute.

on

Specifies an absolute schedule.

month

Specifies the month.

days_of_month

Days of the month; valid values are from 1 to 31.

range_of_years

Range of years; valid values are from 1993-2035.

weekly

Specifies a weekly schedule.

day