show mpls statistics

Displays MPLS statistics.

Syntax

show mpls statistics { oam }
show mpls statistics { transit [ label label | ldp [ ip_addr | submask | label ] | rsvp label ] }
show mpls statistics { tunnel [ destination ip_addr | index vif_index | ldp [ destination ip_addr | index vif_index ] | rsvp [ destination ip_addr | index vif_index | name name ] ] }

Parameters

oam
Displays the MPLS OAM statistics.
transit
Displays the MPLS transit statistics.
label label
Displays the MPLS transit statistics for the selected label.
ldp ip_addr
Displays the MPLS transit LDP statisticsfor the selected IP address.
rsvp
Displays the MPLS transit RSVP statistics .
tunnel
Displays the MPLS tunnel statistics.
destination destination
Displays the MPLS tunnel statistics for the selected tunnel destination.
index vif_index
Displays the MPLS tunnel statistics for the selected tunnel index.
ldp
Displays the MPLS tunnel LDP statistics.
destination destination
Displays the MPLS tunnel statistics for the selected tunnel destination.
index vif_index
Displays the MPLS tunnel statistics for the selected tunnel index.
rsvp
Displays the MPLS tunnel RSVP statistics.
destination destination
Displays the MPLS tunnel statistics for the selected tunnel destination.
index vif_index
Displays the MPLS tunnel statistics for the selected tunnel index.
name name
Displays the MPLS tunnel statistics for the selected named tunnel.

Modes

Privileged EXEC mode

Usage Guidelines

MPLS is supported only on devices based on the DNX chipset family. For a list of such devices, see "Supported Hardware".

Output

The show mpls statistics command displays the following information:

Output field Description
Name Tunnel name.
Intf Interface tunnel name.
Prot Protection code: L-Local, R- RtrId
Total Packets Displays the total number of packets.
Total Bytes Displays the total number of bytes.
Since Last Clear Packets Displays the number of packets since last clear.
Since Last Clear Bytes Displays the number of bytes since the last clear.
Rate Pkts/sec Displays the packets per second rate.
Rate Bytes/sec Displays the bytes per second rate.

Examples

The following example shows the command using the tunnel option.

device# configure
device(config)# router mpls
device(config-router-mpls)# lsp t2
device(config-router-mpls-lsp-t2)# show mpls statistics tunnel
                    Total                 Since Last clear               Rate          
Name  Intf   Prot   Packets   Bytes       Packets   Bytes     Pkts/sec   Bytes/sec
t1    tnl0   R      2004      28175882    2004      28175882  6             93919
t2    tnl1   L      3101      40373763    3101      40373763  10            134579

The following example shows the command using the tunnel rsvp option.

device# configure
device(config)# router mpls
device(config-router-mpls)# lsp t2
device(config-router-mpls-lsp-t2)# show mpls statistics tunnel rsvp
                    Total                  Since Last clear              Rate          
Name  Intf          Packets   Bytes        Packets  Bytes     Pkts/sec   Bytes/sec
t1    tnl0          2004      28175882     2004     28175882  6             93919

The following example shows the command using the transit option.

device# configure
device(config)# router mpls
device(config-router-mpls)# lsp t2
device(config-router-mpls-lsp-t2)# show mpls statistics transit
                   Total                  Since Last clear               Rate          
IN Label   Prot    Packets   Bytes        Packets   Bytes     Pkts/sec   Bytes/sec
2048       R       2004      28175882     2004      28175882  6             93919
2050       L       3101      40373763     3101      40373763  10            134579

The following example shows the command using the transit ldp option.

device# configure
device(config)# router mpls
device(config-router-mpls)# lsp t2
device(config-router-mpls-lsp-t2)# show mpls statistics transit ldp
                   Total                  Since Last clear               Rate          
IN Label           Packets   Bytes        Packets   Bytes     Pkts/sec   Bytes/sec
2050               3101      40373763     3101      40373763  10            134579