Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

traceoptions (Layer 2 Learning)

Syntax

Hierarchy Level

Description

Define tracing operations for Layer 2 learning.

Default

The traceoptions feature is disabled by default.

Options

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.

You can specify the following options:

  • no-world-readable—(Optional) Restrict file access to the user who created the 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, 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 files option. Use xk to specify KB, xm to specify MB, or xg to specify gigabytes.

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

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.

  • bmac-next-hop—Trace backbone MAC next hop operations.

  • bridge-bmac-next-hop—Trace backbone MAC next hop bridge operations.

  • bridging-interface—Trace interface bridge operations.

  • bridging-domain—Trace bridging domain operations.

  • configuration—Trace configuration operations.

  • flood-next-hop—Trace flood next hop operations.

  • initialization—Trace initialization operations.

  • interface-device—Trace interface device operations.

  • interface-family—Trace interface family operations.

  • interface-logical—Trace logical interface operations.

  • ipc—Trace inter-process communications operations.

  • irb—Trace integrated routing and bridging operations.

  • isid—Trace i-tagged service ID operations.

  • kack—Trace kernel-acknowledgment.

  • learning-domain—Trace learning domain operations.

  • logical-system—Trace logical system operations.

  • mac-learning—Trace MAC address learning.

  • mc-ae—Trace multichassis aggregated Ethernet interface operations.

  • redundant-trunk-group—Trace redundant trunk group operations.

  • routing-instance—Trace routing instance operations.

  • routing-socket—Trace routing socket operations.

  • storm-control—Trace storm control operations.

  • unknown-unicast-forwarding—Trace unknown unicast forwarding events.

  • vpls-ping—Trace Virtual Private VLAN Service (VPLS) ping operations.

in-memory-debug—Enable trace parameters in the memory.

level—Specify level of debugging output.

no-remote-trace—Disable remote tracing.

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