To verify that your stack is configured as you intended, log into the master node and issue any or all of the following commands.
These commands are also helpful when debugging problems with your stack.
Note
The examples in the following sections show a stack consisting of four X440-G2 switches.The show stacking command displays the stack topology along with each node's slot number, state, and role (master, backup, or standby).
Slot-1 Stack.1 # show stacking Stack Topology is a Ring Active Topology is a Ring Node MAC Address Slot Stack State Role Flags ------------------ ---- ----------- ------- --- *00:04:96:9c:e4:39 1 Active Master CA- 00:04:96:9b:c1:34 2 Active Backup CA- 00:04:96:9e:5c:76 3 Active Standby CA- 00:04:96:9c:53:b6 4 Active Standby CA- * - Indicates this node Flags: (C) Candidate for this active topology, (A) Active Node (O) node may be in Other active topology
This node is not in an Active Topology.
The show stacking configuration command displays a summary of the stacking configuration for all nodes in the stack.
Slot-1 Stack.3 # show stacking configuration Stack MAC in use: 02:04:96:9c:e4:39 Node Slot Alternate Alternate MAC Address Cfg Cur Prio Mgmt IP / Mask Gateway Flags Lic ------------------ --- --- ---- ------------------ --------------- --------- --- *00:04:96:9c:e4:39 1 1 Auto <none> <none> CcEeMm-Nn -- 00:04:96:9b:c1:34 2 2 Auto <none> <none> CcEeMm-Nn -- 00:04:96:9e:5c:76 3 3 Auto <none> <none> --EeMm-Nn -- 00:04:96:9c:53:b6 4 4 Auto <none> <none> --EeMm-Nn -- * - Indicates this node Flags: (C) master-Capable in use, (c) master-capable is configured, (E) Stacking is currently Enabled, (e) Stacking is configured Enabled, (M) Stack MAC in use, (m) Stack MACs configured and in use are the same, (i) Stack MACs configured and in use are not the same or unknown, (N) Enhanced protocol is in use, (n) Enhanced protocol is configured, (-) Not in use or not configured License level restrictions: (C) Core, (A) Advanced edge, or (E) Edge in use, (c) Core, (a) Advanced edge, or (e) Edge configured, (-) Not in use or not configured
Ee
, Mm
, and Nn
flags active.Cc
flags active.(The meanings of the flags are displayed at the bottom of the table in the command output.)
The show slot command shows the states of the nodes as they move from the empty to operational state.
Slot-1 Stack.2 # show slot Slots Type Configured State Ports -------------------------------------------------------------------- Slot-1 X440G2-24t-10G4 Operational 28 Slot-2 X440G2-24x-10G4 Operational 28 Slot-3 X440G2-12p-10G4 Operational 16 Slot-4 X440G2-12t-10G4 Operational 16 Slot-5 Empty 0 Slot-6 Empty 0 Slot-7 Empty 0 Slot-8 Empty 0
The show stacking {node-address node_address | slot slot_number} detail command displays a full report about a particular node.
Slot-1 Stack.33 # show stacking slot 1 detail Stacking Node 00:04:96:26:6b:ec information: Current: Stacking : Enabled Role : Master Priority : Automatic Slot number : 1 Stack state : Active Master capable? : Yes Stacking protocol : Enhanced License level restriction : <none> In active topology? : Yes Factory MAC address : 00:04:96:26:6b:ec Stack MAC address : 02:04:96:26:6b:ec Alternate IP address : <none> Alternate gateway : <none> Stack Port 1: State : Operational Blocked? : No Control path active? : Yes Selection : Alternate (23) Stack Port 2: State : Operational Blocked? : Yes Control path active? : Yes Selection : Native Configured: Stacking : Enabled Master capable? : Yes Slot number : 1 Stack MAC address : 02:04:96:26:6b:ec Stacking protocol : Enhanced License level restriction : <none> Stack Port 1: Selection : Alternate (23) Stack Port 2: Selection : Native
The show stacking stack-ports command displays the states of each stacking port in the stack. This information can help you verify that all ports are properly connected and operational.
Slot-1 Stack.5 # show stacking stack-ports Stack Topology is a Ring Slot Port Select Node MAC Address Port State Flags Speed ---- ---- ------ ----------------- ----------- ----- ----- *1 1 27 00:04:96:9c:e4:39 Operational C- 10G *1 2 28 00:04:96:9c:e4:39 Operational CB 10G 2 1 27 00:04:96:9b:c1:34 Operational CB 10G 2 2 28 00:04:96:9b:c1:34 Operational C- 10G 3 1 15 00:04:96:9e:5c:76 Operational C- 10G 3 2 16 00:04:96:9e:5c:76 Operational C- 10G 4 1 15 00:04:96:9c:53:b6 Operational C- 10G 4 2 16 00:04:96:9c:53:b6 Operational C- 10G * - Indicates this node Flags: (C) Control path is active, (B) Port is Blocked
In the command output, a state other than Operational indicates a potential problem. Check the physical connections and the software configuration for the ports in question. For more information, see Troubleshooting a Stack.