ON THIS PAGE
Syntax (Individual interfaces with PTX Series, EX Series, ACX Series)
Syntax (Individual interfaces with QFX Series, OCX1100, EX4600, NFX Series)
Syntax (Interface process with ACX Series, SRX Series, MX Series, M Series, T Series)
Hierarchy Level (Interface process with ACX Series, SRX Series, MX Series, M Series, T Series)
traceoptions (Individual Interfaces)
Syntax (Individual interfaces with PTX Series, EX Series, ACX Series)
traceoptions { file filename <files name> <size size> <world-readable | no-world-readable>; flag flag; match; }
Syntax (Individual interfaces with QFX Series, OCX1100, EX4600, NFX Series)
traceoptions { flag flag; }
Syntax (OAMLFM with EX Series, QFX Series, NFX Series)
traceoptions { file filename <files number> <match regex> <size size> <world-readable | no-world-readable>; flag flag ; no-remote-trace; }
Syntax (Interface process with ACX Series, SRX Series, MX Series, M Series, T Series)
traceoptions { file <filename> <files number> <match regular-expression> <size size> <world-readable | no-world-readable>; flag flag <disable>; no-remote-trace; }
Hierarchy Level (Individual interfaces with PTX Series, EX Series, ACX Series, QFX Series, OCX1100, EX4600, NFX Series)
[edit interfaces interface-name]
Hierarchy Level (Interface process with ACX Series, SRX Series, MX Series, M Series, T Series)
[edit interfaces]
Description
Define tracing operations for individual interfaces.
To specify more than one tracing operation, include multiple flag
statements.
The interfaces traceoptions
statement does not support
a trace file. The logging is done by the kernel, so the tracing information
is placed in the system syslog
file in the directory /var/log/dcd
.
On EX Series, QFX Series, and NFX Series platforms, configure tracing options the link fault management.
On ACX Series, SRX Series, MX Series, M Series, and T Series platforms define tracing operations for the interface process (dcd).
Default
If you do not include this statement, no interface-specific tracing operations are performed.
Options
Table 1 lists options for traceoption command for the following platforms:
Option |
Individual interfaces with PTX Series, ACX Series, EX Series | Individual interfaces with QFX Series, QFabric System, OCX1100, EX4600, NFX Series | Interface Process with OAMLFM with EX Series, QFX Series, NFX Series | Interface process with ACX Series, SRX Series, MX Series, M Series, T Series |
---|---|---|---|---|
|
—Name of the file to receive the output of the
tracing operation. Enclose the name within quotation marks. All files
are placed in the directory |
—Name of the file to receive the output of the
tracing operation. Enclose the name within quotation marks. All files
are placed in the directory |
—Name of the file to receive the output of the
tracing operation. Enclose the name within quotation marks. All files
are placed in the directory |
|
files number |
—(Optional) Maximum number of trace files. When
a trace file named trace-file reaches its maximum size, it is renamed |
—(Optional) Maximum number of trace files. When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0, then trace-file.1, and so on, until the maximum xk to specify KB, xm to specify MB, or xg to specify GB number of trace files is reached. Then the oldest trace file is overwritten. If you specify a maximum number of files, you also must specify a maximum file size with the size option. |
—(Optional) Maximum number of trace files. When
a trace file named If you specify a maximum number of files, you also must specify
a maximum file size with the Range: 2 through 1000 Default: 3 files |
|
|
—Tracing operation to perform. To specify more
than one tracing operation, include multiple
|
—Tracing operation to perform. To specify more
than one tracing operation, include multiple
|
—Tracing operation to perform. To specify more
than one tracing operation, include multiple
|
—Tracing operation to perform. To specify more
than one tracing operation, include multiple
|
|
—(Optional) Regular expression for lines to be traced. |
—(Optional) Refine the output to log only those lines that match the given regular expression. |
||
size size |
—(Optional) Maximum size of each trace file, in
kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file
named |
—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0, then trace-file.1, and so on, until the maximum number of trace files is reached. Then the oldest trace file is overwritten. If you specify a maximum number of files, you also must specify a maximum file size with the files option. Syntax: xk to specify KB, xm to specify MB, or xg to specify GB Range: 10 KB through 1 GB Default: 128 KB Default: If you do not include this option, tracing output is appended to an existing trace file. |
—(Optional) Maximum size of each trace file, in
kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file
named Syntax: Range: 10 KB through the maximum file size supported on your router Default: 1 MB |
|
|
—(Optional) Prevent any user from reading the log file. |
—(Optional) Restrict file access to the user who created the file. |
—(Optional) Disallow any user to read the log file. |
|
|
—(Optional) Allow any user to read the log file. |
—(Optional) Enable unrestricted file access. |
—(Optional) Allow any user to read the log file. |
|
|
—(Optional) Disable the tracing operation. You
can use this option to disable a single operation when you have defined
a broad group of tracing operations, such as |
|||
no-remote-trace |
—(Optional) Disable the remote trace. |
- |
||
|
—(Optional) Refine the output to include only those lines that match the given regular expression. |
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
routing—To view this statement in the configuration.routing-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.2 for ACX Series Universal Metro Routers.