traceoptions (Protocols Source Packet Routing)
Syntax
traceoptions {
file filename files files | no-world-readable | replace | size size| world-readable;
flag name detail;
}Hierarchy Level
[edit logical-systems name protocols source-packet-routing],
[edit protocols source-packet-routing]
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.
Configure trace options for soure-packet-routing.
Options
file filename — Name of the file that receives the
output of the tracing operation. Enclose the name in quotation marks. All files are
placed in the directory /var/log.
-
Range: 2 through 1000 files
-
Default: 10 files
-
files files | no-world-readable | replace | size size| world-readable—(Optional) Specify maximum number of trace files that can be saved. When a trace file named trace-file.0 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 must also specify a maximum file size with thesizeoption. -
size—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB).Range: 10240 through 4294967295
-
world-readable—(Optional) Allow any user to read the log file. -
no-world-readable—(Optional) Disallow any user to read the log file.
flag name detail— Specify tracing operation to
perform. To specify more than one tracing operation, include multiple
flag statements. You can specify one of the following flags:
-
all— Trace everything -
bfd— Trace bfd-related activity -
compute— Trace compute profile and computed lsp related activity -
controller— Trace controller-related activity -
delay-measurement— Trace path delay measurement related activity -
dtm— Trace dtm-related activity -
general— Trace general activity -
interface— Trace interface-related activity -
nsr-replication— Trace NSR replication activity -
oam— Trace OAM related activity -
route— Trace route-related activity -
srv6-binding-sid— Trace SRv6 Binding SID related activity -
srv6-te— Trace srv6-te activity -
state— Trace LSP state-related activity -
telemetry-statistics— Trace telemetry statistics related activity -
traffic-engineering-database— Trace spring-te to ted export related activity -
translation— Trace translation-related activity
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 17.4R1.
srv6-binding-sid option introduced in Junos OS Release 26.2R1