clear mpls forwarding counters
To clear (set to zero) the MPLS forwarding counters, use the clear mpls forwarding counters command in XR EXEC mode.
clear mpls forwarding counters
Syntax Description
This command has no arguments or keywords.
Command Default
No default behavior or values
Command Modes
XR EXEC mode
Command History
Release |
Modification |
---|---|
Release 6.0 |
This command was introduced. |
Usage Guidelines
Use the clear mpls forwarding counters command to set all MPLS forwarding counters to zero so that you can easily see the future changes.
Task ID
Task ID |
Operations |
---|---|
mpls-ldp |
read, write |
mpls-static |
read, write |
Examples
This a test.
Examples
The following example shows sample output before and after clearing all counters:
RP/0/RP0/CPU0:router# show mpls forwarding
LLocal Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
10001 10002 No ID BE262 12.1.1.62 0
10003 10004 No ID BE264 12.1.1.70 0
10005 10006 No ID BE266 12.1.1.78 0
10007 10008 No ID BE268 12.1.1.86 0
10009 10010 No ID BE270 12.1.1.94 0
10011 10012 No ID BE272 12.1.1.102 0
10013 10014 No ID BE274 12.1.1.110 0
10015 10016 No ID BE276 12.1.1.118 0
10017 10018 No ID BE141 13.1.1.42 0
10022 10023 No ID BE73 17.1.1.10 0
10026 20001 No ID Te0/4/0/0/1 11.1.106.2 0
24000 Pop SR Adj (idx 1) Hu0/7/0/35 11.1.150.2 0
24001 Pop SR Adj (idx 3) Hu0/7/0/35 11.1.150.2 0
24002 Pop SR Adj (idx 1) BE206 11.1.1.58 0
24003 Pop SR Adj (idx 3) BE206 11.1.1.58 0
RP/0/RP0/CPU0:router# show mpls forwarding
Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
24000 Pop TE: 65000 BE12 12.0.14.2 0
24001 Pop TE: 128 BE12 12.0.14.2 0
Pop TE: 128 tt65001 12.0.14.2 0 (!)
24002 Pop TE: 3174 BE12 12.0.14.2 0
Pop TE: 3174 tt65001 12.0.14.2 0 (!)
24003 Pop TE: 1443 BE12 12.0.14.2 0
Pop TE: 1443 tt65001 12.0.14.2 0 (!)
24005 Pop TE: 3009 BE12 12.0.14.2 0
Pop TE: 3009 tt65001 12.0.14.2 0 (!)
24006 Pop TE: 10 BE12 12.0.14.2 0
Pop TE: 10 tt65001 12.0.14.2 0 (!)
24007 Pop TE: 63 BE12 12.0.14.2 0
Pop TE: 63 tt65001 12.0.14.2 0 (!)
24010 Pop TE: 4848 BE12 12.0.14.2 0
Pop TE: 4848 tt65001 12.0.14.2 0 (!)
24012 Pop TE: 1455 BE12 12.0.14.2 0
Pop TE: 1455 tt65001 12.0.14.2 0 (!)
24013 Pop TE: 2932 BE12 12.0.14.2 0
Pop TE: 2932 tt65001 12.0.14.2 0 (!)
24014 Pop TE: 2967 BE12 12.0.14.2 0
Pop TE: 2967 tt65001 12.0.14.2 0 (!)
RP/0/RP0/CPU0:router# clear mpls forwarding counters