|
|
2
Use the clear kerberos server command to clear a specified key distribution center (KDC) entry.
clear kerberos server kerberos-realm {hostname | ip-address} [port_num]
Syntax Description
kerberos-realm Name of a Kerberos realm. hostname Keyword that specifies the name of host running the KDC. ip-address Keyword that specifies the IP address of host running the KDC. port_num Number of the port on the module.
Defaults
This command has no default setting.
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
Use the clear kerberos srvtab entry command to clear the SRVTAB file that is entered directly into the switch from the command line.
clear kerberos srvtab entry kerberos-principal principal-type
Syntax Description
kerberos-principal Service on the switch. principal-type Version of the Kerberos SRVTAB.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear a SRVTAB file entered directly into the switch:
kerberos> (enable) clear kerberos srvtab entry host/niners.cisco.com@CISCO.COM 0 kerberos> (enable)
Related Commands
set kerberos srvtab entry
set kerberos srvtab remote
Use the clear key config-key command to clear the configuration key.
clear key config-keyDefaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to delete a DES key:
Console> (enable) clear key config-key
Related Commands
Use the clear log command to delete module or system error log entries.
clear log [mod_num]
Syntax Description
mod_num (Optional) Module number.
Defaults
This command has no default setting.
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)
Related Commands
Use the clear logging buffer command to clear the system logging buffer.
clear logging bufferSyntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
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
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 setting.
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 192.168.255.255
System log server 192.168.255.255 removed from system log server table. Console> (enable)
Related Commands
set logging server
show logging
Use the clear mls entry ip command to clear IP MLS cache entries.
clear mls entry ip [destination ip_addr_spec] [source ip_addr_spec] [flow protocol src_port
Syntax Description
destination (Optional) Keyword that specifies the destination address. ip_addr_spec (Optional) Full IP address or a subnet address in these formats: ip_addr or ip_addr/netmask or ip_addr/maskbit. source (Optional) Keyword that specifies the source IP address. flow (Optional) Keyword that specifies additional flow information (protocol family and protocol port pair) to be matched. protocol (Optional) Keyword that specifies flows matching the specified protocol. Valid values include TCP, UDP, ICMP, or a decimal number for other protocol families. src_port (Optional) Source protocol port. dst_port (Optional) Destination protocol port. all (Optional) Keyword that specifies to remove all IP MLS cache entries.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
Use the following syntax to specify an IP subnet address:
When you remove an RSM or a supervisor engine with the RSFC from the Catalyst 5000 family switch, it is removed immediately from the inclusion list and all the MLS entries for the RSM or RSFC are removed.
If you do not use the all argument in the clear mls entry ip command, you must specify at least one of the other three keywords (source, destination, or flow) and its arguments.
A 0 value for source_port and destination_port clears all entries. Unspecified options are treated as wildcards, and all entries are cleared.
Examples
This example shows how to clear the MLS entries with destination IP address 192.168.255.255:
Console>(enable) clear mls entry destination 192.168.255.255 Multilayer switching entry cleared. Console>(enable)
This example shows how to clear specific IP MLS entries for destination IP address 192.168.255.255:
Console>(enable) clear mls entry destination 192.168.255.255 source 192.168.253.254 flow tcp 520 320 Multilayer switching entry cleared Console>(enable)
Related Commands
Use the clear mls entry ipx command to clear IPX MLS cache entries.
clear mls entry ipx [destination ipx_addr_spec] [source ipx_addr_spec] [all]
Syntax Description
destination (Optional) Keyword that specifies the destination address. ipx_addr_spec (Optional) Full IPX address. source (Optional) Keyword that specifies the source IP address. all (Optional) Keyword that specifies to remove all IPX MLS cache entries.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
When entering the IPX address syntax, use the following format:
If you do not use the all argument in the clear mls entry ipx command, you must specify at least one of the other two keywords (source, or destination) and its argument.
Examples
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
Use the clear mls include ip command to remove routers from the IP MLS-RP include list.
clear mls include ip {ip_addr | all}
Syntax Description
ip_addr IP address or host name of the router to remove from the IP MLS-RP include list. all Keyword that specifies to remove all routers from the IP MLS-RP include list.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
When you physically remove an RSM or RSFC from the Catalyst 5000 family switch, it is removed immediately from the inclusion list, and all the MLS cache entries for the RSM or RSFC are removed.
Examples
This example shows how to remove a router from the IP MLS-RP include list:
Console> (enable) clear mls include ip Stargate Multilayer switching is disabled for router 192.168.255.255 (Stargate) Console>(enable)
Related Commands
Use the clear mls include ipx command to remove routers from the IPX MLS-RP include list.
clear mls include ipx {ip_addr | all}
Syntax Description
ip_addr IP address or host name of the router to remove from the IPX MLS-RP include list. all Keyword that specifies to remove all routers from the IPX MLS-RP include list.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
When you physically remove an RSM or RSFC from the Catalyst 5000 family switch, it is removed immediately from the inclusion list, and all the MLS cache entries for the RSM or RSFC are removed.
Examples
This example shows how to remove a router from the IPX MLS-RP include list:
Console> (enable) clear mls include ipx Stargate Multilayer switching is disabled for router 192.168.255.255 (Stargate) Console>(enable)
Related Commands
Use the clear mls multicast include command to remove a router from the IP multicast MLS-RP include list.
clear mls multicast include {ip_addr | all}
Syntax Description
ip_addr IP address or host name of the router to remove from the IP MMLS-RP include list. all Keyword that specifies to remove all routers from the IP MMLS-RP include list.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
When you physically remove an RSM or RSFC from the Catalyst 5000 family switch, it is removed immediately from the inclusion list, and all the MLS cache entries for the RSM or RSFC are removed.
Examples
This example shows how to remove all routers from the MMLS-RP include list:
Console> (enable) clear mls multicast include all
All MLS routers are deleted from the include list.
Console>(enable)
This example shows how to remove a specific router from the MMLS-RP include list using its IP address:
Console> (enable)clear mls multicast include 172.20.53.4MLS Router 172.20.53.4 is deleted from the include list.Console>(enable)
Related Commands
set mls multicast
show mls multicast entry
Use the clear mls multicast statistics command to clear IP multicast MLS statistics for all MMLS-RPs.
clear mls multicast statistics rp
Syntax Description
rp Keyword that specifies to clear IP multicast MLS statistics for all MMLS-RPs.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
This example shows how to clear IP multicast MLS statistics for all MMLS-RPs:
Console> (enable)clear mls statistics rpAll statistics for the MLS routers in include list are cleared.Console>(enable)
Related Commands
set mls multicast
show mls multicast entry
Use the clear mls nde command to clear the MLS NetFlow Data Export (NDE) flow filter.
clear mls nde flow
Syntax Description
flow Keyword that specifies to return the MLS NDE flow filter to the default configuration.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
Examples
This example shows how to clear the NDE filter and export all flows:
Console> (enable) clear mls nde flow Netflow data export filter cleared. Console>(enable)
Related Commands
Use the clear mls statistics command to clear IP or IPX MLS statistics on the switch.
clear mls statistics
Syntax Description
statistics Keyword that specifies to clear MLS statistics, including total packets switched and total packets exported (for NDE). protocol Keyword that specifies the protocol for which to clear statistics. protocol Number of the protocol for which to clear statistics. port Number of the protocol port for which to clear statistics. all Keyword that specifies that statistics for all protocols be cleared.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
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 statistics collection:
Console> (enable) clear mls statistics protocol 17 19344 Protocol 17 port 1934 cleared from protocol statistics list. Console>(enable)
Related Commands
show mls rp
show mls statistics
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.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove port 1 on module 3 from the list of multicast router ports:
Console> (enable) clear multicast router 3/1Port 3/1 cleared from multicast router port list.Console> (enable)
Related Commands
set multicast router
show multicast router
Use the clear ntp key command to remove all authentication keys or a specific authentication key.
clear ntp key {public_keynum | all}
Syntax Description
public_keynum Number of the key pair; valid values are 1 to 4292945295. all Keyword that specifies to remove all authentication keys.
Defaults
There is no default setting for this command.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear an NTP authentication key:
Console> (enable)clear ntp key 435NTP key 435 cleared.Console> (enable)
Related Commands
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 that all server addresses in the server table be removed.
Defaults
The default configuration has no NTP servers configured.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear 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 clear all NTP servers from the server table:
Console> (enable) clear ntp server all All NTP servers cleared. Console> (enable)
Related Commands
Use the clear port broadcast command to disable broadcast/multicast suppression on one or more ports.
clear port broadcast mod/ports...
Syntax Description
mod/ports... Number of the module and the ports.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
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
Use the clear port filter command to clear configured MAC address or protocol filters.
clear port filter [mod_num/port_num] [mac_addr | protocol_type | all]
Syntax Description
mod_num/ port_num (Optional) Number of the module and the ports on the module. mac_addr (Optional) MAC address on which the filter that you want to clear is based. This address can be entered in canonical format (00-11-33-44-55) or in noncanonical format (00:11:22:33:44:55). protocol_type (Optional) Protocol type on which the filter that you want to clear is based. all (Optional) Keyword that specifies that all filters be cleared.
Defaults
The command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
This example shows how to clear a MAC address filter (00:40:0b:01:bc:65) configured on port 2 of module 3:
Console> (enable) clear port filter 3/2 00:40:0b:01:bc:65 Port 3/2 filter Mac Address 00:40:0b:01:bc:65 cleared. Console> (enable)
Related Commands
set port filter
show port filter
Use the clear port host command to return access ports back to the system default configuration.
clear port hostSyntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear port host 1 on module2:
Console> (enable) clear port host 2/1 Port(s) 2/1 trunk mode set to auto. Spantree port 2/1 fast start disabled. Port(s) 2/1 channel mode set to auto. Console> (enable)
This example shows how to clear port hosts 1-4 on module 2:
Console> (enable) clear port host 2/1-4 Port(s) 2/1 trunk mode set to auto. Port(s) 2/2 trunk mode set to auto. Port(s) 2/3 trunk mode set to auto. Port(s) 2/4 trunk mode set to auto. Spantree ports 2/1-4 fast start disabled. Port(s) 2/1 channel mode set to auto. Port(s) 2/2 channel mode set to auto. Port(s) 2/3 channel mode set to auto. Port(s) 2/4 channel mode set to auto. console> (enable)
Related Commands
Use the clear port qos cos command to return the values set by the set port qos command to the default values for all specified ports.
clear port qos mod/ports... cos
Syntax Description
mod/ports... Number of the module and ports.
Defaults
The default CoS for a port is 0.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
This example shows how to return the values set by the set port qos command to the default values for module 2, port 1:
Console> (enable)clear port qos 2/1 cosPort 2/1 qos cos setting cleared.Console> (enable)
Related Commands
Use the clear port security command to clear all MAC addresses or a specific MAC address from the list of secure MAC addresses on a port.
clear port security mod_num/port_num {mac_addr | all}
Syntax Description
mod_num/ port_num (Optional) Number of the module and the ports on the module. mac_addr Specific MAC address to be deleted. all Keyword that removes all MAC addresses.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove a specific MAC address from a port's list of secure addresses:
Console> (enable)clear port security 4/1 00-11-22-33-44-5500-11-22-33-44-55 cleared from secure address list list for port 4/1.Console> (enable)
Related Commands
set port security
show port security
Use the clear qos config command to return the values set by the set qos command to the default values and deletes the CoS-to-MAC address mappings.
clear qos configSyntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches, Catalyst 4000 family switches, and the Catalyst 2948G and 2980G switch.
Examples
This example shows how to return the values set by the set qos command to the 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
Use the clear qos defaultcos command to restore the default CoS value for the entire switch.
clear qos defaultcosSyntax Description
This command has no arguments or keywords.
Defaults
The default CoS for the entire switch is CoS equals 0.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 4000 family switches and the Catalyst 2948G and 2980G switch.
Examples
This example shows how to restore the default CoS value for the entire switch:
Console> (enable) clear qos defaultcos qos defaultcos setting cleared. Console> (enable)
Related Commands
Use the clear qos ip-filter command to delete entries from the ACE list.
clear qos ip-filter {ACE# | all}
Syntax Description
ACE# Number of the current position in the ACE list. all Keyword that specifies all the entries in the ACE list.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported only on Catalyst 5000 family switches with Supervisor Engine II G or III G, or Supervisor Engine III or III F with the NFFC II.
Examples
This example shows how to remove a specific entry from the ACE list:
Console> (enable)clear qos ip-filter 3qos ip-filter 3 is cleared.Console>(enable)
This example shows how to remove all entries from the ACE list:
Console>(enable)clear qos ip allqos ip-filter are all cleared.Console>(enable)
Related Commands
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]
Syntax Description
dest_mac Destination host MAC address. vlan (Optional) Number of the VLAN. all Keyword that specifies to clear CoS values for all MAC/VLAN pairs.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported only on Catalyst 5000 family switches with Supervisor Engine II G or III G, or Supervisor Engine III or III F with the NFFC II.
If the vlan number is not entered, all entries for the MAC address are cleared.
Examples
This example shows how to clear the values set by the set qos mac-cos command and return to the default values for all MAC address and VLAN pairs:
Console> (enable) clear qos mac-cos allAll 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 default values for a specific MAC address:
Console> (enable)clear qos mac-cos 1-2-3-4-5-6 1CoS 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
Use the clear qos map command to return the CoS-to-transmit queue and drop threshold values to their default values.
clear qos map port_type
Syntax Description
port_type Port type. Valid port types are 1q4t and 2q1t.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches, Catalyst 4000 family switches, and the 2948G and 29890G switch.
On the Catalyst 5000 family switches, this command is supported only with Supervisor Engine II G or III G, or Supervisor Engine III or III F with the NFFC II.
Examples
This example shows how to return the CoS-to-transmit queue and drop threshold mappings to the default values on 1q4t ports:
Console> (enable) clear qos map 1q4t Qos map setting cleared. Console> (enable)
Related Commands
Use the clear qos router-mac command to remove entries from the list of router MAC address-to-VLAN mappings on which to perform ACE-based classification.
clear qos router-mac mac_address vlan
Syntax Description
mac_addr MAC address to remove from the list of router MAC address-to-VLAN mappings. This address can be entered in canonical format (00-11-33-44-55) or in noncanonical format (00:11:22:33:44:55). vlan VLAN number mapped to the specified router MAC address. Valid values are 1 to 1005. all Keyword that removes all entries from the list of router MAC address-to-VLAN mappings.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported only on Catalyst 5000 family switches with Supervisor Engine II G or III G, or Supervisor Engine III or III F with the NFFC II.
Examples
This example shows how to remove a specific entry from the list of router MAC address-to-VLAN mappings:
Console> (enable)clear qos router-mac 00-40-0b-30-03-48 2QoS Router MAC/Vlan(s) cleared.Console> (enable)
Related Commands
set qos router-mac
show qos info
Use the clear radius key command to clear all or one of the RADIUS shared keys from the RADIUS shared key table.
clear radius key
Syntax Description
key Keyword that specifies the RADIUS shared key.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the RADIUS key:
Console> (enable)clear radius keyRadius server key cleared.Console> (enable)
Related Commands
Use the clear radius server command to clear all or one of the RADIUS servers from the RADIUS server table.
clear radius server all
Syntax Description
server Keyword that specifies specific RADIUS servers. all Keyword that specifies all RADIUS servers. ipaddr Number of the IP address or IP alias in dotted decimal notation, for example, 101.102.103.104.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear a specific RADIUS server from the RADIUS server table:
Console> (enable)clear radius server 192.168.255.255192.168.255.255 cleared from radius server table.Console> (enable)
Related Commands
Use the clear rgmp statistics command to clear RGMP statistics information for all VLANs.
clear rgmp statisticsSyntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
This example shows how to clear the RGMP statistics on the switch:
Console> (enable) clear rgmp statistics RGMP statistics cleared. Console> (enable)
Related Commands
Use the clear snmp access command to remove the access rights of an SNMP group with a specific security model and security level.
clear snmp access {-hex} {groupname} {security-model {v1 | v2c}}
Syntax Description
-hex Keyword that displays the groupname as a hexadecimal format. groupname SNMP access table name. security-model v1| v2c Keywords that specify the security model v1 or v2c. security-model v3 Keywords to specify security model v3. noauthentication Security model is not set to use authentication protocol. authentication Indicates the type of authentication protocol. privacy Messages sent on behalf of the user is protected from disclosure.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for groupname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear SNMP access for a group:
Console> (enable) clear snmp access cisco-group security-model v3 authentication Cleared snmp access cisco-group version v3 level authentication. Console> (enable)
Related Commands
set snmp access
show snmp
clear config
Use the clear snmp group command to clear the SNMP user from an SNMP group.
clear snmp group {-hex} {groupname} user {-hex} {username}
Syntax Description
groupname Name of the SNMP group that defines an access control. user Keyword that specifies the SNMP group user name. -hex Keyword that displays the groupname and username as a hexadecimal format. username Name of the SNMP user. security model v1 | v2 | v3 Keywords that specifies security model v1, v2c, or v3.
Defaults
This command has no default settings.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for groupname or username (nonprintable delimiters for these parameters), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear the SNMP group from the vacmAccessTable:
Console> (enable) clear snmp group cisco-group user joe security-model v3 Cleared snmp group cisco-group user joe version v3. Console> (enable)
Related Commands
Use the clear snmp notify command to clear the SNMP notifyname in the SNMP Notify Table.
clear snmp notify {-hex} {notifyname}
Syntax Description
-hex Keyword that displays the notifyname as a hexadecimal format. notifyname A unique identifier to index the snmpNotifyTable.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for notifyname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear an SNMP notifyname from the snmpNotifyTable:
Console> (enable) clear snmp notify joe Cleared SNMP notify table joe. Console> (enable)
Related Commands
Use the clear snmp targetaddr command to clear the SNMP target address entry in the TargetAddressTable.
clear snmp targetaddr {-hex} {addrname}
Syntax Description
-hex Keyword that displays the addrname as a hexadecimal format. addrname An arbitrary but unique name of the target agent; the maximum length is
32 bytes.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for addrname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear an SNMP target address entry in the snmpTargetAddressTable:
Console> (enable) clear snmp targetaddr joe Cleared SNMP targetaddr joe. Console> (enable)
Related Commands
Use the clear snmp targetparams command to clear the SNMP target parameters used in the snmpTargetParamsTable.
clear snmp targetparams {-hex} {paramsname}
Syntax Description
-hex Keyword to display the paramsname as a hexadecimal format. paramsname Name of the target parameter in the snmpTargetParamsTable; the maximum length is 32 bytes.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for paramsname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to clear the SNMP target parameters in the snmpTargetParamsTable:
Console> (enable) clear snmp targetparams joe Cleared SNMP targetparams table joe. Console> (enable)
Related Commands
set snmp targetparams
show snmp
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; in dotted decimal notation, for example, 101.102.103.104. all Keyword that specifies every entry in the SNMP trap receiver table.
Defaults
The default configuration has no entries in the SNMP trap receiver table.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear an entry from the SNMP trap receiver table:
Console> (enable) clear snmp trap 192.168.255.255 SNMP trap receiver deleted. Console> (enable)
Related Commands
set snmp trap
show port counters
test snmp trap
Use the clear snmp user command to remove an SNMP user.
clear snmp user {-hex} {username} [remote {engineid}]
Syntax Description
-hex Keyword that displays the username as a hexadecimal format. username Name of the user on the host that connects to the agent. remote engineid (Optional) Keyword and variable that specifies the username on a remote SNMP engine.
Defaults
If a remote engine ID is not provided, the default local SNMP engine ID is used.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for username (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
Examples
This example shows how to remove a user from an SNMP group:
Console> (enable) clear snmp user joe Cleared SNMP user joe. Console> (enable)
This example shows how to remove a user on a remote SNMP engine:
Console> (enable) clear snmp user joe remote 00:00:00:09:00:d0:00:4c:18:00 Cleared SNMP user. Console> (enable)
Related Commands
Use the clear snmp view command to remove the MIB viewname from the vacmViewTreeFamilyTable.
clear snmp view {-hex} {viewname} {subtree}
Syntax Description
-hex Keyword that displays the viewname as a hexadecimal format. viewname Name of a MIB view. subtree Name of the subtree.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you use special characters for viewname (nonprintable delimiters for this parameter), you must use a hexadecimal keyword, which is one or two hexadecimal digits separated by a colon (:); for example, 00:ab:34.
A MIB subtree used in conjunction with a mask defines a view subtree that can be in OID format or a text name mapped to a valid OID.
Examples
This example shows how to clear the SNMP MIB viewname:
Console> (enable) clear snmp view myview 1.1.3 Cleared snmp view myview with subtree 1.1.3 Console> (enable)
Related Commands
Use the clear spantree portvlancost command to restore the default spanning-tree port VLAN cost on a port.
clear spantree portvlancost mod_num/port_num preferred_vlans
Syntax Description
mod_num Number of the module. port_num Number of the port. preferred_vlans List of VLANs for which to restore the default spanning-tree port VLAN cost. Valid values are 1 to 1005.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to restore the default spanning-tree port VLAN cost for VLANs 1 through 10 on port 2/10:
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)
Related Commands
set spantree portfast
show spantree statistics
Use the clear spantree portvlanpri command to restore the default spanning-tree port VLAN priority on a port.
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 List of VLANs for which to restore the default spanning-tree port VLAN priority. Valid values are 1 to 1005. trcrf Keyword that specifies the TrCRF for which to clear the spanning-tree port VLAN priority. trbrf Keyword that specifies the TrBRF for which to clear the spanning-tree port VLAN priority.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to restore the default spanning-tree port VLAN priority for VLANs 23 to 40 on port 1/2:
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
Use the clear spantree root command to restore the spanning-tree bridge priority, hello time, maxage, and forward delay on the switch to their default values.
clear spantree root vlans
Syntax Description
vlans List of the VLANs for which to restore the spanning-tree default settings. Valid values are 1 to 1005.
Defaults
The default bridge configurations are:
switch priority | 32768 |
forward delay | 15 seconds |
hello time | 2 seconds |
maxage | 20 seconds |
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to restore the spanning-tree bridge priority, hello time, maxage, and forward delay for VLANs 1 through 20 to their default values:
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.
Related Commands
set spantree root
show spantree
Use the clear spantree statistics command to clear the spanning-tree statistics on a specified port or VLAN.
clear spantree statistics mod_num/port_num
Syntax Description
mod_num Number of the module. port_num Number of the port on the module. vlan List of the VLAN numbers to clear.
Defaults
This command has no defaults.
Command Types
Switch command.
Command Modes
Privileged.
Examples
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 Commands
Use the clear spantree uplinkfast command to disable UplinkFast and return the spanning-tree bridge priority, port priorities, and port costs to their default values.
clear spantree uplinkfastSyntax Description
This command has no arguments or keywords.
Defaults
This command has no defaults.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command changes spanning-tree port priorities and port costs, which might affect VLAN load-balancing configurations.
Examples
This example shows how to turn off the UplinkFast feature and return the spanning-tree bridge priority, port priorities, and port costs to their 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
Use the clear station command to remove a station from the Token Ring network.
clear station mod_num/port_num mac_addr
Syntax Description
mod_num Number of the module. port_num Number of the port on the module. mac_addr MAC address of the station that you want to remove. Enter this address in non-canonical (00:11:22:33:44:55) format.
Defaults
The command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Use this command with extreme caution, it issues a Remove Station MAC frame to a specific station and removes that station from the Token Ring network.
Examples
This example shows how to remove the station with the MAC address 00:40:0b:01:bc:65 from
port 2 of module 3:
Console> (enable) clear station 3/2 00:40:0b:01:bc:65 Mac Address 00:40:0b:01:bc:65 cleared. Console> (enable)
Related Commands
clear station counters
set station softerror
show station softerror config
show station softerror counters
Use the clear station counters command to reset the soft error statistics.
clear station counters mod_num[/port_num]
Syntax Description
mod_num Number of the module. port_num (Optional) Number of the port on the module.
Defaults
The command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches.
Examples
This example shows how to reset the soft error statistics collected for stations on port 10 of module 3:
Console> (enable) clear station counters 3/10 Port 3/10 station counters cleared. Console> (enable)
Related Commands
clear station
set station softerror
show station softerror counters
Use the clear tacacs key command to remove the TACACS+ authentication and encryption server key.
clear tacacs keySyntax Description
This command has no arguments or keywords.
Defaults
The default key value is null.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear the TACACS+ server key used for authentication and encryption:
Console> (enable) clear tacacs key TACACS server key cleared. Console> (enable)
Related Commands
Use the clear tacacs server command to remove a host from the list of TACACS+ servers.
clear tacacs server {ip_addr | all}
Syntax Description
ip_addr IP address of the server to be removed from the list of TACACS+ servers. all Keyword that specifies removal of all hosts from the list of TACACS+ servers.
Defaults
There is no default setting for this command.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to remove a server from the list of TACACS+ servers:
Console> (enable) clear tacacs server 192.168.255.255 192.168.255.255 cleared from TACACS table Console> (enable)
Related Commands
Use the clear timezone command to return the time zone to its default, UTC.
clear timezoneSyntax 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 timezone command functions only when NTP is enabled. If you set the time manually and NTP is disabled, the clear timezone command has no effect.
Examples
This example shows how to clear the time zone:
Console> (enable) clear timezone Timezone name and offset cleared. Console> (enable)
Related Commands
Use the clear top command to terminate running TopN report processes.
clear top {all | report_num}
Syntax Description
all Keyword that terminates all nonpending TopN results. report_num TopN report number to terminate; valid values are 1 to 5.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The clear top all command will not kill any pending TopN reports. Only reports with a done status are killed.
You can terminate TopN processes without the background option 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. Use the show top background command to find out if the background option is used.
The prompt is not displayed 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 process 1 from a console session:
Console> (enable) clear top 1 Console> (enable) %MGMT-5-TOPN_TERMINATE:Report 1 terminated by Console// Console> (enable)
This example shows how to stop all nonpending TopN report processes:
Console> (enable) clear top all Console> (enable) %MGMT-5-TOPN_TERMINATE:Report 1 terminated by Console// %MGMT-5-TOPN_TERMINATE:Report 2 terminated by Console// %MGMT-5-TOPN_TERMINATE:Report 3terminated by Console// Console> (enable)
This example shows how to stop the TopN 4 process from a Telnet session:
Console> (enable) clear top 1 Console> (enable) %MGMT-5-TOPN_TERMINATE:Report 1 terminated by telnet/172.20.52.124// Console> (enable)
Related Commands
Syntax Description
mod Number of the module. ports... Number of the ports on the module. vlans (Optional) One or more VLANs to remove from the allowed VLAN list for the trunk port; valid values are 2 to 1005.
Defaults
If you do not specify any VLANs, this command sets the mode to auto for ISL and IEEE 802.1Q trunk ports. For more information about auto and off modes, see the set trunk command.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you specify VLANs, those VLANs are removed from the list of VLANs allowed on the trunk. Traffic for the removed VLANs is not forwarded over the trunk port.
Default VLANs cannot be cleared from the allowed VLAN list on the trunk.
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 to 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
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; valid value is 2 to 1000.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
![]() |
Caution When you clear a VLAN on a switch configured as a VTP server, the VLAN is deleted from the entire VTP domain. Every switch in that VTP domain will delete the VLAN. 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 VLAN (VLAN 4) from a management domain:
Console> (enable) clear vlan 4
This command will deactivate all ports on vlan 4
in the entire management domain
Do you want to continue(y/n) [n]? y
VLAN 4 deleted Console> (enable)
Related Commands
Use the clear vlan mapping command to delete existing 802.1Q VLAN to ISL VLAN-mapped pairs.
clear vlan mapping dot1q {1q_vlan_num | all}
Syntax Description
dot1q Keyword that specifies the 802.1Q VLAN. 1q_vlan_num Number identifiying the 802.1Q VLAN for which to remove the mapping. all Keyword that specifies to clear the mapping table of all entries.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to clear an existing mapped 802.1Q VLAN (VLAN 1044) from the
mapping table:
Console> (enable) clear vlan mapping dot1q 1044 Vlan Mapping 1044 Deleted. Console> (enable)
This example shows how to clear all mapped 802.1Q VLANs from the mapping table:
Console> (enable) clear vlan mapping dot1q all All Vlan Mapping Deleted. Console> (enable)
Related Commands
set vlan mapping
show vlan mapping
Use the clear vmps server command to delete a VMPS server from the VMPS server table.
clear vmps server ip_addr
Syntax Description
ip_addr IP address of the VMPS server to be deleted.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
This command is supported by the Catalyst 5000 family switches and the Catalyst 2926G series switches.
Examples
This example shows how to clear a VMPS server from the VMPS table:
Console> (enable) clear vmps server 192.168.255.255 VMPS domain server 192.168.255.255 cleared from VMPS table. Console> (enable)
This example shows the results of trying to clear a nonexistent VMPS server from the VMPS table:
Console> (enable) clear vmps server 192.168.255.255 VMPS domain server 192.168.255.255 not in VMPS table. Console> (enable)
Related Commands
Use the clear vmps statistics command to delete existing VMPS statistics.
clear vmps statisticsSyntax Description
This command has no arguments or keywords.
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to delete existing VMPS statistics:
Console> (enable) clear vmps statistics VMPS and dynamic vlan statistics cleared. Console> (enable)
Related Commands
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 ineligible for pruning; valid values are 1 to 1005.
Defaults
By default, VLANs 2 to 1000 are eligible for pruning.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
VTP pruning prevents traffic in each pruning-eligible VLAN from being transmitted on a VLAN trunk if no stations belonging to that VLAN are located across that trunk. Use the set vtp command to enable VTP pruning.
Use the set vtp pruneeligible command to make the VLANs eligible for pruning again.
Examples
This example shows how to make VLANs 200 to 500 ineligible for pruning:
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 statistics
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Sun Jun 11 11:19:25 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.