Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


traceoptions (Egress Protection)


Hierarchy Level


Configure tracing operations for egress protection.



Name of the file to receive the output of the tracing operation.

files number

(Optional) Maximum number of trace files. If you specify a maximum number of files, you must also include the size statement to specify the maximum file size. 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.

  • Range: 2 through 1000

  • Default: 2 files


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

  • all—Trace all operations

  • error—Trace error conditions

  • route—Trace route transitions

  • state—Trace state transitions

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.4R3.