Clear commands

interface

Syntax

interface [ip-int-name | ip-addr] [icmp]

Context

clear>router

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears IP interface statistics.

If no IP interface is specified, either by IP interface name or IP address, the command performs the clear operation on all IP interfaces.

Parameters

ip-int-name | ip-addr

Specifies the IP interface name or IP interface address.

Default

All IP interfaces.

icmp

Keyword that specifies to reset the ICMP statistics for the IP interfaces used for ICMP rate limit.

damping

Syntax

damping [[ip-prefix/mask] [neighbor ip-address]] | [group name]

Context

clear>router>bgp

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears or resets the route damping information for received routes.

Parameters

ip-prefix/mask

Clears damping information for entries that match the IP prefix and mask length.

neighbor ip-address

Clears damping information for entries received from the BGP neighbor.

group name

Clears damping information for entries received from any BGP neighbors in the peer group.

flap-statistics

Syntax

flap-statistics [[ip-prefix/mask] [neighbor ip-addr]] | [group group-name] | [regex reg-exp] | [policy policy-name]

Context

clear>router>bgp

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears route flap statistics.

Parameters

ip-prefix/mask

Clears route flap statistics for entries that match the specified IP prefix and mask length.

neighbor ip-addr

Clears route flap statistics for entries received from the specified BGP neighbor.

group group-name

Clears route flap statistics for entries received from any BGP neighbors in the specified peer group.

regex reg-exp

Clears route flap statistics for all entries that have the regular expression and the AS path that matches the regular expression.

policy policy-name

Clears route flap statistics for entries that match the specified route policy.

neighbor

Syntax

neighbor {ip-addr | as as-number | external | all} [soft | soft-inbound | statistics]

Context

clear>router>bgp

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command resets the specified BGP peer or peers. This can cause existing BGP connections to be shut down and restarted.

Parameters

ip-addr

Resets the BGP neighbor with the specified IP address.

as as-number

Resets all BGP neighbors with the specified peer AS number.

external

Resets all EBGP neighbors.

all

Resets all BGP neighbors.

soft

Keyword to specify that the BGP neighbors reevaluate all routes in the Local-RIB against the configured export policies.

soft-inbound

Keyword to specify that the BGP neighbors reevaluate all routes in the RIB-In against the configured import policies.

statistics

Keyword that specifies the BGP neighbor statistics.

protocol

Syntax

protocol

Context

clear>router>bgp

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command resets the entire BGP protocol. If the AS number was previously changed, the BGP AS number does not inherit the new value.

database

Syntax

database

Context

clear>router>rip

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears all routes in the RIP database.

id

Syntax

id service-id

Context

clear>service

clear>service>statistics

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears commands for a specific service.

Parameters

service-id

Specifies the ID that uniquely identifies a service.

Values

1 to 2147483648

sap

Syntax

sap sap-id {all | counters | stp}

Context

clear>service>statistics

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears SAP statistics for a SAP.

Parameters

sap-id

Specifies the physical port identifier portion of the SAP definition. See Common CLI command descriptions for command syntax.

spoke-sdp

Syntax

spoke-sdp sdp-id:vc-id ingress-vc-label

Context

clear>service>id

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears and resets the spoke-SDP bindings for the service.

Parameters

sdp-id

Specifies the spoke-SDP ID to be cleared and reset.

Values

1 to 17407

vc-id

Specifies the virtual circuit ID on the SDP ID to be cleared and reset.

Values

1 to 4294967295

sdp

Syntax

sdp sdp-id keep-alive

Context

clear>service>statistics

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears keepalive statistics associated with the SDP ID.

Parameters

sdp-id

Specifies the SDP ID for which to clear keepalive statistics.

Values

1 to 17407

counters

Syntax

counters

Context

clear>service>statistics>id

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears all traffic queue counters associated with the service ID.

spoke-sdp

Syntax

spoke-sdp sdp-id[:vc-id] {all | counters | stp}

Context

clear>service>statistics>id

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears statistics for the spoke-SDP bound to the service.

Parameters

sdp-id

Specifies the spoke-SDP ID for which to clear statistics.

Values

1 to 17407

vc-id

Specifies the virtual circuit ID on the SDP ID to be reset.

Values

1 to 4294967295

all

Clears all queue statistics and STP statistics associated with the SDP.

counters

Clears all queue statistics associated with the SDP.

stp

Clears all STP statistics associated with the SDP.

stp

Syntax

stp

Context

clear>service>statistics>id

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears all spanning tree statistics for the service ID.