Clear Commands

fec-egress-statistics

Syntax

fec-egress-statistics [ip-prefix/mask]

Context

clear>router>ldp

Description

This command clears LDP FEC statistics.

Note:

When LDP FEC statistics are cleared, the current aggregate statistics count is recorded as a baseline and is used to provide a relative count each time the statistics are viewed with the show command. Because this baseline number is not reconciled between the active and inactive CSMs, after a CSM activity switch the statistics on the newly active CSM shows the aggregate count as though no clear command has been executed.

Parameters

ip-prefix[/mask]

the IP prefix and prefix length associated with the prefix FEC

Values

ipv4-prefix:

a.b.c.d

ipv4-prefix-length:

32

ipv6-prefix:

x:x:x:x:x:x:x:x (eight 16-bit pieces)

x:x:x:x:x:x:d.d.d.d

x - [0 to FFFF]H

d - [0 to 255]D

ipv6-prefix-length:

128

instance

Syntax

instance

Context

clear>router>ldp

Description

This command resets the LDP instance.

interface

Syntax

interface ip-int-name[statistics]

Context

clear>router>ldp

Description

This command restarts or clears statistics for LDP interfaces.

Parameters

ip-int-name

specifies an existing interface. If the string contains special characters (such as #, $, spaces), the entire string must be enclosed within double quotes.

statistics

clears only the statistics for an interface

peer

Syntax

peer ip-address[statistics]

Context

clear>router>ldp

Description

This command restarts or clears statistics for LDP targeted peers.

Parameters

ip-address

specifies a targeted peer

statistics

clears only the statistics for a targeted peer

session

Syntax

session ip-addr [:label-space][statistics]

Context

clear>router>ldp

Description

This command restarts or clears statistics for LDP sessions.

Parameters

ip-addr

specifies the IP address of the LDP peer

label-space

specifies the label space identifier that the router is advertising on the interface

Values

0 to 65535

statistics

clears only the statistics for a session

statistics

Syntax

statistics

Context

clear>router>ldp

Description

This command clears LDP instance statistics.