Catalyst 6500 Series Command Reference, 8.6
clear mls multicast statistics to clear vtp pruneeligible

Table Of Contents

clear mls multicast statistics

clear mls nde

clear mls nde flow

clear mls statistics

clear mls statistics entry

clear module password

clear msfcautostate

clear multicast router

clear ntp server

show ntpclear ntp timezone

clear packet-capture

clear pbf

clear pbf arp-inspection

clear pbf client

clear pbf gw

clear pbf-map

clear pbf vlan

clear policy

clear port broadcast

clear port cops

clear port eou

clear port ethernet-cfm

clear port ethernet-oam

clear port flexlink

clear port host

clear port qos autoqos

clear port qos cos

clear port security

clear port vlan-mapping

clear port web-auth

clear pvlan mapping

clear qos acl

clear qos autoqos

clear qos config

clear qos cos-cos-map

clear qos cos-dscp-map

clear qos dscp-cos-map

clear qos dscp-mutation-map

clear qos dscp-mutation-table-map

clear qos ipprec-dscp-map

clear qos mac-cos

clear qos map

clear qos policed-dscp-map

clear qos policer

clear qos statistics

clear radius

clear rcp

clear rgmp statistics

clear security acl

clear security acl capture-ports

clear security acl counters

clear security acl cram

clear security acl log flow

clear security acl map

clear security acl statistics

clear snmp access

clear snmp access-list

clear snmp community

clear snmp community-ext

clear snmp group

clear snmp ifalias

clear snmp inform

clear snmp notify

clear snmp targetaddr

clear snmp targetparams

clear snmp trap

clear snmp user

clear snmp view

clear spantree detected-protocols

clear spantree mst

clear spantree portcost

clear spantree portinstancecost

clear spantree portinstancepri

clear spantree portpri

clear spantree portvlancost

clear spantree portvlanpri

clear spantree root

clear spantree statistics

clear spantree uplinkfast

clear ssh mode

clear system info-log command

clear system profile

clear tacacs key

clear tacacs server

clear timezone

clear top

clear trunk

clear vlan

clear vlan counters

clear vlan mapping

clear vmps rcp

clear vmps server

clear vmps statistics

clear vtp pruneeligible

clear vtp statistics


22

clear mls multicast statistics

To remove MLS multicast statistics maintained by the MSFC on the switch, use the clear mls multicast statistics command.

clear mls multicast statistics [mod]

Syntax Description

mod

(Optional) Number of the MSFC; valid values are 15 and 16.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

If you enter the clear mls multicast statistics command on a Catalyst 6500 series switch without MLS, this warning message is displayed:

MLS Multicast is not supported on feature card.

If you place the MFSC on a supervisor engine installed in slot 1, the MFSC is recognized as module 15. If you install the supervisor engine in slot 2, the MFSC is recognized as module 16.

The mod option is not supported on switches configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2).

Examples

This example shows how to clear MLS statistics on a switch configured with the Supervisor Engine 1 with Layer 3 Switching Engine WS-F6K-PFC (Policy Feature Card):

Console> (enable) clear mls multicast statistics
All statistics for the MLS routers in include list are cleared.
Console> (enable)

This example shows how to clear MLS statistics on a switch configured with the Supervisor Engine 2 with Layer 3 Switching Engine II (PFC2):

Console> (enable) clear mls multicast statistics
All statistics cleared.
Console> (enable)

Related Commands

set port vlan-mapping
show mls statistics

clear mls nde

To clear primary and secondary NDE collector destinations and to disable NDE, use the clear mls nde command.

clear mls nde [IP_address port]

Syntax Description

IP_address

(Optional) IP address of a specific NDE collector destination.

port

(Optional) Port of a specific NDE collector destination.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

Entering the clear mls nde command without an IP address and port number clears both primary and secondary NDE collector destinations and disables NDE. To clear a specific NDE collector destination, you must specify an IP address and port for the destination. If the IP address does not specify a valid NDE collector destination, the command is rejected.

Examples

This example shows how to clear both the primary and secondary collectors:

Console> (enable) clear mls nde
Collector's IP address cleared.
Secondary Collector IP address cleared.
Console> (enable)

This example shows how to clear a specific collector destination:

Console> (enable) clear mls nde 10.6.1.10 9939
Cleared Collector IP 10.6.1.10 port 9939
Console> (enable)

This example shows the message that displays when the IP address does not specify a valid NDE collector destination:

Console> (enable) clear mls nde 10.6.1.10 1111
Specified address not a valid collector
Console> (enable)

Related Commands

set mls nde
show mls nde

clear mls nde flow

To reset the NDE filters in the Catalyst 6500 series switches, use the clear mls nde flow command.

clear mls nde flow

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

Clearing both exclusion and inclusion filters results in exporting of all flows.

Examples

This example shows how to clear the NDE exclusion and inclusion filters and export all flows:

Console> (enable) clear mls nde flow
Netflow data export filter cleared.
Console> (enable)

Related Commands

set mls nde
show mls exclude protocol

clear mls statistics

To clear hardware-installed MLS statistics entries, use the clear mls statistics command.

clear mls statistics

clear mls statistics protocol {protocol port} | all

Syntax Description

statistics

Clears total packets switched and total packets exported (for NDE).

statistics protocol

Clears protocols for statistics collection.

protocol

Number of the protocol in the protocol statistics list.

port

Number of the port.

all

Clears all entries from the statistics protocol list.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

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 6500 series switches.

Catalyst 6500 series switches must know the MAC-VLAN pairs on the router.

If you enter any of the clear mls statistics commands on a Catalyst 6500 series switch without MLS, this warning message displays:

Feature not supported in hardware.

When you remove an MSM from the Catalyst 6500 series 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 IP MLS statistics, including total packets switched and total packets exported (for NDE):

Console> (enable) clear mls statistics 
Netflow data export statistics cleared.
Console> (enable)

This example shows how to clear protocol 17, port 19344 from the statistics collection:

Console> (enable) clear mls statistics protocol 17 19344
Protocol 17 port 1934 cleared from protocol statistics list.
Console> (enable)

Related Commands

set mls statistics protocol
show mls statistics

clear mls statistics entry

To clear statistics for MLS entries, use the clear mls statistics entry command.

clear mls statistics entry [ip | ipx] all

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

clear mls statistics entry ipx destination ipx_addr_spec

Syntax Description

ip

(Optional) Specifies IP MLS.

ipx

(Optional) Specifies IPX MLS.

all

Purges all matching MLS entries.

destination

(Optional) Specifies the destination IP address.

ip_addr_spec

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

source

(Optional) Specifies the source IP address.

protocol protocol

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

src-port src_port

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

dst-port dst_port

(Optional) Specifies the destination port IP address; valid values are from 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

If you specify the ip keyword or do not enter a keyword, the command supports IP MLS. If you specify the ipx keyword, the command supports IPX only.

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

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 6500 series switches.

Catalyst 6500 series 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.

A 0 value for src_port and dest_port clears all entries. Unspecified options are treated as wildcards, and all entries are cleared.

If you enter any of the clear mls commands on a Catalyst 6500 series switch without MLS, this message is displayed:

Feature not supported in hardware.

Examples

This example shows how to clear all specific MLS entries:

Console> (enable) clear mls statistics entry ip all
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 statistics entry ipx destination 1.0002.00e0.fefc.6000
MLS IPX entry cleared.
Console> (enable)

Related Commands

show mls

clear module password

To clear the password set by the password username NAM command, use the clear module password command.

clear module password mod

Syntax Description

mod

Number of the NAM.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

This command is supported by the NAM only.

The password username command is a NAM command and not a supervisor engine console command.

A message is displayed when the password is successfully cleared. See the "Examples" section for an example of the message.

Examples

This example shows how to clear the password from the NAM:

Console> (enable) clear module password 6
Module 6 password cleared.
Console> (enable) 2000 Apr 07 11:03:06 %SYS-5-MOD_PASSWDCLR:Module 6 password cl
eared from telnet/10.6.1.10/tester
Console> (enable) 

Related Commands

password (Refer to the NAM Installation and Configuration Note.)

clear msfcautostate

To clear the MSFC autostate configuration, use the clear msfcautostate command.

clear msfcautostate {all | mod/ports}

Syntax Description

all

Clears the MSFC autostate configuration on all ports.

mod/ports

Module numbers and port numbers for which the MSFC autostate configuration is cleared.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to clear all MSFC autostate configurations:

Console> (enable) clear msfcautostate all
Console> (enable)

This example shows how to clear the MSFC autostate configuration on a specific port:

Console> (enable) clear msfcautostate 3/1
MSFC autostate config cleared on excluded port 3/1
Console> (enable)

Related Commands

set msfcautostate
show msmautostate

clear multicast router

To clear manually configured multicast router ports from the multicast router port list, use the clear multicast router command.

clear multicast router {mod/port | all}

Syntax Description

mod/port

Number of the module and the port on the module.

all

Specifies all multicast router ports to be cleared.


Defaults

The default configuration has no multicast router ports configured.

Command Types

Switch command.

Command Modes

Privileged.

Examples

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

To remove one or more servers from the NTP server table, use the clear ntp server command.

clear ntp server {ip_addr | all}

Syntax Description

ip_addr

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

all

Specifies all server addresses in the server table to be removed.


Defaults

The default configuration has no NTP servers configured.

Command Types

Switch command.

Command Modes

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 Commands

show ntpclear ntp timezone

To return the time zone to its default, UTC, use the clear ntp timezone command.

clear ntp timezone

Syntax Description

This command has no arguments or keywords.

Defaults

The default time zone is UTC.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

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

Examples

This example shows how to clear the time zone:

Console> (enable) clear ntp timezone
This command will clear NTP timezone and summertime zonename
Do you want to continue (y/n) [n]? y
Timezone name and offset cleared
Console> (enable) 

Related Commands

set ntp timezone
show ntp

clear packet-capture

To restore packet-capturing settings to their defaults for the Mini Protocol Analyzer feature, use the clear packet-capture command.

clear packet-capture {dump-file | filter | snap-length | limit | all}

Syntax Description

dump-file

Clears the packet-capture filename setting.

filter

Clears the packet-capture filter setting.

snap-length

Clears the packet-capture length setting.

limit

Clears the packet-capture limit setting.

all

Clears all the packet-capturing settings.


Defaults

This commands has not default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

This command restores default settings for the Mini Protocol Analyzer feature. See the commands that are listed in the "Related Commands" section for default settings.

Examples

This example shows how to clear the the dump filename:

Console> (enable) clear packet-capture dump-file
Packet capture File name cleared.
Console> (enable)

This example shows how to clear the packet-capture filter setting:

Console> (enable) clear packet-capture filter
Packet-capture filter(s) cleared.
Console> (enable)

This example shows how to clear the snap length:

Console> (enable) clear packet-capture snap-length
Packet-capture snap length cleared. The complete packet will be captured.
Console> (enable)

This example shows how to clear the default setting for the limit:

Console> (enable) clear packet-capture limit
Packet-capture limit cleared. Packets will be captured until the
specified flash device is full.
Console> (enable)

This example sets the default setting for all the packet-capture settings:

Console> (enable) clear packet-capture all
Packet-capture settings cleared.
Console> (enable)

Related Commands

set packet-capture
set packet-capture dump-file
set packet-capture filter
set packet-capture limit
set packet-capture snap-length
show packet-capture

clear pbf

To remove the MAC address for the PFC2, use the clear pbf command.

clear pbf

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

Refer to the "Configuring Policy-Based Forwarding" section of Chapter 16, "Configuring Access Control," in the Catalyst 6500 Series Switch Software Configuration Guide for detailed information about PBF.

Examples

Console> (enable) clear pbf
PBF cleared
Console> (enable)

Related Commands

set pbf
show pbf

clear pbf arp-inspection

To clear the ARP-inspection ACE from the ACL for a client list or a gateway, use the clear pbf arp-inspection command.

clear pbf arp-inspection list_name

Syntax Description

list_name

Client list or gateway list.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

If the ARP-inspection ACE is removed from the PBF ACL, the supervisor engine will no longer answer the ARP requests.

Examples

This example shows how to clear the ARP-inspection ACE from the ACL of a client list:

Console> (enable) clear pbf arp-inspection cl1
.ccl1 editbuffer modified. Use 'commit' command to save changes.
Console> (enable) ACL commit in progress.

ACL '.ccl1' successfully committed.
Console> (enable)

Related Commands

set pbf arp-inspection
show pbf arp-inspection

clear pbf client

To clear a client or all clients from the list, use the clear pbf client command.

clear pbf client client_list [ip_addr]

Syntax Description

client_list

Client list name.

ip_addr

(Optional) IP address.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

The clear pbf client command can be used only if there is no PBF map in place.

Examples

This example shows how to clear a client list:

Console> (enable) clear pbf client cl1
.c0001cl1 editbuffer modified. Use 'commit' command to apply changes.
Console> (enable) Commit operation successfull.
Console> (enable)

This example shows the message that displays if you try to clear a client list when there is a PBF map in place:

Console> (enable) clear pbf client cl1
Operation failed: clear pbf-map first.
Console> (enable)

Related Commands

clear pbf gw
clear pbf-map
set pbf client
set pbf gw
set pbf-map
show pbf client
show pbf gw
show pbf-map

clear pbf gw

To clear a gateway or all gateways, use the clear pbf gw command.

clear pbf gw gw_name [ip_addr]

Syntax Description

gw_name

Gateway name.

ip_addr

(Optional) IP address.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

The clear pbf gw command can be used only if there is no PBF map in place.

Examples

This example shows how to clear a gateway list:

Console> (enable) clear pbf gw gw1
.g0002gw1 editbuffer modified. Use 'commit' command to apply changes.
Commit operation successfull.

Console> (enable)

Related Commands

clear pbf client
clear pbf-map
set pbf client
set pbf gw
set pbf-map
show pbf client
show pbf gw
show pbf-map

clear pbf-map

To clear PBF map information, use the clear pbf-map command.

clear pbf-map {vlan vlan} | all | {ip_addr_1} {mac_addr_1} {vlan_1} {ip_addr_2} {mac_addr_2} {vlan_2}

clear pbf-map {client_list} {gw_name}

Syntax Description

vlan vlan

Clears the ACL with the name PBF_MAP_ACL_vlan and the adjacency table used by this ACL.

all

Clears all adjacency information and ACLs that were created by entering the set pbf-map command.

ip_addr_1

IP address of host 1.

mac_addr_1

MAC address of host 1.

vlan_1

Number of the first VLAN.

ip_addr_2

IP address of host 2.

mac_addr_2

MAC address of host 2.

vlan_2

Number of the second VLAN.

client_list

Client list name.

gw_name

Gateway list name.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

When you enter clear pbf-map {ip_addr_1} {mac_addr_1} {vlan_1} {ip_addr_2} {mac_addr_2} {vlan_2}, all ACEs that were created by entering the set pbf-map command are cleared, except permit ip any any. This command removes entries that enable traffic between hosts with ip_addr_1 and ip_addr_2 on the two specified VLANs.

Use the clear pbf-map command to delete the redirect-to-adjacency ACEs and adjacency information contained in the PBF_MAP_ACL_(VLAN_ID) ACL.

Use the clear security acl command to clear all other ACE types that are part of the PBF_MAP_ACL_vlan ACL.

If entries were already deleted by using the clear security acl command, a message appears that states that the specified entries were already cleared.

Examples

This example shows how to clear the ACL with the name PBF_MAP_ACL_11:

Console> (enable) clear pbf-map vlan 11
ACL 'PBF_MAP_ACL_11' successfully deleted.
Console> (enable) Commit operation successfull.
Console> (enable)

This example shows how to clear all adjacency information and ACLs that were created by entering the set pbf-map command:

Console> (enable) clear pbf-map all
ACL 'PBF_MAP_ACL_11' successfully deleted.
Console> (enable)
ACL 'PBF_MAP_ACL_22' successfully deleted.
Console> (enable)

This example shows how to clear all entries that enable traffic between the two specified hosts:

Console> (enable) clear pbf-map 1.1.1.1 0-0-0-0-0-1 11 2.2.2.2 0-0-0-0-0-2 22
ACL 'PBF_MAP_ACL_11' successfully committed.
Console> (enable)
ACL 'PBF_MAP_ACL_22' successfully committed.
Console> (enable)

This example shows how to clear the PBF mapping:

Console> (enable) clear pbf-map cl1 gw1
.ccl1 editbuffer modified. Use 'commit' command to save changes.
.ggw1 editbuffer modified. Use 'commit' command to save changes.
Console> (enable) ACL commit in progress.
Console> (enable) ACL commit in progress.

ACL '.ccl1' successfully deleted.
Console> (enable) 
ACL '.ggw1' successfully deleted.
Console> (enable)

Related Commands

clear pbf client
clear pbf gw
clear security acl
set pbf client
set pbf gw
set pbf-map
show pbf client
show pbf gw
show pbf-map

clear pbf vlan

To clear PBF-enabled VLANs and remove them from NVRAM, use the clear pbf vlan command.

clear pbf vlan vlan

Syntax Description

vlan

VLAN number.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

Using the clear pbf command does not clear the VLANs enabled for PBF. The clear pbf command does clear the Layer 2 table entries associated with the VLANs (because the MAC address is no longer valid). You must explicitly clear the PBF-enabled VLANs to remove them from NVRAM by entering the clear pbf vlan vlan command.

You can specify a range of VLANs in the CLI.

Examples

This example shows how to clear PBF on VLANs 11 and 12:

Console> (enable) clear pbf vlan 11-12
PBF disabled on vlan(s) 11-12
Console> (enable)

Related Commands

set pbf vlan
show pbf

clear policy

To clear an IP address from a policy group or to clear a policy group from a policy template, use the clear policy command.

clear policy group group_name ip-address ip_addr

clear policy name policy_name group group_name

clear policy name policy_name url-redirect

Syntax Description

group group_name

Clears policy group memberships.

ip-address ip_addr

Specifies IP address to be cleared from group membership.

name policy_name

Clears a policy group from a policy template.

url-redirect

Clears the URL redirect string that is associated with the policy name.


Command Default

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to clear an IP address from a policy group:

Console> (enable) clear policy group grp1 ip-address 100.1.1.1
Cleared IP 100.1.1.1 from policy group grp1.
Console> (enable)

This example shows how to clear a policy group from a policy template:

Console> (enable) clear policy name pol1 group grp1
Cleared group grp1 from policy template pol1.
Console> (enable)

This example shows how to clear the URL redirect string that is associated with a policy name:

Console> (enable) clear policy name exception_policy url-redirect
Unmapped Url-redirect http://cisco.com from policy name exception_policy
Console> (enable)

Related Commands

set policy
show policy

clear port broadcast

To disable broadcast/multicast suppression on one or more ports, use the clear port broadcast command.

clear port broadcast mod/port

Syntax Description

mod/port

Number of the module and the port on the module.


Defaults

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

Command Types

Switch command.

Command Modes

Privileged.

Examples

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 cops

To clear port roles, use the clear port cops command.

clear port cops mod/port roles role1 [role2]...

clear port cops mod/port all-roles

Syntax Description

mod/port

Number of the module and the port on the module.

roles role#

Specifies the roles to clear.

all-roles

Clears all roles.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

The clear port cops command detaches the roles from the port only; it does not remove them from the global table.

Examples

This example shows how to remove specific roles from a port:

Console> (enable) clear port cops 3/1 roles backbone_port main_port
Roles cleared for port(s) 3/1-4.
Console> (enable)

This example shows how to remove all roles from a port:

Console> (enable) clear port cops 3/1 all-roles
All roles cleared for port 3/1-4.
Console> (enable)

Related Commands

set port cops
show port cops

clear port eou

To clear the mapping of an AAA fail policy for EoU on a specified port, use the clear port eou command.

clear port eou mod[/port] aaa-fail-policy

Syntax Description

mod[/port]

Number of the module and optionally, the port on the module.

aaa-fail-policy

Clears the mapping of a AAA fail policy.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to clear an AAA fail policy on module 5, port 10:

Console> (enable) clear port eou 5/10 aaa-fail-policy
aaa-fail-policy cleared successfully on port 5/10
Console> (enable)

Related Commands

set port eou
show port eou

clear port ethernet-cfm

To clear the MEPs or MIPs for a specific port, use the clear port ethernet-cfm command.

clear port ethernet-cfm mod/port mep level level [vlan vlan]

clear port ethernet-cfm mod/port mip

Syntax Description

mod/port

Number of the module and the port on the module.

mep

Clears the Maintenance End Point (MEP) configuration on the specified port.

level level

Clears the specified maintenance level; valid values are from 0 to 7.

vlan vlan

(Optional) Clears the specified VLAN; valid values are from 1 to 4094.

mip

Clears the Maintenance Intermediate Point (MIP) configuration.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example clears the MEP configuration for module 2, port 1 with a maintenance level of 4:

Console> (enable) clear port ethernet-cfm 2/1 mep level 4
MEP config on Port 2/1 is cleared.
Console> (enable)

This example clears the MIP configuration for module 6, port 1:

Console> (enable) clear port ethernet-cfm 2/1 mip
MIP config on Port 6/1 is cleared.
Console> (enable)

clear port ethernet-oam

To clear the IEEE 802.3ah Operations, Administrations, and Maintenance (OAM) configuration on a specified port, use the clear port ethernet-oam command.

clear port ethernet-oam [mod/port]

clear port ethernet-oam [mod/port] statistics

clear port ethernet-oam mod/port {critical-event | link-fault} action

clear port ethernet-oam mod/port link-monitor {frame | frame-period | symbol-period}

{window | low-threshold | high-threshold}

Syntax Description

mod/port

Number of the module and the port on the module.

statistics

Clears OAM-related statistics.

critical-event

Clears the critical-event configuration.

link-fault

Clears the link-fault configuration.

action

Clears the specified action (critical-event or link-fault).

link-monitor

Clears the link-monitor configuration.

frame

Specifies monitoring by the number of frames with errors.

frame-period

Specifies monitoring by frame period.

symbol-period

Specifies monitoring by the number of symbols with errors.

window

Clears monitoring window.

low-threshold

Clears the low threshold and the corresponding action.

high-threshold

Clears the high threshold and the corresponding action.


Command Default

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Usage Guidelines

If you enter the clear port ethernet-oam mod/port without the statistics keyword, all OAM-related configurations are cleared on the specified ports. If you do not specify a port, all OAM-related configurations are cleared on all ports.

If you enter the statistics keyword, OAM-related counters are cleared on the specified port. If you do not specify a port, all OAM-related counters are cleared on all ports.

When you enter the low-threshold keyword or the high-threshold keyword, the corresponding associated action is also cleared.

Examples

This example shows how to clear OAM-related statistics on a specified port:

Console> (enable) clear port ethernet-oam 1/1 statistics
OAM counters cleared on port 1/1.
Console> (enable)

This example shows how to clear the high-threshold configuration for frame-period link monitoring:

Console> (enable) clear port ethernet-oam 1/1 link-monitor frame-period high-threshold
OAM errored frame period high-threshold set to default on port 1/1, and action set to 
default.
Console> (enable)

This example shows how to clear the action that a specified port takes in response to a link fault:

Console> (enable) clear port ethernet-oam 1/1 link-fault action
OAM link-fault event action set to default.
Console> (enable)

Related Commands

set port ethernet-oam
set port ethernet-oam action
set port ethernet-oam link-monitor
set port ethernet-oam mode
set port ethernet-oam remote-loopback
show port ethernet-oam

clear port flexlink

To clear an active-backup (peer) Flexlink pair of ports, use the clear port flexlink command.

clear port flexlink mod/port [peer mod/port]

Syntax Description

mod/port

Number of the module and the port on the module.

peer

(Optional) Specifies the peer port for the Flexlink active port.


Defaults

This command has no default settings.

Command Types

Switch command.

Command Modes

Privileged.

Examples

This example shows how to clear port 3/48 as the Flexlink active port and port 3/47 as the Flexlink backup (peer) port:

Console> (enable) clear port flexlink 3/48 peer 3/47
Port 3/48 and 3/47 flexlink pair cleared
Console> (enable)

Related Commands

set port flexlink
show port flexlink

clear port host

To clear the port configuration for optimizing a host connection, use the clear port host command.

clear port host mod/port

Syntax Description

mod/port

Number of the module and the port on the module.


Defaults