StackPortGet
Get stacking characteristics of a port
- StackPortGet
Shortest form:
spg.Show the stacking flags of one port, or of every stack port of the unit. With
Portthe command printsStack flags for unit <u>, port <p>: (0x<flags>)followed by the names of the set flags, in the same format asSTACKMode. WithoutPortit prints one such block for each stack port. A switch that is not stacked has no stack ports, so nothing is printed.Porttogether with a negativeUnitis refused withERROR: Can't specify port with unit < 0.The built-in help says that
Unit=<n>below zero lists all local devices. WithoutPort, the shell actually lists the stack ports of the current unit and ignoresUnit.The command is read-only.
Porttakes a port name; the output shows the logical port number (Port=xe0printsport 9). On a SONiC switch every port reports(0x20)with onlynoneset.Hardware-validated
drivshell> StackPortGetHardware-validated — One port
drivshell> StackPortGet Port=xe0 Stack flags for unit 0, port 9: (0x20) none
Built-in help
StackPortGet [Port=<n>] [Unit=<n>] Get stack port information. If no port is specified, get all information for the current or specified device If unit < 0 is specified, get all info for all local devices.Further reading