Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

traceoptions (Services)

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 16.1 for MX80, MX104, MX240, MX480, MX960, MX2010, MX2020, vMX Series.

Description

Define tracing operations for the JET service process (jsd).

Options

fileIndicate trace file information.
filenameName of the file to receive the tracing operation output. Enclose the name in quotation marks. Traceoption output files are located in the /var/log/ directory.
files number(Optional) Specify the maximum number of trace files.

Range: 2 through 1000

Default: 10

match regexSpecify the regular expression for lines to be logged.
size size(Optional) Specify the maximum size of each trace file. When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0. The traceoption output continues in a second trace file named trace-file.1. When trace-file.1 reaches its maximum size, output continues in a third file named trace-file.2, and so on. When the maximum number of trace files is reached, the oldest trace file is overwritten.

Range: 10,240 through 1,073,741,824 bytes

Default: 1000k

world-readable | no-world-readable(Optional). Grant all users permission to read log files, or restrict the permission only to the root user and users who have Junos OS maintenance permission.
flag flagSpecify the tracing operation to perform. To specify more than one tracing operation, include multiple flag statements:
  • all—Trace everything.

  • config—Trace configuration events.

  • general—Trace general events.

  • grpc—Trace grpc server events.

  • notification—Trace notification events.

  • routing-socket—Trace routing socket calls

  • timeouts—Trace timeouts.

  • timer—Trace internal timer events.

no-remote-traceDisable remote tracing.

Required Privilege Level

trace—To view this statement in the configuration.

trace-control—To add this statement to the configuration.