Cisco IOS IP Application Services Command Reference
A through C

A through C

aaa accounting vrrs

To enable authentication, authorization, and accounting (AAA) accounting of requested services for billing or security purposes when you use the Virtual Router Redundancy Service (VRRS), use the aaa accounting vrrs command in global configuration mode. To disable AAA accounting for VRRS, use the no form of this command.

aaa accounting vrrs default | list-name start-stop method1 [ {method2...} ]
no aaa accounting vrrs default | list-name start-stop method1 [ {method2...} ]

Syntax Description

default

Uses the listed accounting methods that follow this keyword as the default list of methods for accounting services.

list-name

Character string used to name the list of accounting methods. If no list name is specified, the system uses the default value.

start-stop

Sends an accounting-on notice. The accounting-on record is sent in the background. The requested user process begins regardless of whether the accounting-on notice is received by the accounting server.

method1 [method2...]

(Optional) Character string used to name at least one of the accounting methods, tried in the specified sequence.

Command Default

AAA accounting is disabled for VRRS

Command Modes

Global configuration (config)

Command History

Release

Modification

Cisco IOS XE Release 2.6

This command was introduced.

15.1(1)S

This command was integrated into Cisco IOS Release 15.1(1)S.

Usage Guidelines

Use the aaa accounting vrrs command to define a AAA accounting method list. If you define the AAA default accounting method list, you are defining the AAA accounting method list for all the VRRS servers. The default AAA accounting method list is applied to all VRRS groups. To specify a group-specific VRRS method list, use the accounting method command in VRRS configuration mode.

Examples

The following example shows how to configure VRRP group 1 with the group name “vrrp-name-1” to use VRRS method list vrrs-mlist-1:

Router(config)# aaa accounting vrrs vrrp-mlist-1 start-stop group radius
!
Router(config-if)# vrrs vrrp-name-1
Router(config)# accounting mlist vrrs-mlist-1
!
Router(config)# interface gigabitethernet0/2/2
Router(config-if)# ip address 10.0.1.
Router(config-if)# vrrp 1 ip 10.1.0.10
Router(config-if)# vrrp 1 name vrrp-name-1

Related Commands

Command

Description

vrrp ip

Enables the VRRP on an interface and identifies the IP address of the virtual router.

vrrp name

Links a VRRS client to a VRRP group.

accounting delay (VRRS)

To specify a delay time for sending accounting-off messages for the Virtual Router Redundancy Service (VRRS), use the accounting delay command in VRRS configuration mode. To return to the default accounting delay value, use the no form of this command.

accounting delay seconds
no accounting delay

Syntax Description

seconds

Time, in seconds, to wait before sending accounting-off messages. Range is from 1 to 30. The default is 0.

Command Default

Accounting-off messages for VRRS are sent without delay.

Command Modes

VRRS configuration (config-vrrs)

Command History

Release

Modification

Cisco IOS XE Release 2.6

This command was introduced.

15.1(1)S

This command was integrated into Cisco IOS Release 15.1(1)S.

Usage Guidelines

Use the accounting delay command to control the timing of sending accounting-off messages for VRRS. This command does not apply to accounting-on messages. If the default is specified, this command is not saved to the running configuration and accounting-off messages are sent immediately when the event occurs. Otherwise, a delay of the configured number of seconds is applied.

Examples

The following example shows how to specify a delay time of 10 seconds for sending accounting-off messages for the VRRS:

Router(config)# vrrs vrrp-name-1
Router(config-vrrs)# accounting delay 10

Related Commands

Command

Description

aaa accounting vrrs

Enables AAA accounting of requested services for billing or security purposes when you use VRRS.

accounting method (VRRS)

Enables VRRS accounting for a VRRP group.

attribute list (VRRS)

Specifies additional attributes to include in VRRS accounting-on and accounting-off messages.

vrrs

Enables VRRS and enters VRRS configuration mode.

accounting method (VRRS)

To enable Virtual Router Redundancy Service (VRRS) accounting for a Virtual Router Redundancy Protocol (VRRP) group, use the accounting method command in VRRS configuration mode. To specify the default VRRS accounting method list as the target for VRRS accounting, use the no form of this command.

accounting method {default | accounting-method-list}
no accounting method

Syntax Description

default

Enables VRRS accounting for all VRRP groups.

accounting-method-list

Name of the accounting method list for which VRRS must be enabled.

Command Default

The default VRRS accounting method list is used.

Command Modes

VRRS Configuration (config-vrrs)

Command History

Release

Modification

Cisco IOS XE Release 2.6

This command was introduced.

15.1(1)S

This command was integrated into Cisco IOS Release 15.1(1)S.

Usage Guidelines

Configuring the default keyword does not save it to the running configuration and the VRRS accounting type default method list is automatically applied to the VRRS group being configured. The default keyword also enables VRRS accounting for all VRRP groups.

The valued specified for the accounting-method-list argument must match a named list configured by the aaa accounting vrrscommand. When there is no match, a warning message is displayed. However, the configuration is still saved.

With this approach, you can configure the desired accounting method list using the aaa accounting vrrscommand without configuring the accounting methodcommand again.

Examples

The following example shows how to configure VRRS to use the accounting list named METHOD1:

Router(config)# vrrs VRRS1
Router(config-vrrs)# accounting method METHOD1

Related Commands

Command

Description

aaa accounting vrrs

Enables AAA accounting of requested services for billing or security purposes when you use VRRS.

accounting delay (VRRS)

Specifies a delay time for sending accounting-off messages for VRRS.

attribute list (VRRS)

Specifies additional attributes to include in VRRS accounting-on and accounting-off messages.

attribute list (VRRS)

To specify additional attributes to include in Virtual Router Redundancy Service (VRRS) accounting-on and accounting-off messages, use the attribute list command in VRRS configuration mode. To configure VRRS to send only default attributes in VRRS accounting messages, use the no form of this command.

attribute list list-name
no attribute list

Syntax Description

list-name

Specifies a AAA accounting list, as defined by the aaa attribute list global configuration command.

Command Default

Default attributes are sent in VRRS accounting messages.

Command Modes

VRRS configuration (config-vrrs)

Command History

Release

Modification

Cisco IOS XE Release 2.6

This command was introduced.

Usage Guidelines

Use the attribute list (VRRS) command to specify additional attributes to be included in both VRRS accounting-on and accounting-off messages. Before configuring this command, define a list name using the aaa attribute list global configuration command. If you the enter a list name that is not defined in the aaa attribute list global configuration command, a warning message is displayed. However, this command is still accepted.

The following RADIUS attributes are included in VRRS accounting messages by default:

  • Attribute 4, NAS-IP-Address
  • Attribute 26, Cisco VSA Type 1, vrrs
  • Attribute 40, Acct-Status-Type
  • Attribute 41, Acct-Delay-Type
  • Attribute 44 Acct-Session-Id

Examples

The following example configures VRRS to use the AAA accounting list named vrrp-1-attr:

Router(config)# aaa accounting vrrs default start-stop group radius
Router(config)# aaa attribute list vrrp-1-attr
Router(config-attr-list)# attribute type account-delay “10”
Router(config-attr-list)# exit
Router(config)# vrrs vrrp-name-1
Router(config-vrrs)# accounting delay 10
Router(config-vrrs)# attribute list vrrp-1-attr

Related Commands

Command

Description

aaa accounting vrrs

Enables AAA accounting of requested services for billing or security purposes when you use VRRS.

aaa attribute list

Defines a AAA attribute list locally on a router.

accounting delay (VRRS)

Specifies a delay time for sending accounting-off messages for VRRS.

accounting method (VRRS)

Enables VRRS accounting for a VRRP group.

carrier-delay (tracking)

To enable Enhanced Object Tracking (EOT) to consider the carrier-delay timer when tracking the status of an interface, use the carrier-delay command in tracking configuration mode. To disable EOT from considering the carrier-delay timer when tracking the status of an interface, use the no form of this command.

carrier-delay
no carrier-delay

Command Default

EOT does not consider the carrier-delay timer configured on an interface when tracking the status of the interface.

Command Modes

Tracking configuration (config-track)

Command History

Release

Modification

12.4(9)T

This command was introduced.

Usage Guidelines

If a link fails, by default there is a two-second timer that must expire before an interface and the associated routes are declared as being down. If a link goes down and comes back up before the carrier delay timer expires, the down state is effectively filtered, and the rest of the software on the switch is not aware that a link-down event occurred. You can configure the carrier-delay seconds command in interface configuration mode to extend the timer up to 60 seconds.

When Enhanced Object Tracking (EOT) is configured on an interface, the tracking may detect the interface is down before a configured carrier-delay timer has expired. This is because EOT looks at the interface state and does not consider the carrier delay timer. Use the carrier-delay command in tracking configuration mode to enable tracking to consider the carrier-delay timer configured on an interface.

Examples

The following example shows how to configure the tracking module to wait for the interface carrier-delay timer to expire before notifying clients of a state change:

Router(config)# track 101 interface ethernet1/0 line-protocol
Router(config-track)# carrier-delay

Related Commands

Command

Description

carrier-delay

Sets the carrier delay on an interface.

show track

Displays information about objects that are tracked by the tracking process.

track interface

Configures an interface to be tracked and to enter tracking configuration mode.

track ip route

Tracks the state of an IP route and enters tracking configuration mode.

track list

Specifies a list of objects to be tracked and the thresholds to be used for comparison.

track resolution

Specifies resolution parameters for a tracked object.

track ip sla

Tracks the state of a Cisco IOS SLAs operation and enters tracking configuration mode.

track timer

Specifies the interval in which the tracking process polls the tracked object.

clear ip accounting

To clear the active or checkpointed database when IP accounting is enabled, use the clear ip accounting command in privileged EXEC mode.

clear ip accounting [checkpoint]

Syntax Description

checkpoint

(Optional) Clears the checkpointed database.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

10.0

This command was introduced.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

Usage Guidelines

The clear ip accounting EXEC command clears the active database and creates the checkpointed database.

Examples

The following example clears the active database when IP accounting is enabled:

Router# clear ip accounting

Related Commands

Command

Description

ip accounting

Enables IP accounting on an interface.

ip accounting-list

Defines filters to control the hosts for which IP accounting information is kept.

ip accounting-threshold

Sets the maximum number of accounting entries to be created.

ip accounting-transit

Controls the number of transit records that are stored in the IP accounting database.

show ip accounting

Displays the active accounting or checkpointed database or displays access list violations.

clear ip icmp rate-limit

To clear all Internet Control Message Protocol (ICMP) unreachable rate-limiting statistics or all statistics for a specified interface, use the clear ip icmp rate-limit command in privileged EXEC mode.

clear ip icmp rate-limit [interface-typeinterface-number]

Syntax Description

interface-type

(Optional) Type of interface to be configured. Refer to the interface command in the Cisco IOS Interface and Hardware Component Command Reference for a list of valid interface types.

interface-number

(Optional) Port, connector, or interface card number. On Cisco 4700 series routers, specifies the network interface module (NIM) or network processor module (NPM) number. The numbers are assigned at the factory at the time of installation or when added to a system, and can be displayed with the show interfaces command.

Command Default

All unreachable statistics for all devices are cleared.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.4(2)T

This command was introduced.

12.2(31)SB2

This command was integrated into Cisco IOS Release 12.2(31)SB2.

Examples

The following example shows how to clear all unreachable statistics on all interfaces:

Router# clear icmp rate-limit

Related Commands

Command

Description

ip icmp rate-limit unreachable

Limits the rate at which ICMP unreachable messages are generated for a destination.

show ip icmp rate-limit

Displays all ICMP unreachable rate-limiting statistics or all statistics for a specified interface.

clear ip sctp statistics


Note


Effective with Cisco IOS Release 12.4(11)T, the clear ip sctp statistics command is replaced by the clear sctp statistics command. See the clear sctp statistics command for more information.

To clear statistics counts for Stream Control Transmission Protocol (SCTP) activity, use the clear ip sctp statistics command in privileged EXEC mode.

clear ip sctp statistics

Syntax Description

This command has no arguments or keywords.

Command Default

This command has no default value. If this command is not entered, statistics counts for SCTP activity continue to be logged.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.2(2)T

This command was introduced.

12.2(4)T

This command was integrated into Cisco IOS Release 12.2(4)T.

12.2(8)T

This command was integrated into Cisco IOS Release 12.2(8)T and implemented on the following platforms: Cisco 2600 series, Cisco 3600 series, and Cisco 7200 series. Support for the Cisco AS5300, Cisco AS5350, Cisco AS5400, and Cisco AS5850 is not included in this release.

12.2(11)T

This command was implemented on the Cisco AS5300, Cisco AS5350, Cisco AS5400, Cisco AS5800, and Cisco AS5850.

12.4(11)T

This command was replaced by the clear sctp statistics command.

12.4(15)T

This command was moved to the Cisco IOS IP Application Services Command Reference.

Usage Guidelines

This command clears both individual and overall statistics.

Examples

The following command shows how to empty the buffer that holds SCTP statistics. No output is generated from this command.

Router# clear ip sctp statistics

Related Commands

Command

Description

debug ip sctp api

Reports SCTP diagnostic information and messages.

show ip sctp association list

Displays a list of all current SCTP associations.

show ip sctp association parameters

Displays the parameters configured for the association defined by the association identifier.

show ip sctp association statistics

Displays the current statistics for the association defined by the association identifier.

show ip sctp errors

Displays error counts logged by SCTP.

show ip sctp instances

Displays all currently defined SCTP instances.

show ip sctp statistics

Displays overall statistics counts for SCTP.

show iua as

Displays information about the current condition of an application server.

show iua asp

Displays information about the current condition of an application server process.

clear ip tcp header-compression

To clear the TCP, UDP, and IP header-compression statistics, use the clear ip tcp header-compression command in privileged EXEC mode.

clear ip tcp header-compression interface-type interface-number

Syntax Description

interface-type

Specifies the interface type.

interface-number

Specifies the interface number.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

15.0(1)M

This command was introduced in a release earlier than Cisco IOS Release 15.0(1)M.

12.2(33)SRC

This command was integrated into a release earlier than Cisco IOS Release 12.2(33)SRC.

12.2(33)SXI

This command was integrated into a release earlier than Cisco IOS Release 12.2(33)SXI.

Cisco IOS XE Release 2.1

This command was integrated into Cisco IOS XE Release 2.1.

Examples

The following example shows how to clear the header-compression statistics for an ATM interface:

Router# clear ip tcp header-compression ATM2/0 

Related Commands

Command

Description

show ip tcp header-compression

Displays statistics about TCP header compression.

clear ip traffic

To clear the global or system-wide IP traffic statistics for one or more interfaces, use the clear ip traffic command in privileged EXEC mode.

clear ip traffic [interface type number]

Syntax Description

interface type number

(Optional) Clears the global or system-wide IP traffic statistics for a specific interface. If the interface keyword is used, the type and number arguments are required.

Command Default

Using the clear ip traffic command with no keywords or arguments clears the global or system-wide IP traffic statistics for all interfaces.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.4(2)T

This command was introduced.

12.2(31)SB2

This command was integrated into Cisco IOS Release 12.2(31)SB2.

Cisco IOS XE Release 2.1

This command was integrated into Cisco IOS XE Release 2.1.

Cisco IOS XE Release 3.1S

This command was modified to include the optional interface keyword and associated type and number arguments. These modifications were made to provide support for the IPv4 MIBs as described in RFC 4293, Management Information Base for the Internet Protocol (IP) .

15.1(4)M

This command was modified. The optional interface keyword and associated type and number arguments were added. These modifications were made to provide support for the IPv4 MIBs as described in RFC 4293, Management Information Base for the Internet Protocol (IP) .

Usage Guidelines

Using the clear ip traffic command with the optional interface keyword clears the ipIfStatsTable counters displayed for the specified interface and also clears the counters displayed by the show ip traffic interface command.

Examples

The following example clears the global or system-wide IP traffic statistics on all interfaces:

Router# clear ip traffic

The following example shows how to clear the IP traffic statistics on Ethernet interface 0/0:

Router# clear ip traffic interface ethernet 0/0

The following is sample output from the show ip traffic command for Ethernet interface 0/0 after clearing the traffic using the clear ip traffic command:

Router# show ip traffic

Ethernet0/0 IP-IF statistics :
  Rcvd:  0 total, 0 total_bytes
         0 format errors, 0 hop count exceeded
         0 bad header, 0 no route
         0 bad destination, 0 not a router
         0 no protocol, 0 truncated
         0 forwarded
         0 fragments, 0 total reassembled
         0 reassembly timeouts, 0 reassembly failures
         0 discards, 0 delivers
  Sent:  0 total, 0 total_bytes 0 discards
         0 generated, 0 forwarded
         0 fragmented into, 0 fragments, 0 failed
  Mcast: 0 received, 0 received bytes
         0 sent, 0 sent bytes
  Bcast: 0 received, 0 sent

Related Commands

Command

Description

show ip traffic

Displays the global or system-wide IP traffic statistics for one or more interfaces.

clear ip wccp

To remove Web Cache Communication Protocol (WCCP) statistics (counts) maintained on the router for a particular service, use the clear ip wccp command in privileged EXEC mode.

clear ip wccp vrf vrf-name {web-cache | service-number} web-cache | service-number

Syntax Description

vrf vrf-name

(Optional) Specifies a virtual routing and forwarding instance (VRF) to associate with a service group.

web-cache

(Optional) Directs the router to remove statistics for the web cache service.

service-number

(Optional) Number of the cache service to be removed. The number can be from 0 to 99.

Command Default

No default behavior or values.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

11.1CA

This command was introduced for Cisco 7200 and 7500 platforms.

11.2P

Support for this command was added to a variety of Cisco platforms.

12.0(3)T

This command was expanded to be explicit about service using the web-cache keyword and the service-number argument.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

Cisco IOS XE Release 2.2

This command was integrated into Cisco IOS XE Release 2.2.

15.0(1)M

This command was modified. The vrf keyword and vrf-name argument were added.

12.2(33)SRE

This command was modified. The vrf keyword and vrf-name argument were added.

Usage Guidelines

Use the show ip wccp and show ip wccp detail commands to display WCCP statistics. If Cisco Cache Engines are used in your service group, the reverse proxy service is indicated by a value of 99.

Use the clear ip wccp command to clear the WCCP counters for all WCCP services in all VRFs.

Use the clear ip wccp vrf vrf-name {web-cache | service-number} command to clear the WCCP counters for the specific WCCP service in the specified VRF.

Examples

The following example shows how to clear all statistics associated with the web cache service:

Router# clear ip wccp web-cache

Related Commands

Command

Description

clear platform software wccp

Clears WCCPv2 statistics on the Cisco ASR 1000 Series Routers.

ip wccp

Enables support of the specified WCCP service for participation in a service group.

show ip wccp

Displays global statistics related to the WCCP.

clear mls acl counters

To clear the multilayer switching (MLS) access control list (ACL) counters, use the clear mls acl counters command in privileged EXEC mode.

clear mls acl counters {all [module num] | interface interface interface-number [ {loopback interface-number | null interface-number | port-channel number | vlan vlan-id} ] }

Syntax Description

all

Clears all the MLS ACL counters for all interfaces.

module num

(Optional) Clears all the MLS ACL counters for the specified DFC.

interface interface

Clears counters that are associated with the specified interface; possible valid values are ethernet, fastethernet, gigabitethernet, and tengigabitethernet. See the “Usage Guidelines” section for additional valid values.

interface-number

Module and port number; see the “Usage Guidelines” section for valid values.

loopback interface-number

(Optional) Specifies the loopback interface; valid values are from 0 to 2147483647.

null interface-number

(Optional) Specifies the null interface; the valid value is 0

port-channel number

(Optional) Specifies the channel interface; valid values are a maximum of 64 values ranging from 1 to 256.

vlan vlan-id

(Optional) Specifies the VLAN ID; valid values are from 1 to 4094.

Command Default

This command has no default settings.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Cisco IOS Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

The valid values for interface include the ge-wan, atm, and pos keywords that are supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2.

This command is supported on Cisco 7600 series routers that are configured with a WS-F6K-DFC3B-XL, release 2.1 and later.

If you enter the clear mls acl counters all module num command, all the MLS ACL counters for the specified DFC only are cleared. If you enter the clear mls acl counters all command without entering the module num keyword and argument, all the MLS ACL counters for only the non-DFC modules and the supervisor engines are cleared.

The interface-number argument designates the module and port number. Valid values for interface-number depend on the specified interface type and the chassis and module that are used. For example, if you specify a Gigabit Ethernet interface and have a 48-port 10/100BASE-T Ethernet module that is installed in a 13-slot chassis, valid values for the module number are from 1 to 13 and valid values for the port number are from 1 to 48.

Examples

This example shows how to reset the MLS ACL counters in all interfaces:

Router# clear mls acl counters all

Related Commands

Command

Description

show tcam interface

Displays information about the interface-based TCAM.

clear platform software wccp

To clear Web Cache Communication Protocol version 2 statistics on the Cisco ASR 1000 Series Routers, use the clear platform software wccpcommand in privileged EXEC mode.

clear platform software wccp slot [ {active | standby} ] statistics counters | statistics

Syntax Description

slot

Shared Port Adapter (SPA) Interprocessor, Embedded Service Processor or Route Processor slot.

Valid options are:

  • F0 --Embedded Service Processor slot 0
  • F1 --Embedded Service Processor slot 1
  • FP --Embedded Service Processor
  • R0 --Route Processor slot 0
  • R1 --Route Processor slot 1
  • RP --Route Processor

active

Clears active instances.

standby

Clears standby instances.

statistics

Clears statistics counters.

counters

Clears packet processing counters.

Command Default

WCCPv2 statistics are not cleared.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

Cisco IOS XE Release 3.1S

This command was introduced.

Examples

The following example shows how to clear WCCPv2 statistics on Embedded-Service-Processor slot 0:

Router# clear platform software wccp F0 statistics

Related Commands

Command

Description

clear ip wccp

Removes WCCP statistics (counts) maintained on the router for a particular service.

clear sctp statistics

To clear statistics counts for Stream Control Transmission Protocol (SCTP) activity, use the clear sctp statistics command in privileged EXEC mode.

clear sctp statistics

Syntax Description

This command has no arguments or keywords.

Command Default

This command has no default value. If this command is not entered, statistics counts for SCTP activity continue to be logged.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.4(11)T

This command was introduced. This command replaces the clear ip sctp statistics command.

12.4(15)T

This command was moved to the Cisco IOS IP Application Services Command Reference.

Usage Guidelines

This command clears both individual and overall statistics.

Examples

The following command shows how to empty the buffer that holds SCTP statistics. No output is generated from this command.

Router# clear sctp statistics

Related Commands

Command

Description

debug ip sctp api

Reports SCTP diagnostic information and messages.

show sctp association list

Displays a list of all current SCTP associations.

show sctp association parameters

Displays the parameters configured for the association defined by the association identifier.

show sctp association statistics

Displays the current statistics for the association defined by the association identifier.

show sctp errors

Displays error counts logged by SCTP.

show sctp instances

Displays all currently defined SCTP instances.

show sctp statistics

Displays overall statistics counts for SCTP.

show iua as

Displays information about the current condition of an application server.

show iua asp

Displays information about the current condition of an application server process.

clear sockets

To close all IP sockets and clear the underlying transport connections and data structures, use the clear sockets command in privileged EXEC mode.

clear sockets process-id

Syntax Description

process-id

Identifier of the IP process to be cleared.

Command Default

IP socket information is not cleared.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.4(11)T

This command was introduced.

Usage Guidelines

Using this command results in an abortive close for TCP connections and Stream Control Transfer Protocol (SCTP) associations. When this command is entered, TCP connections abort by sending an RST (restore) and SCTP associations abort by sending an ABORT signal to the peer.

Use the show processescommand to display the list of running processes and their associated process IDs.

You can use the show sockets detail command to confirm all open sockets have been cleared.

Examples

The following example shows how to close all sockets for IP process 35:

Router# clear sockets 35
All sockets (TCP, UDP and SCTP) for this process will be cleared.
Do you want to proceed? [yes/no]: y
Cleared sockets for PID 35

Related Commands

Command

Description

show processes

Displays information about the active processes.

show sockets

Displays IP socket information.

show udp

Displays IP socket information about UDP processes.

clear tcp statistics

To clear TCP statistics, use the clear tcp statistics command in privileged EXEC command.

clear tcp statistics

Syntax Description

This command has no arguments or keywords.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

11.3

This command was introduced.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

Examples

The following example clears all TCP statistics:

Router# clear tcp statistics

Related Commands

Command

Description

show tcp statistics

Displays TCP statistics.

clear time-range ipc

To clear the time-range interprocess communications (IPC) message statistics and counters between the Route Processor and the line card, use the clear time-range ipc command in privileged EXEC mode.

clear time-range ipc

Syntax Description

This command has no argument or keywords.

Command Default

No default behavior or values.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.2(2)T

This command was introduced.

12.2(28)SB

This command was integrated into Cisco IOS Release 12.2(28)SB.

Examples

The following example clears the time-range IPC statistics and counters:

Router# clear time-range ipc

Related Commands

Command

Description

debug time-range ipc

Enables debugging output for monitoring the time-range IPC messages between the Route Processor and the line card.

show time-range ipc

Displays the statistics about the time-range IPC messages between the Route Processor and line card.