Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

traceoptions (MX Series Virtual Chassis)

Syntax

Hierarchy Level

Description

Define tracing operations for the MX Series Virtual Chassis configuration.

Default

Tracing operations are disabled.

Options

detail—(Optional) Generate detailed trace information for a flag.

disable—(Optional) Disable a flag.

file filename—Name of the file to receive the output of the tracing operation. Enclose the name within quotation marks. All files are placed in the directory /var/log.

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, 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 also must specify a maximum file size with the size option.

  • Range: 2 through 1000

  • Default: 3 files

flag flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. You can include the following flags:

  • all—All tracing operations.

  • auto-configuration—Trace Virtual Chassis ports that have been automatically configured.

  • csn—Trace Virtual Chassis complete sequence number (CSN) packets.

  • error—Trace Virtual Chassis errored packets.

  • graceful-restart—Trace Virtual Chassis graceful restart events.

  • hello—Trace Virtual Chassis hello packets.

  • krt—Trace Virtual Chassis kernel routing table (KRT) events.

  • lsp—Trace Virtual Chassis link-state packets.

  • lsp-generation—Trace Virtual Chassis link-state packet generation.

  • me—Trace Virtual Chassis primary-role election (ME) events.

  • normal—Trace normal events.

  • packets—Trace Virtual Chassis packets.

  • parse—Trace reading of the configuration.

  • psn—Trace partial sequence number (PSN) packets.

  • route—Trace Virtual Chassis routing information.

  • spf—Trace Virtual Chassis shortest-path-first (SPF) events.

  • state—Trace Virtual Chassis state transitions.

  • task—Trace Virtual Chassis task operations.

match regular-expression—(Optional) Refine the output to include lines that contain the regular expression.

no-stamp—(Optional) Do not place a timestamp on any trace file.

no-world-readable—(Optional) Restrict file access to the user who created the file.

receive—(Optional) Trace received packets.

replace—(Optional) Replace a trace file instead of appending information to it.

send—(Optional) Trace transmitted packets.

size maximum-file-size—(Optional) Maximum size of each trace file. By default, the number entered is treated as bytes. Alternatively, you can include a suffix to the number to indicate kilobytes (KB), megabytes (MB), or gigabytes (GB). If you specify a maximum file size, you also must specify a maximum number of trace files with the files option.

  • Syntax: sizek to specify KB, sizem to specify MB, or sizeg to specify GB

  • Range: 10240 through 1073741824

world-readable—(Optional) Enable unrestricted file access.

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