debug spanning-tree

To enables the tracing of the STP module as per the configured debug levels, use the command debug spanning-tree in Privileged EXEC Mode. The trace statements are generated for the configured trace levels. This command allows combination of debug levels to be configured (that is, more than one level of trace can be enabled or disabled). The debug levels are configured one after the other and not in single execution of the command. The no form of this command disables the tracing of the STP module as per the configured debug levels. The trace statements are not generated for the configured trace levels.

debug spanning-tree

debug spanning-tree { {[all] } { [bpdu] } { [bridge-detection-state-machine] } { [errors] } { [events] } { [global] } { [init-shut] } { [management] } { [memory] } { [port-info-state-machine] } { [port-receive-state-machine] } { [port-role-selection-state-machine] } { [protocol-migration-state-machine] } { [pseudoInfo-state-machine] } { [redundancy] } { [role-transition-state-machine] } { [sem-variables] } { [state-transition-state-machine] } { [timer] } { [topology-change-state-machine]} } { [switch } { <default>] } { [{<level(0-7)> } { | alerts } { | critical } { | debugging } { | errors } { | informational } { | notification } { | warnings}] }

no debug spanning-tree

no debug spanning-tree { {[all] } { [bpdu] } { [bridge-detection-state-machine] } { [errors] } { [events] } { [global] } { [init-shut] } { [management] } { [memory] } { [port-info-state-machine] } { [port-receive-state-machine] } { [port-role-selection-state-machine] } { [protocol-migration-state-machine] } { [pseudoInfo-state-machine] } { [redundancy] } { [role-transition-state-machine] } { [sem-variables] } { [state-transition-state-machine] } { [timer] } { [topology-change-state-machine]} } { [switch } { <default>] } { | informational } { | notification } { | warnings}] } { | alerts }

Parameters

Parameter Type Description
all   Enter to generate debug statements for all RSTP / MSTP
bpdu   Enter to generate debug statements for BPDU-related traces.
bridge-detection-state-machine   Enter to generate debug statements for bridge detection SEM.
errors   Enter to generate debug statements for all failure traces.
events   Enter to generate debug statements for event handling traces. This trace is generated to denote events that are posted to STP configuration queue whenever you configure any of the STP features.
global   Enter to generate global debug messages.
init-shut   Enter to generate debug statements for init and shutdown traces. This trace is generated on failed and successful initialization and shutting down of STP related module and memory.
management   Enter to generate debug statements for management traces. This trace is generated whenever you configure any of the STP features.
memory   Enter to generate debug statements for memory related traces. This trace is generated on failed and successful allocation of memory for STP process.
port-info-state-machine   Enter to generate debug statements for port information SEM.
port-receive-state-machine   Enter to generate debug statements for port receive SEM.
port-role-selection-state-machine   Enter to generate debug statements for role selection SEM.
port-transmit-state-machine   Enter to generate debug statements for port transmit SEM
protocol-migration-state-machine   Enter to generate debug statements for protocol migration SEM.
pseudoInfo-state-machine   Enter to generate debug statements for port receive pseudo information SEM.
redundancy   Enter to generate debug statements for redundancy code flow traces. This trace is generated in standby node STP while taking backup of configuration information from active node.
role-transition-state-machine   Enter to generate debug statements for role transition SEM
sem-variables   Enter to generate debug statements for state machine variable changes traces. This trace is generated on failed and successful creation and deletion of semaphore.
state-transition-state-machine   Enter to generate debug statements for state transition SEM.
timer   Enter to generate debug statements for timer module traces. Tis generated on failed and successful start, stop and restart of STP timers.
topology-change-state-machine   Enter to generate debug statements for topology change SEM.
switch   Enter to generate debug statements for switch / context.
default   Enter to generate debug statements for the default for switch / context.
<level (0-7)>   Enter to generate debug statements for or the specified severity level value.This value ranges from 0 to 7.
alerts   Enter to generate debug statements for immediate action.
critical   Enter to generate debug statements for critical conditions.
debugging   Enter to generate debug statements for debugging messages.
emergencies   Enter to generate debug statements when system cannot be used.
errors   Enter to generate debug statements for for error conditions.
informational   Enter to generate debug statements for information messages.
notification   Enter to generate debug statements for significant messages.
warnings   Enter to generate debug statements for warning conditions.

Mode

Privileged EXEC Mode

Default

Tracing of the STP module is disabled.

Examples

iS5Comm# debug spanning-tree errors 1