set spantree adminpathcost
6-36 Spanning Tree Configuration
Example
Thisexampleshowshowtodisplaytheadminpathcostforge.3.4onSID1:
D2(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:
D2(su)->set spantree adminpathcost ge.3.2 200 sid 1
clear spantree adminpathcost
UsethiscommandtoresettheSpanningTreedefaultvalueforportadminpathcostto0.
Syntax
clear spantree adminpathcost port-string [sid sid]
Parameters
port‐string Specifiestheport(s)onwhichtosetanadminpathcost.Foradetailed
descriptionofpossibleport‐stringvalues,referto“PortStringSyntaxUsed
intheCLI”onpage 4‐1.
cost Specifiestheportpathcost.Va1idvaluesare0‐200000000.
sidsid (Optional)Setstheadminpath
costforaspecificSpanningTreeidentifier.
Validvaluesare0‐4094.Ifnotspecified,SID0willbeassumed.
port‐string Specifiestheport(s)forwhichtoresetadminpathcost.Foradetailed
descriptionofpossibleport‐stringvalues,referto“PortStringSyntax
UsedintheCLI”onpage 4‐1.
sidsid (Optional)ResetstheadminpathcostforspecificSpanning Tree(s).
Validvaluesare0‐4094.If
notspecified,SID0isassumed.