show spanning-tree
| begin
| exclude
| include
expression
Command Modes
User EXEC
Command History
Release
12.2(25)FX
12.2(25)SED
Usage Guidelines
If the vlan-id variable is omitted, the command applies to the spanning-tree instance for all VLANs.
Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output
do not appear, but the lines that contain Output appear.
Examples
This is an example of output from the show spanning-tree active command:
Switch# show spanning-tree active
VLAN0001
Spanning tree enabled protocol ieee
Root ID
Bridge ID
Uplinkfast enabled
Interface
---------------- ---- --- --------- -------- --------------------------------
Gi0/1
<output truncated>
This is an example of output from the show spanning-tree detail command:
Switch# show spanning-tree detail
VLAN0001 is executing the ieee compatible Spanning Tree protocol
Bridge Identifier has priority 49152, sysid 1, address 0003.fd63.9580
Configured hello time 2, max age 20, forward delay 15
Current root has priority 32768, address 0001.42e2.cdd0
Root port is 1 (GigabitEthernet0/1), cost of root path is 3038
Topology change flag not set, detected flag not set
Catalyst 2960 Switch Command Reference
2-552
(Optional) Display begins with the line that matches the expression.
(Optional) Display excludes lines that match the expression.
(Optional) Display includes lines that match the specified expression.
Expression in the output to use as a reference point.
Modification
This command was introduced.
The digest keyword was added, and new digest and transmit hold count
fields appear.
Priority
32768
Address
0001.42e2.cdd0
Cost
3038
Port
24 (GigabitEthernet0/1)
Hello Time
2 sec
Max Age 20 sec
Priority
49153
(priority 49152 sys-id-ext 1)
Address
0003.fd63.9580
Hello Time
2 sec
Max Age 20 sec
Aging Time 300
Role Sts Cost
Root FWD 3019
Chapter 2 Catalyst 3750 Switch Cisco IOS Commands
Forward Delay 15 sec
Forward Delay 15 sec
Prio.Nbr Type
128.24
P2p
OL-8604-03