Enabling outputting port state transition information

In a large-scale spanning tree network, you can enable devices to output the port state transition information. Then, you can monitor the port states in real time.

To enable outputting port state transition information:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable outputting port state transition information.

  • In STP/RSTP mode:stp port-log instance 0

  • In MSTP mode:stp port-log { all | instance instance-list }

By default, this feature is enabled.