traceoptions (Interface Process)
Syntax traceoptions {
file <filename> <files number> <match regular-expression> <size size> <world-readable |
no-world-readable>;
flag flag <disable>;
no-remote-trace;
}
Hierarchy Level [edit interfaces]
Release Information Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Description Define tracing operations for the interface process (dcd).
Default If you do not include this statement, no interface-specific tracing operations are performed.
Options disable—(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 all.
filename—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 /var/log. By default,
interface process tracing output is placed in the file dcd.
files number—(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 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.
Range: 2 through 1000
Default: 3 files
flag—Tracing operation to perform. To specify more than one tracing operation, include
multiple flag statements. You can include the following flags:
• all
• change-events—Log changes that produce configuration events
• config-states—Log the configuration state machine changes
• kernel—Log configuration IPC messages to kernel
• kernel-detail—Log details of configuration messages to kernel
no-world-readable—(Optional) Disallow any user to read the log file.
223Copyright © 2015, Juniper Networks, Inc.
Chapter 3: Configuration Statements