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

Table of Contents

clear logging buffer
clear logging server
clear multicast router
clear ntp server
clear port broadcast
clear port qos cos
clear qos config
clear qos mac-cos
clear qos map
clear snmp trap
clear spantree portvlancost
clear spantree portvlanpri
clear spantree root
clear spantree statistics
clear spantree uplinkfast
clear tacacs key
clear tacacs server
clear timezone
clear top
clear trunk
clear vlan
clear vlan mapping
clear vtp pruneeligible

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.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to clear the system logging buffer:

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

show logging buffer

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.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Example

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 multicast router

Use the clear multicast router command to clear manually configured multicast router ports from the multicast router port list.

clear multicast router {mod_num/port_num | all}
Syntax Description

mod _num

Number of the module.

port_num

Number of the port on the module.

all

Keyword that specifies all multicast router ports to be cleared.

Default

The default configuration has no multicast router ports configured.

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to clear multicast router port 1 on module 3:

Console> (enable) clear multicast router 3/1
Port 3/1 cleared from multicast router port list. Console> (enable)
Related Commands

set multicast router
show multicast router

clear ntp server

Use the clear ntp server command to remove one or more servers from the NTP server table.

clear ntp server {ip_addr | all}
Syntax Description

ip_addr

IP address of the server to remove from the server table.

all

Keyword that specifies all server addresses in the server table to be removed.

Default

The default configuration has no NTP servers configured.

Command Type

Switch command.

Command Mode

Privileged.

Examples

This example shows how to remove a specific NTP server from the server table:

Console> (enable) clear ntp server 172.20.22.191
NTP server 172.20.22.191 removed.
Console> (enable)
 

This example shows how to remove all NTP servers from the server table:

Console> (enable) clear ntp server all
All NTP servers cleared.
Console> (enable)
Related Command

show ntp

clear port broadcast

Use the clear port broadcast command to disable broadcast/multicast suppression on one or more ports.

clear port broadcast mod_num/port_num
Syntax Description

mod_num

Number of the module.

port_num

Number of the port on the module.

Default

The default configuration has broadcast/multicast suppression cleared (that is, unlimited broadcast/multicast traffic allowed).

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to disable broadcast/multicast suppression:

Console> (enable) clear port broadcast 2/1
Broadcast traffic unlimited on ports 2/1.
Console> (enable)
Related Commands

set port broadcast
show port broadcast

clear port qos cos

Use the clear port qos cos command to return the values set by the set port qos cos command to the factory-set default values for all specified ports.

clear port qos mod/ports.. cos
Syntax Description

mod/ports..

Number of the module and port(s).

Default

The default CoS for a port is 0.

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to return the values set by the set port qos cos command to the factory-set default values for module 2, port 1:

Console> (enable) clear port qos 2/1 cos
Port 2/1 qos cos setting cleared.
Console> (enable) 
Related Commands

set port qos cos
show port qos

clear qos config

Use the clear qos config command to return the values set by the set qos command to the factory-set default values and delete the CoS assigned to MAC addresses.

clear qos config
Syntax Description

This command has no arguments or keywords.

Default

Refer to Table 2-1 for the QoS default settings:


Table 2-1: QoS Default Settings
Parameter Default
QoS enabled

Transmit drop thresholds

queue 1 - 40%, 100%
queue 2 - 40%, 100%

Receive drop thresholds

queue 1 - 50%, 60%, 80%, 100% if the port is trusted
queue 1 - 100%, 100%, 100%, 100% if the port is untrusted

WRR

100:255

Transmit queue size

80:20

CoS to threshold map

queue 1, threshold 1 - 0,1
queue 1, threshold 2 - 2,3
queue 2, threshold 1 - 4,5
queue 2, threshold 2 - 6,7

QoS disabled

Transmit drop thresholds

queue 1 - 100% 100%
queue 2 - 100% 100%

Receive drop thresholds

queue 1 - 100%, 100%, 100%, 100%

WRR

255:1

Transmit queue size

100:0

CoS to threshold map

queue 1, threshold 1 - 0,1,2,3,4,5,6,7

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to return the values set by the set qos command to the factory-set default values and delete the CoS assigned to MAC addresses:

Console> (enable) clear qos config
This command will disable QoS and take values back to factory default.
Do you want to continue (y/n) [n]? y
QoS config cleared.
Console> (enable) 
Related Commands

set qos
show qos info

clear qos mac-cos

Use the clear qos mac-cos command to clear the values set by the set qos mac-cos command.

clear qos mac-cos dest_mac [vlan]
clear qos mac-cos all
Syntax Description

dest_mac

Number of the destination host MAC address.

vlan

(Optional) Number of the VLAN.

all

Keyword to clear CoS values for all MAC/VLAN pairs.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

If the vlan number is not entered, all entries for the MAC address are cleared.

Example

This example shows how to clear the values set by the set qos mac-cos command and return to the factory-set default values for all MAC address and VLAN pairs:

Console> (enable) clear qos mac-cos all
All CoS to Mac/Vlan entries are cleared.
Console> (enable) 
 

This example shows how to clear the values set by the set qos mac-cos command and return to the factory-set default values for a specific MAC address:

Console> (enable) clear qos mac-cos 1-2-3-4-5-6 1
CoS to Mac/Vlan entry for mac 01-02-03-04-05-06 vlan 1 is cleared.
Console> (enable) 
Related Commands

set qos mac-cos
show qos mac-cos

clear qos map

Use the clear qos map command to return the values set by the set qos map command to the factory-set default values.

clear qos map port_type
Syntax Description

port_type

Port type value; the only valid value is 2q2t.

Default

The default mappings for all ports are shown in Table 2-2 and Table 2-3 and applies to all ports.


Table 2-2: Default Transmit Queue and Drop Threshold Mapping of CoS Values
Low delay (Queue 2) High delay (Queue 1)
Low drop (Threshold 2)

7,6

3,2

High drop (Threshold 1)

5,4

1,0


Table 2-3: Default Receive Drop Threshold Mapping of CoS Values
Threshold 1
(highest drop possibility)
Threshold 2 Threshold 3 Threshold 4
(lowest drop possibility)

0,1

2,3

4,5

6,7

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to return the values set by the set qos map command to the factory-set default values:

Console> (enable) clear qos map 2q2t
This command will take map values back to factory default.
QoS map cleared.
Console> (enable) 
Related Commands

set qos map
show qos info

clear snmp trap

Use the clear snmp trap command to clear an entry from the SNMP trap receiver table.

clear snmp trap {rcvr_addr | all}
Syntax Description

rcvr_addr

IP address or IP alias of the trap receiver (the SNMP management station) to clear.

all

Keyword that specifies every entry in the SNMP trap receiver table.

Default

The default configuration has no entries in the SNMP trap receiver table.

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to clear an entry from the SNMP trap receiver table:

Console> (enable) clear snmp trap 192.122.173.82
SNMP trap receiver deleted.
Console> (enable)
Related Commands

set snmp trap
show port counters
test snmp trap

clear spantree portvlancost

Use the clear spantree portvlancost command to restore the default path cost to a VLAN on a port.

clear spantree portvlancost mod_num/port_num [vlan_list]
Syntax Description

mod_num

Number of the module.

port_num

Number of the port.

vlan_list

(Optional) List of VLANs to clear. If not specified, all VLANs are cleared.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Examples

These examples show how to restore the default path cost to a VLAN on a port:

Console> (enable) clear spantree portvlancost 2/10 1-10
Port 2/10 VLANs 11-21 have path cost 6
Port 2/10 VLANs 1-10,22-1000 have path cost 10.
Console> (enable)
 
Console>(enable) clear spantree portvlancost 2/10
Port 2/10 VLANs 1-1000 have path cost 10.
Console> (enable)
Related Commands

set spantree portfast
show spantree statistics

clear spantree portvlanpri

Use the clear spantree portvlanpri command to reset the spanning-tree port VLAN priority.

clear spantree portvlanpri mod_num/port_num [vlans]
Syntax Description

mod_num

Number of the module.

port_num

Number of the port on the module.

vlans

(Optional) One or more VLANs.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to reset the spanning-tree port VLAN priority:

Console> (enable) clear spantree portvlanpri 1/2 23-40
Port 1/2 vlans 3,6-20,23-1000 using portpri 32
Port 1/2 vlans 1-2,4-5,21-22 using portpri 30 Console> (enable)
Related Commands

set spantree portvlanpri
show spantree

clear spantree root

Use the clear spantree root command to restore the switch priority and Spanning-Tree Protocol parameters to the factory default values.

clear spantree root [vlan_list]
Syntax Description

vlan_list

(Optional) List of the VLAN numbers to clear.

Default

The default configuration has the switch priority set to 32768.

Command Type

Switch command.

Command Mode

Privileged.

Examples

This example shows how to clear the spantree root on a range of VLANs:

Console>(enable) clear spantree root 1-20 
VLANs 1-20 bridge priority set to 32678.
VLANs 1-20 bridge hello time set to 2 seconds.
VLANs 1-20 bridge max aging time set to 20 seconds.
VLANs 1-20 bridge forward delay set to 15 seconds.
 

This example shows how to clear the spantree root on two specific VLANs:

Console>(enable) clear spantree root 22,24
VLANs 22,24 bridge priority set to 32678.
VLANs 22,24 bridge hello time set to 2 seconds.
VLANs 22,24 bridge max aging time set to 20 seconds.
VLANs 22,24 bridge forward delay set to 15 seconds.
Console> (enable)
Related Commands

set spantree root
show spantree

clear spantree statistics

Use the clear spantree statistics command to clear the spanning-tree statistics.

clear spantree statistics [vlan_list]
Syntax Description

vlan_list

(Optional) List of the VLAN numbers to clear.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to clear the spanning-tree statistics for VLAN 1:

Console>(enable) clear spantree statistics 1
Cleared all VLAN counters for VLAN 1
Statistics cleared for vlans 1
Console> (enable)
Related Command

show spantree statistics


clear spantree uplinkfast

Use the clear spantree uplinkfast command to turn off the UplinkFast feature and to return the switch priority and portcosts to the factory default values.

clear spantree uplinkfast
Syntax Description

This command has no arguments or keywords.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

This command could cause load balancing to be lost in some cases.

Example

This example shows how to turn off the UplinkFast feature and to return the switch priority to the factory default values:

Console>(enable) clear spantree uplinkfast
This command will cause all portcosts, portvlancosts, and the 
bridge priority on all vlans to be set to default.
Do you want to continue (y/n) [n]? y
VLANs 1-1005 bridge priority set to 32768.
The port cost of all bridge ports set to default value.
The portvlancost of all bridge ports set to default value.
uplinkfast disabled for bridge.
Console> (enable)
Related Commands

set spantree uplinkfast
show spantree uplinkfast

clear tacacs key

Use the clear tacacs key command to remove the key setting used for TACACS+ authentication and encryption.

clear tacacs key
Syntax Description

This command has no arguments or keywords.

Default

The default key value is null.

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to clear the key setting used for authentication and encryption:

Console> (enable) clear tacacs key
TACACS server key cleared.
Console> (enable) 
Related Commands

set tacacs key
show tacacs

clear tacacs server

Use the clear tacacs server command to remove a host from the list of TACACS+ servers.

clear tacacs server ip_addr
Syntax Description

ip_addr

IP address of the server to be removed from the list of TACACS+ servers.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Example

This example shows how to remove a server from the list of TACACS+ servers:

Console> (enable) clear tacacs server 170.1.2.20
170.1.2.20 cleared from TACACS table
Console> (enable)
Related Command

show tacacs

clear timezone

Use the clear timezone command to return the time zone to its default, UTC.

clear timezone
Syntax Description

This command has no arguments or keywords.

Default

The default time zone is UTC.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

The clear timezone command functions only when NTP is running. If you set the time manually and NTP is disengaged, the clear timezone command has no effect.

Example

This example shows how to clear the time zone:

Console> (enable) clear timezone
Timezone name and offset cleared.
Console> (enable)
Related Command

set timezone

clear top

Use the clear top command to stop the TopN process.

clear top {all | report_num}
Syntax Description

all

Keyword that stops all nonpending TopN results.

report_num

TopN report number to kill.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

The clear top all command will not kill any pending TopN reports. Only the reports with a done status are killed.

You can terminate TopN processes without the background option (use the show top background command to find out if the background option is used) by pressing Ctrl-C in the same Telnet/console session, or by entering the clear top [report_num] command from a separate Telnet/console session. The prompt is not printed before the TopN report is completely displayed. Other commands will be blocked until the report has been displayed.

Examples

This example shows how to stop the TopN 1 process from a console session:

Console> (enable) clear top 1
10/29/1998,12:05:38:MGMT-5: TopN report 1 killed by Console//.
Console> (enable)
 

This example shows how to stop the TopN 4 process from a Telnet session:

Console> (enable) clear top 4 
10/29/1998,12:06:00:MGMT-5: TopN report 4 killed by telnet/172.22.34.2/.
Console> (enable)
Related Commands

show top
show top report

clear trunk

Use the clear trunk command to restore a trunk port to its default trunk type and mode or to clear specific VLANs from the allowed VLAN list for a trunk port.

clear trunk mod_num/port_num [vlans]
Syntax Description

mod_num

Number of the module.

port_num

Number of the port on the module.

vlans

(Optional) One or more VLANs to remove from the allowed VLAN list for the trunk port.

Default

If you do not specify any VLANs, the mode is set to auto for ISL trunk ports and off for other trunk ports. For more information about auto and off modes, see the set trunk command.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

If you specify VLANs, those VLANs are removed from the list of VLANs allowed on the trunk. Default VLANs cannot be cleared on the trunk.

Traffic for the removed VLANs are not forwarded over a trunk port. To add VLANs that you have removed, use the set trunk mod_num/port_num vlan_range command.

Examples

This example shows how to clear VLANs 200 through 500 from the trunk port on port  2 of module  1:

Console> (enable) clear trunk 1/2 200-500
Removing Vlan(s) 200-500 from allowed list.
Port 1/2 allowed vlans modified to 1-199,501-1000.
Console> (enable)

This example shows how to clear the trunk on port  2 of module  1:

Console> (enable) clear trunk 1/2
Port(s) 1/2 trunk mode set to auto.
Port(s) 1/2 trunk type set to isl.
Console> (enable)
Related Commands

set trunk
show trunk

clear vlan

Use the clear vlan command to delete an existing VLAN from a management domain.

clear vlan vlan_num
Syntax Description

vlan_num

Number of the VLAN (range is 2 to 1000).

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines
Caution
When you clear a VLAN, depending on the VTP configuration in the network, it might delete the VLAN from the entire VTP domain, which means every switch in the domain could delete that VLAN.

If the configured switch is a VTP server and all or some of the other switches in the network are VTP clients, the change propagates to all the clients. For example, those clients will remove the VLAN from their configuration. Servers and transparent switches are unaffected; they keep the VLAN even if the VLAN is deleted by another server.

When you clear a VLAN, all ports assigned to that VLAN become inactive. However, the VLAN port assignments are retained until you move the ports to another VLAN. If the cleared VLAN is reactivated, all ports still configured on that VLAN are also reactivated.

A warning is displayed if you clear a VLAN that exists in the mapping table.

Example

This example shows how to clear existing VLAN 4 from a management domain:

Console> (enable) clear vlan 4
This command will de-activate all ports on vlan 4
in the entire management domain
Do you want to continue(y/n) [n]? y
VTP: VLAN 4 deletion successful Console> (enable)
Related Commands

set vlan
show vlan

clear vlan mapping

Use the clear vlan mapping command to delete existing 802.1Q VLAN to ISL VLAN-mapped pair(s).

clear vlan mapping dot1q 1q_vlan_num | all
Syntax Description

dot1q

Keyword to specify the VLAN type as 802.1Q.

1q_vlan_num

Number identifying the 802.1Q VLAN.

all

Keyword to clear the mapping table of all entries.

Default

This command has no default setting.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

When you clear a VLAN, all ports assigned to that VLAN become inactive. However, the VLAN port assignments are retained until you move the ports to another VLAN. If the cleared VLAN is reactivated, all ports still configured on that VLAN are also reactivated.

Examples

This example shows how to clear an existing mapped VLAN (VLAN 4) from the mapping table:

Console> (enable) clear vlan mapping dot1q 444
Vlan Mapping 444 Deleted.
Console> (enable) 
 

This example shows how to clear all mapped VLANs from the mapping table:

Console> (enable) clear vlan mapping dot1q all
All Vlan Mapping Deleted.
Console> (enable) 
Related Commands

set vlan
show vlan

clear vtp pruneeligible

Use the clear vtp pruneeligible command to specify which VLANs in the VTP domain are ineligible for pruning.

clear vtp pruneeligible vlan_num
Syntax Description

vlan_num

Number of VLANs to make pruning ineligible.

Default

The default is VLANs 2 through 1000 are eligible for pruning.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guidelines

VTP pruning causes information about each pruning-eligible VLAN to be removed from VTP updates if no stations belong to that VLAN out a particular switch port. Use the set vtp command to enable VTP pruning.

By default, VLANs 2 through 1000 are pruning eligible. Use the clear vtp pruneeligible command to make VLANs pruning ineligible.

If VLANs are pruning ineligible, use the set vtp pruneeligible command to make the VLANs pruning eligible again.

Example

This example shows how to make VLANs 200 through 500 pruning ineligible:

Console> (enable) clear vtp pruneeligible 200-500
Vlans 1,200-500,1001-1005 will not be pruned on this device.
VTP domain Company modified.
Console> (enable)
Related Commands

set vtp
set vtp pruneeligible
show vtp domain


hometocprevnextglossaryfeedbacksearchhelp
Posted: Thu Feb 4 18:30:38 PST 1999
Copyright 1989-1999©Cisco Systems Inc.