Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

traceoptions (Class of Service)

Syntax

Hierarchy Level

Description

Set class-of-service (CoS) tracing options.

Note:

The traceoptions statement is not supported on the QFabric system.

Default

Traceoptions is disabled.

Options

file filename

Name 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) Maximum number of trace files. 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.

If you specify a maximum number of files, you must also specify a maximum file size with the size option.

  • Range: 2 through 1000 files

  • Default: 1 trace file

flag

Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements:

  • all—Trace all operations.

  • asynch—Trace asynchronous configuration processing.

  • chassis-scheduler—Trace chassis stream scheduler processing.

  • cos-adjustment—Trace CoS rate adjustments.

  • dynamic—Trace dynamic CoS functions.

  • hardware-database—Trace the chassis hardware database related processing.

  • init—Trace initialization events.

  • performance-monitor—Trace performance monitor countors.

  • process—Trace configuration processing.

  • restart—Trace restart processing.

  • route-socket—Trace route-socket events.

  • show—Trace show command servicing.

  • snmp—Trace SNMP-related processing.

  • util—Trace utilities.

The following are the global tracing options:

  • all—Perform all tracing operations

  • parse—Trace parser processing.

no-remote-trace

(Optional) Disable remote tracing.

no-world-readable

(Optional) Prevent any user from reading the log file.

size size

(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0. Incoming tracefile data is logged in the now empty trace-file. When trace-file again reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. 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 file size, you must also specify a maximum number of trace files with the files option.

  • Syntax: xk to specify KB, xm to specify MB, or xg to specify GB

  • Range: 10 KB through the maximum file size of 4 GB (maximum is lower if 4 GB is not supported on your system)

  • Default: 1 MB

world-readable

(Optional) Allow any user to read the log file.

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 11.1.