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.
The tunnel index is the index derived from tunnel interface, as displayed by the show mpls lsp detail command.
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.
The tunnel index is the index derived from tunnel interface, as displayed by the show mpls lsp detail command.
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.
The tunnel index is the index derived from tunnel interface, as displayed by the show mpls lsp detail command.
name name
Displays the MPLS tunnel statistics for the selected named tunnel.

Modes

Privileged EXEC mode

Usage Guidelines

MPLS is supported on the Extreme 8820, SLX 9740, SLX 9640, and SLX 9540 devices only.

Output

The show mpls statistics command displays the following information:

The tunnel index displayed by this command is the LSP tunnel index maintained by MPLS. This index cannot be used to display the MPLS statistics. Use the show mpls statistics tunnel command to get the tunnel index for this purpose.

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