traceoptions (NETCONF TLS)
Syntax
traceoptions {
file <filename> <files files> <match match> <size size> <(world-readable | no-world-readable)>;
flag name;
level (all | error | info | notice | verbose | warning);
no-remote-trace;
}
Description
Enabling tracing can adversely impact scale and performance and may increase security risk. We strongly recommend using the trace, tracing, or traceoptions commands only under the guidance of a JTAC support engineer. After collecting the debug information, immediately disable tracing to minimize risk and restore normal system performance.
Enable trace options for NETCONF sessions that use the Transport Layer Security (TLS) protocol.
Default
If you do not include this statement, NETCONF-over-TLS-specific tracing operations are not performed.
Options
file filename |
Name of the file to receive the output of the tracing operation. All files are placed in the /var/log directory.
|
files number |
(Optional) Maximum number of trace files. When a trace file named trace-file reaches its maximum size, it is renamed and compressed to trace-file.0.gz, then trace-file.1.gz 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
|
flag flag |
Tracing operation to perform. To specify more than one tracing operation,
include multiple
|
| level |
Level of debugging output.
|
match regular-expression |
(Optional) Refine the output to include only those lines that match the regular expression. |
no-remote-trace |
Disable remote tracing. |
no-world-readable |
(Optional) Disable unrestricted file access, which restricts file access to the owner. This is the default. |
size size |
(Optional) Maximum trace file size in bytes, kilobytes (KB), megabytes (MB), or gigabytes (GB). If you don’t specify a unit, the default is bytes. If you specify a
maximum file size, you also must specify a maximum number of trace files
with the
|
world-readable |
(Optional) Enable unrestricted file access. |
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 20.2R1.
Statement introduced in Junos OS Evolved Release 21.4R1.