- statistics {
- auto-bandwidth;
- file filename <size size> <files number> <no-stamp> <replace>
<world-readable | no-world-readable>;
- interval seconds;
- }
- [edit logical-systems logical-system-name protocols mpls],
- [edit protocols mpls]
Statement introduced before JUNOS Release 7.4.
Enable MPLS statistics collection and reporting.
auto-bandwidth—Collect statistics related to automatic bandwidth.
file filename—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—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.
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.
no-world-readable—(Optional) Prevents users from reading the log file.
replace—(Optional) Replace an existing trace file if there is one. However, the change does not take effect after you commit the configuration. The change takes effect only after the routing protocol process restarts.
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) Enables users to read the log file.
See Configuring MPLS to Gather Statistics, and Configuring MPLS Statistics for Automatic Bandwidth Allocation.
routing and trace—To view this statement in the configuration.
routing-control and trace-control—To add this statement to the configuration.