statistics (Protocols MPLS)
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.3X50 for the QFX Series.
traffic-class-statistics option introduced in Junos OS Release 14.2.
Statement introduced in Junos OS Release 17.2R1 for QFX10000 Series switches.
Enable MPLS statistics collection and reporting.
file filename—(Optional) Name of the file to receive the output. We recommend that you place MPLS tracing output in the file mpls-stat in the /var/log directory.
files number—(Optional) Maximum number of trace files. When a trace file named file reaches its maximum size, it is renamed file.0, then file.1, and so on, until the maximum number of files is reached. Then, the oldest file is overwritten.
Range: 2 or more
Default: 2 files
If you specify a maximum number of files, you also must specify a maximum file size with the size option.
interval seconds—Interval at which to periodically collect statistics.
Range: 1 through 65,535
Default: 300 seconds
no-world-readable—(Optional) Prevent users from reading the log file.
size size—(Optional) Maximum size of each file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a file named file reaches this size, it is renamed file.0. When the file again reaches its maximum size, file.0 is renamed file.1 and file is renamed file.0. This renaming scheme continues until the maximum number of files is reached. Then the oldest trace file is overwritten.
If you specify a maximum file size, you also must specify a maximum number of files with the files option.
world-readable—(Optional) Enable users to read the log file.
Syntax: Syntax: xk to specify KB, xm to specify MB, or xg to specify GB
Range: 10 KB through the maximum file size supported on your system
Default: 1 MB
traffic-class-statistics—(Optional) Create counters that maintain data traffic statistics per traffic class at the ingress of all types of LSPs and egress of ultimate hop popping (UHP) point-to-point LSPs. These counters are not created by default and are required to be configured to perform traffic-class-scoped loss measurement.
transit-statistics-polling—(Optional) Enable the polling and display of MPLS statistics for LSPs transiting the router. By default, RSVP does not periodically poll for transit LSP statistics. You cannot configure this statement and the no-transit-statistics statement at the same time.
The remaining statements are explained separately. See CLI Explorer.
Required Privilege Level
routing and trace—To view this statement in the configuration.
routing-control and trace-control—To add this statement to the configuration.