traceoptions (Security Flow)
Syntax
traceoptions {
file {
filename;
files number;
match regular-expression;
size maximum-file-size;
(world-readable | no-world-readable);
}
flag {
all;
basic-datapath;
fragmentation;
high-availability;
host-traffic;
jexec;
multicast;
route;
session;
session-scan;
tcp-basic;
tunnel;
}
local-debug-buf {
size size;
}
no-remote-trace;
packet-filter filter-name {
conn-tag session-conn
destination-port port-identifier;
destination-prefix address;
interface interface-name;
protocol protocol-identifier;
source-port port-identifier;
source-prefix address;
}
rate-limit messages-per-second;
trace-level (brief | detail | minimal);
}
root-override
Hierarchy Level
[edit security flow] [edit logical-systems logical-system-name security flow] [edit tenants tenant-name security flow]
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 flow tracing options.
Starting in Junos OS Release 24.2R1, we support local-debug-buf
option to configure number of lines for the flow local trace buffer, and the maximum
lines allowed is 40,000. A new flag packet-track has been
introduced to get information about the packet being handled in SRX data path, The
flag packet-track should be configured in root logical system. To
track information about the packets in non root logical system use the option
root-override along with flag
packet-track.
Options
| file | Configure the trace file options.
|
||||||||||||||||||||||||
| flag | Trace operation
to perform. To specify more than one trace operation, include multiple
|
||||||||||||||||||||||||
| local-debug-buf | Configure number of lines for the flow local trace buffer. Maximum lines allowed is 40,000. | ||||||||||||||||||||||||
| no-remote-trace | Set remote tracing as disabled. |
||||||||||||||||||||||||
| packet-filter filter-name | Packet filter to enable during the tracing operation. Configure the filtering options.
|
||||||||||||||||||||||||
| rate-limit messages-per-second | Limit the incoming rate of trace messages. |
||||||||||||||||||||||||
| root-override |
Root administrator can debug the packets flow traces from all the logical
systems and tenant systems for debug by enabling the
|
||||||||||||||||||||||||
| trace-level | Set the level for trace logging. This option is available only when the flag is set.
|
Table 1 describes tracing of packet footprints with and without root override options.
Trace Configuration |
With Root Override |
Without Root Override |
|---|---|---|
Logical systems and tenant systems with own flow trace configuration |
The flow trace of logical systems and tenant systems are recorded to the root. |
The flow trace of logical systems and tenant systems are recorded to the configured logical systems and tenant systems. |
Logical systems and tenant systems without own flow trace configuration |
The flow trace of logical systems and tenant systems are recorded to root. |
The flow trace of logical systems and tenant systems are not recorded anywhere |
When the packets
are switched by the VPLS switch in root logical system, the jexec trace packet footprints might not be complete in logical systems
and tenant systems.
If a logical system or tenant system
does not configure the security flow traceoptions, and
there is no root-override configured under root either, the packet
traces will not be recorded.
To get complete packet footprints
for logical systems and tenant systems related flow and jexec trace packet footprints, we recommend that you configure
the required flow trace with root-override.
Required Privilege Level
trace—To view this in the configuration.
trace-control—To add this to the configuration.
Release Information
Statement introduced in Junos OS Release 8.5.
Statement updated
in Junos OS Release 12.1X46-D10 with the trace-level option
and additional flags.
Statement updated
in Junos OS Release 15.1X49-D70 with the addition of the conn-tag filter parameter.
Support at the following
hierarchy levels introduced in Junos OS Release 19.4R1: [edit
logical-systems logical-system-name security
flow], and [edit tenants tenant-name security flow].
Statement jexec, minimal, and root-override options
are introduced in Junos OS Release 20.4R1. The option error is now changed to minimal.