Supported Platforms
Related Documentation
- ACX, M, PTX, T Series
- Configuring MPLS to Gather Statistics
- M, PTX, T Series
- Configuring Automatic Bandwidth Allocation for LSPs
statistics
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Enable MPLS statistics collection and reporting.
Options
auto-bandwidth—Collect statistics related to automatic bandwidth.
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.
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
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.
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.
Related Documentation
- ACX, M, PTX, T Series
- Configuring MPLS to Gather Statistics
- M, PTX, T Series
- Configuring Automatic Bandwidth Allocation for LSPs
Published: 2012-07-02
Supported Platforms
Related Documentation
- ACX, M, PTX, T Series
- Configuring MPLS to Gather Statistics
- M, PTX, T Series
- Configuring Automatic Bandwidth Allocation for LSPs