[Contents] [Prev] [Next] [Index] [Report an Error]

statistics

Syntax

statistics {
auto-bandwidth;
file filename <size size> <files number> <no-stamp> <replace> <world-readable | no-world-readable>;
interval seconds;
}

Hierarchy Level

[edit logical-systems logical-system-name protocols mpls],
[edit protocols mpls]

Release Information

Statement introduced before JUNOS Release 7.4.

Description

Enable MPLS statistics collection and reporting.

Options

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.

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) 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.

Default: If you do not include this option, tracing output is appended to an existing trace 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) Enables users to read the log file.

Usage Guidelines

See Configuring MPLS to Gather Statistics, and Configuring MPLS Statistics for Automatic Bandwidth Allocation.

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.


[Contents] [Prev] [Next] [Index] [Report an Error]