See the following sections:
![]() |
Note: For information about the traceoptions statement at the [edit protocols vrrp] hierarchy level, see the JUNOS High Availability Configuration Guide. |
- traceoptions {
- flag flag <disable>;
- }
- [edit interfaces interface-name]
Statement introduced before JUNOS Release 7.4.
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.
If you do not include this statement, no interface-specific tracing operations are performed.
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.
flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. The following are the interface-specific tracing options.
See Tracing Operations of the Interface Process.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- traceoptions {
- file filename <files number> <size size> <world-readable
| no-world-readable>
- <match regex>;
- flag flag <disable>;
- }
- [edit interfaces]
Statement introduced before JUNOS Release 7.4.
Define tracing operations for the interface process (dcd).
If you do not include this statement, no interface-specific tracing operations are performed.
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.
flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. You can include the following flags:
no-world-readable—(Optional) Disallow any user to read the log file.
size size—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file named trace-file reaches this size, it is renamed trace-file.0. When the trace-file again reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. This renaming scheme continues until the maximum number of trace 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 trace files with the files option.
world-readable—(Optional) Allow any user to read the log file.
match regex—(Optional) Refine the output to include only those lines that match the given regular expression.
See Tracing Operations of the Interface Process.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- traceoptions {
- file filename <files number> <size size> <(world-readable
| no-world-readable)>;
- flag flag <disable>;
- }
- [edit protocols lacp]
Statement introduced in JUNOS Release 7.6.
Define tracing operations for the LACP protocol.
If you do not include this statement, no LACP protocol tracing operations are performed.
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 lacpd.
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.
flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. You can include the following flags:
no-world-readable—(Optional) Prevent any user from reading the log file.
size size—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file named trace-file reaches this size, it is renamed trace-file.0. When the trace-file again reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. This renaming scheme continues until the maximum number of trace 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 trace files with the files option:
Syntax: xk to specify kilobytes, xm to specify megabytes, or xg to specify gigabytes
world-readable—(Optional) Allow any user to read the log file.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- traceoptions {
- flag flag <disable>;
- file filename <files number> <size size>
- <world-readable | no-world-readable> <match regex>;
- flag flag <disable>;
- }
- [edit protocols ppp]
Statement introduced in JUNOS Release 7.5.
Define tracing operations for the PPP process.
To specify more than one tracing operation, include multiple flag statements.
You cannot specify a separate trace tile. Tracing information is placed in the system syslog file in the directory /var/log/pppd.
If you do not include this statement, no PPPD-specific tracing operations are performed.
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, commit script process tracing output is placed in the file ppd. If you include the file statement, you must specify a filename. To retain the default, you can specify eventd as the filename.
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 and a filename.
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.
flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. The following are the PPPD-specific tracing options.
match regex—(Optional) Refine the output to include 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 trace-file reaches this size, it is renamed trace-file.0. When the trace-file again reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. This renaming scheme continues until the maximum number of trace 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 trace files with the files option and filename.
world-readable—(Optional) Enable unrestricted file access.
non-world-readable—(Optional) By default, log files can be accessed only by the user who configures the tracing operation. Specify non-world-readable to reset the default.
See Tracing Operations of the pppd Process.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.