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. You can specify 2 through 1000 trace files. The default is 3 trace files.

Note:

When you specify the maximum number of trace files, you must also specify the maximum trace file size with the size size option.

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.

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.

  • heartbeat—Trace Virtual Chassis heartbeat packets.

  • 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 size—(Optional) Maximum size of each trace file. By default, the number entered is treated as bytes. Alternatively, you can indicate the unit of measure with size k to specify KB, size m to specify MB, or size g to specify GB. You can specify a trace file size of 10240 through 1073741824 bytes.

Note:

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

vccpd— (Optional) Include VCCPD messages in the trace files.

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.