traceoptions (NETCONF and Junos XML Protocol)
Statement introduced in Junos OS Release 12.2.
Support for Junos XML protocol sessions added in Junos OS Release 16.1.
Option flag debug introduced in Junos OS Release 16.1.
Define tracing operations for NETCONF and Junos XML protocol sessions.
Starting in Junos OS Release 16.1, when you enable tracing operations at the [edit system services netconf traceoptions] hierarchy, Junos OS enables tracing operations for both NETCONF and Junos XML protocol sessions and adds the [NETCONF] and [JUNOScript] tags to the log file entries to distinguish the type of session. Prior to Junos OS Release 16.1, only NETCONF session data was logged, and the [NETCONF] tag was omitted.
If you do not include this statement, NETCONF and Junos XML protocol-specific tracing operations are not performed.
When a trace file named
trace-file reaches its maximum size, it is renamed and compressed
trace-file again reaches its maximum size,
trace-file.0.gz is renamed
trace-file is renamed and compressed to
trace-file.0.gz. 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 number of files, you also must specify a maximum file size with the size option and a filename.
Range: 2 through 1000 files
Default: 10 files
all—Log all incoming and outgoing data from NETCONF and Junos XML protocol sessions.
debug—Log debug level information. Using the flag all option is recommended.
incoming—Log all incoming data from NETCONF and Junos XML protocol sessions.
outgoing—Log all outgoing data from NETCONF and Junos XML protocol sessions.
Within a session, issue the
<request-netconf-trace><start/></request-netconf-trace> RPC to start tracing operations for that session, and issue the
<request-netconf-trace><stop/></request-netconf-trace> RPC to stop tracing operations for that session.
Syntax: size to specify bytes, sizek to specify KB, sizem to specify MB, or sizeg to specify GB
Range: 10240 through 1073741824 bytes
Default: 128 KB
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.