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 10.1.1.62 0
10003 10004 No ID BE264 10.1.1.70 0
10005 10006 No ID BE266 10.1.1.78 0
10007 10008 No ID BE268 10.1.1.86 0
10009 10010 No ID BE270 10.1.1.94 0
10011 10012 No ID BE272 10.1.1.102 0
10013 10014 No ID BE274 10.1.1.110 0
10015 10016 No ID BE276 10.1.1.118 0
10017 10018 No ID BE141 10.13.1.42 0
10022 10023 No ID BE73 10.17.1.10 0
10026 20001 No ID Te0/4/0/0/1 10.11.106.2 0
24000 Pop SR Adj (idx 1) Hu0/7/0/35 10.11.150.2 0
24001 Pop SR Adj (idx 3) Hu0/7/0/35 10.11.150.2 0
24002 Pop SR Adj (idx 1) BE206 10.11.1.58 0
24003 Pop SR Adj (idx 3) BE206 10.11.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 10.0.14.2 0
24001 Pop TE: 128 BE12 10.0.14.2 0
Pop TE: 128 tt65001 10.0.14.2 0 (!)
24002 Pop TE: 3174 BE12 10.0.14.2 0
Pop TE: 3174 tt65001 10.0.14.2 0 (!)
24003 Pop TE: 1443 BE12 10.0.14.2 0
Pop TE: 1443 tt65001 10.0.14.2 0 (!)
24005 Pop TE: 3009 BE12 10.0.14.2 0
Pop TE: 3009 tt65001 10.0.14.2 0 (!)
24006 Pop TE: 10 BE12 10.0.14.2 0
Pop TE: 10 tt65001 10.0.14.2 0 (!)
24007 Pop TE: 63 BE12 10.0.14.2 0
Pop TE: 63 tt65001 10.0.14.2 0 (!)
24010 Pop TE: 4848 BE12 10.0.14.2 0
Pop TE: 4848 tt65001 10.0.14.2 0 (!)
24012 Pop TE: 1455 BE12 10.0.14.2 0
Pop TE: 1455 tt65001 10.0.14.2 0 (!)
24013 Pop TE: 2932 BE12 10.0.14.2 0
Pop TE: 2932 tt65001 10.0.14.2 0 (!)
24014 Pop TE: 2967 BE12 10.0.14.2 0
Pop TE: 2967 tt65001 10.0.14.2 0 (!)
RP/0/RP0/CPU0:router# clear mpls forwarding counters