Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

traceoptions (Proxy Fibre Channel)

Syntax

Hierarchy Level

Description

Set proxy FC protocol tracing options.

Note:

The traceoptions statement is not supported on the QFabric system.

Default

Traceoptions is disabled.

Options

file name—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.

  • error—Trace all error events.

  • interface—Trace the interface events.

  • normal—Trace all normal events.

  • Default: If you do not specify this option, only unusual or abnormal operations are traced.

  • packet—Trace packet decoding operations

  • parse—Trace configuration parsing.

  • state—Trace state transitions.

no-stamp—(Optional) Do not place timestamp information at the beginning of each line in the trace file.

  • Default: If you omit this option, timestamp information is placed at the beginning of each line of the tracing output.

no-world-readable—(Optional) Prevent any user from reading the log file.

replace—(Optional) Replace an existing trace file if there is one.

  • Default: If you do not include this option, tracing output is appended to an existing trace 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

storage—To view this statement in the configuration.storage-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 11.1.