MPLS Forwarding Commands on Cisco IOS XR Software
clear mpls forwarding counters
MPR-152
Cisco IOS XR Multiprotocol Label Switching Command Reference
clear mpls forwarding counters
To clear (set to zero) the MPLS forwarding counters, use the clear mpls forwarding counters command
in EXEC mode.
clear mpls forwarding counters
Syntax Description This command has no arguments or keywords.
Command Modes EXEC
Command History
Usage Guidelines To use this command, you must be in a user group associated with a task group that includes the proper
task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on
Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Use the clear mpls forwarding counters command to set all MPLS forwarding counters to zero so that
you can easily see future changes.
Task ID
Examples The following example shows sample output before and after clearing all counters:
RP/0/RP0/CPU0:router# show mpls forwarding
Local Outgoing Prefix Outgoing Next Hop Bytes T
Label Label or ID Interface Switched O
----- -------- ------------- ---------- ------------ --------- -
18 Exp-Null-v4 33.33.33.33/32 PO0/2/0/0 10.1.2.3 1572
RP/0/RP0/CPU0:router# clear mpls forwarding counters
RP/0/RP0/CPU0:router# show mpls forwarding
Local Outgoing Prefix Outgoing Next Hop Bytes T
Label Label or ID Interface Switched O
----- -------- ------------- ---------- ------------ --------- -
18 Exp-Null-v4 33.33.33.33/32 PO0/2/0/0 10.1.2.3 0
Release Modification
Release 2.0 This command was introduced on the Cisco CRS-1.
Release 3.0 No modification.
Release 3.2 No modification.
Release 3.3.0 No modification.
Task ID Operations
mpls-te, mpls-ldp, mpls-static read, write, read, write, read, write