Spanning-Tree Protocol Trace Options
To trace spanning-tree protocol operations, you can specify options in the global traceoptions statement included at the [edit routing-options] hierarchy level, and you can also specify spanning-tree protocol-specific options by including the traceoptions statement.
For general information about tracing and global tracing options, see the statement summary for the global traceoptions statement in the JUNOS Routing Protocols Configuration Guide.
You can specify the following STP-specific options in the STP traceoptions statement:
- all—Trace all operations.
- all-failures—Trace all failure conditions.
- bpdu—Trace BPDU reception and transmission.
- bridge-detection-state-machine—Trace the bridge detection state machine.
- events—Trace events of the protocol state machine.
- port-information-state-machine—Trace the port information state machine.
- port-migration-state-machine—Trace the port migration state machine.
- port-receive-state-machine—Trace the port receive state machine.
- port-role-transit-state-machine—Trace the port role transit state machine.
- port-role-select-state-machine—Trace the port role selection state machine.
- port-transmit-state-machine—Trace the port transmit state machine.
- port-state-transit-state-machine—Trace the port state transit state machine.
- ppmd—Trace the state and events for the ppmd process.
- state-machine-variables—Trace when the state machine variables change.
- timers—Trace protocol timers.
- topology-change-state-machine—Trace the
topology change state machine.

Note: Use the trace flag all with caution. This flag may cause the CPU to become very busy.
For general information about tracing and global tracing options, see the statement summary for the global traceoptions statement in the JUNOS Routing Protocols Configuration Guide.

