set spantree adminpathcost
7-36 Spanning Tree Configuration
Mode
Switchcommand,read‐only.
Example
Thisexampleshowshowtodisplaytheadminpathcostforge.3.4onSID1:
C2(su)->show spantree adminpathcost port ge.3.4 sid 1
Port ge.3.4 has a Port Admin Path Cost of 0 on SID 1
set spantree adminpathcost
UsethiscommandtosettheadministrativepathcostonaportandoneormoreSpanningTrees.
Syntax
set spantree adminpathcost port-string cost [sid sid]
Parameters
Defaults
Ifsidisnotspecified,adminpathcostwillbesetforSpanningTree0.
Mode
Switchcommand,read‐write.
Example
Thisexampleshowshowtosettheadminpathcostto200forge.3.2onSID1:
C2(su)->set spantree adminpathcost ge.3.2 200 sid 1
clear spantree adminpathcost
UsethiscommandtoresettheSpanningTreedefaultvalueforportadminpathcostto0.
Syntax
clear spantree adminpathcost port-string [sid sid]
port‐string Specifiestheport(s)onwhichtosetanadminpathcost.Foradetailed
descriptionofpossibleport‐stringvalues,referto“PortStringSyntaxUsed
intheCLI”onpage 5‐2.
cost Specifiestheportpathcost.Va1idvaluesare0‐200000000.
sidsid (Optional)Setstheadminpath
costforaspecificSpanningTreeidentifier.
Validvaluesare0‐4094.Ifnotspecified,SID0willbeassumed.