STKMode
Hardware Stacking Mode Control
- STKMode
Shortest form:
stkm.Show or change the unit’s module ID. With no argument the command prints the module ID, for example:
STKMode: unit 0: module id 0
If the unit uses more than one module ID, the line ends in
(uses <n> module ids). AnSL mode …line follows only when SL stacking is on. The first word is the command name as you typed it. SONiC runsstkmodewithout arguments inshow techsupportand saves the output asbroadcom.stkmode(scripts/generate_dump (show techsupport collector)). The OpenBCMrc.socscripts usestkmode modid=<n>to number the chips on multi-chip boards (OpenBCM sdk-6.5.27/rc: rc.soc, config.bcm, td3_sanity.soc, cmd_td3_tr514_lr.soc, tr51/tr517_bcm56870_a0.soc, bcm_diag_info.soc …).Modid=<n>sets the module ID, andModPortClear=Tclears the module-port map. The other keys in the built-in help do nothing useful:Cascade=is listed but not accepted.Cascade=Tfails withSTKMode: Invalid argument: Cascade=T.SimplexPorts=andDuplexPorts=are accepted and ignored.SLCount=<n>always fails withSTKMode: ERROR: bcm_stk_sl_simplex_count_set: Feature unavailable.
Without arguments the command is read-only.
Warning
Modid=changes the module ID that every port and forwarding entry programmed by SONiC depends on.ModPortClear=Tclears the module-port map. Either can break forwarding behindsyncd.Hardware-validated — Show the module ID (as run by SONiC show techsupport)
drivshell> stkmode STKMode: unit 0: module id 0
Unvalidated — Set the module ID (multi-chip boards; not for SONiC)
drivshell> stkmode modid=0Built-in help
Parameters: Modid=<m> Set the module identifier ModPortClear=[T|F] Clear modport table SLCount=<n> Set SL Simplex hop count Cascade=[T|F] Enable/disable Higig/SL Cascade SimplexPorts=<pbmp> SL Simplex mode stack ports DuplexPorts=<pbmp> SL Duplex mode stack ports If no parameters, show current stateFurther reading
SDK-6.5.20 HSDK Getting Started Guide (GS-SDK6520-R), plus SDK-6.5.20/21/22 Release Notes (RN-SDK65xx-R), OpenBCM sdk-6.5.27/rc: rc.soc, config.bcm, td3_sanity.soc, cmd_td3_tr514_lr.soc, tr51/tr517_bcm56870_a0.soc, bcm_diag_info.soc …, scripts/generate_dump (show techsupport collector).