R3303-HP 6600/HSR6600 Routers MPLS Command Reference Guide

38
display mpls statistics lsp
Use display mpls statistics lsp to display MPLS statistics for all LSPs or the LSP with a specific index or
name.
Syntax
display mpls statistics lsp { index | all | name lsp-name } [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
index: Specifies an LSP by the index of the LSP. The value range for the LSP index is 0 to 4294967295.
all: Specifies all LSPs.
name lsp-name: Specifies an LSP by its name, a string of 1 to 15 characters.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
To use this command to view MPLS statistics, you must first enable MPLS statistics collection with the mpls
statistics enable command and set the statistics reading interval with the statistics interval command.
Otherwise, the statistics are all 0.
Examples
# Display MPLS statistics for all LSPs.
<Sysname> display mpls statistics lsp all
Statistics for Lsp IN : LSP Name /LSP Index : DynamicLsp/9217
InSegment
Octets : 0
Packets : 0
Errors : 0
Down : 0
Start Time : 2006/05/20 15:52:30
End Time : 2006/05/20 15:52:30
Statistics for Lsp OUT : LSP Name /LSP Index : DynamicLsp/9217
OutSegment
Octets : 0
Packets : 0
Errors : 0
Down : 0