Hub/Switch Reference Guide

400 STP Commands
NN47250-100 (Version 02.51)
clear spantree portcost
Resets to the default value the cost of a network port or ports on paths to the STP root bridge in all VLANs on a WSS.
Syntax
clear spantree portcost port-list
Defaults
None.
Access
Enabled.
Usage
This command resets the cost in all VLANs. To reset the cost for only specific VLANs, use the clear
spantree portvlancost command.
Examples
The following command resets the STP port cost on ports 5 and 6 to the default value:
WSS# clear spantree portcost 5-6
success: change accepted.
See Also
clear spantree portvlancost on page 391
set spantree portcost on page 395
set spantree portvlancost on page 397
show spantree on page 400
show spantree portvlancost on page 406
clear spantree portpri
Resets to the default value the priority of a network port or ports for selection as part of the path to the STP root bridge in
all VLANs on a WSS.
Syntax
clear spantree portpri port-list
Defaults
None.
Access
Enabled.
Usage
This command resets the priority in all VLANs. To reset the priority for only specific VLANs, use
the clear spantree portvlanpri command.
Examples
The following command resets the STP priority on port 9 to the default:
WSS# clear spantree portpri 9
success: change accepted.
port-list List of ports. The port cost is reset on the specified ports.
port-list List of ports. The port priority is reset to 32 (the default) on the specified
ports.