Monitoring Loop Protect Status and Settings

Use the commands in Commands for Monitoring Loop Protect to monitor Loop Protect settings.

Click to expand in new window

Commands for Monitoring Loop Protect

Task Command
Display the Loop Protect status per port, per SID, or both. show spantree lp [port port-string] [sid sid]
Display the Loop Protect lock status per port, per SID, or both.
Note: A port can become locked if a configured number of Loop Protect events occur during the configured window of time. Once a port is forced into blocking (locked), it remains locked until manually unlocked with the clear spantree lplock command.
show spantree lplock [port port-string] [sid sid]
Display the Loop Protect capability of a link partner for one or more ports. show spantree lpcapablepartner [port port-string]
Display the reason for placing a port in a non-forwarding state due to an exceptional condition. show spantree nonforwardingreason [port port-string] [sid sid]

Example

The following example shows a switching device with Loop Protect enabled on port lag.0.2, SID 56:

System->show spantree lp port lag.0.2 sid 56
  LoopProtect is enabled on port lag.0.2, SID 56
System->show spantree lplock port lag.0.2 sid 56
  LoopProtect Lock status for port lag.0.2, SID 56_ is UNLOCKED
System->show spantree lpcapablepartner port lag.0.2
  Link partner of port lag.0.2_is LoopProtect-capable.
System->show spantree nonforwardingreason port lag.0.2
  Port lag.0.2 has been placed in listening or blocking state on SID 0 by the 											  LoopProtect feature.