Cisco Switch Stack power setup

I have a stack of five 3750X switches. Stackpower in a redundant ring topology limits you to four switches on each power stack. So switch combo is 2 switches in one powerstack, 3 switches is second power stack
Let see what is going on with Stackpower and the power supplies:

switch#show env power all     !!This show command should give you an overview of the installed power supplies and switch numbers.

switch#show stack-power

switch#sh stack-power
Power stack name: Powerstack-1
Stack mode: Power sharing
Switch 1:
Power budget: 719
Low port priority value: 19
High port priority value: 10
Switch priority value: 1
Port 1 status: Shut
Port 2 status: Not Connected
Neighbor on port 1: 0000.0000.0000
Neighbor on port 2: 0000.0000.0000

Two things to note here.  A “shut” status means that the stackpower port is administratively down, while “not connected” means there is a physical problem with the Stackpower cables.

So, enable the ports using the following command in exec mode:

switch#stack-power switch 1 port 1 enable     !! Enable stack power port

But, when checking stack again:

switch#show stack-power

Power stack name: Powerstack-1
Stack mode: Power sharing
Switch 1:
Power budget: 719
Low port priority value: 19
High port priority value: 10
Switch priority value: 1
Port 1 status: Shut
Port 2 status: Connected
Neighbor on port 1: 0000.0000.0000
Neighbor on port 2: e05f.b90a.9c80

Simple, disable port then enable port. Like reboot computer in Windows world, cures everything.

switch#stack-power switch 1 port 1 disable

switch#stack-power switch 1 port 1 enable

switch#show stack-power

Power stack name: Powerstack-1
Stack mode: Power sharing
Switch 1:
Power budget: 719
Low port priority value: 19
High port priority value: 10
Switch priority value: 1
Port 1 status: Connected
Port 2 status: Connected
Neighbor on port 1: c471.fe62.2680
Neighbor on port 2: e05f.b90a.9c80

Once you have all of the stack-power ports enabled, the next step is to place them in stack power groups (if they didn’t automatically assign).

Remember that when changing group membership, the entire stack must be reloaded.

switch(config)#stack-power stack Powerstack-1
switch(config-stackpower)#exit
switch(config)#stack-power switch 1
switch(config-switch-stackpower)#stack Powerstack-1

Repeat the command for each switch in the stack.  You can change the power sharing mode, and add priorities based on the needs of your environment.

No, let take a look at the real, production switches:
PROD-SW-4E1#sh stack-power detail
Power Stack           Stack   Stack    Total   Rsvd    Alloc   Unused  Num  Num
Name                  Mode    Topolgy  Pwr(W)  Pwr(W)  Pwr(W)  Pwr(W)  SW   PS
——————–  ——  ——-  ——  ——  ——  ——  —  —
Powerstack-4          SP-PS   Ring     2200    54      583     1563    2    2
Powerstack-3          SP-PS   Ring     3300    47      1330    1923    3    3

Power stack name: Powerstack-4  ! Two switches in this stack
Stack mode: Power sharing
Stack topology: Ring
Switch 5:
Power budget: 1096
Power allocated: 314
Low port priority value: 22
High port priority value: 13
Switch priority value: 4
Port 1 status: Connected
Port 2 status: Connected
Neighbor on port 1: Switch 4 – 44d3.ca7a.3f00
Neighbor on port 2: Switch 4 – 44d3.ca7a.3f00

Switch 4:
Power budget: 1050
Power allocated: 269
Low port priority value: 21
High port priority value: 12
Switch priority value: 3
Port 1 status: Connected
Port 2 status: Connected
Neighbor on port 1: Switch 5 – 44d3.ca7c.df80
Neighbor on port 2: Switch 5 – 44d3.ca7c.df80

Power stack name: Powerstack-3      ! Three switches in this stack
Stack mode: Power sharing
Stack topology: Ring
Switch 1:
Power budget: 1057
Power allocated: 426
Low port priority value: 21
High port priority value: 12
Switch priority value: 3
Port 1 status: Connected
Port 2 status: Connected
Neighbor on port 1: Switch 3 – 44d3.ca79.2d80
Neighbor on port 2: Switch 2 – 44d3.ca7a.3380

Switch 3:
Power budget: 1117
Power allocated: 456
Low port priority value: 20
High port priority value: 11
Switch priority value: 2
Port 1 status: Connected
Port 2 status: Connected
Neighbor on port 1: Switch 2 – 44d3.ca7a.3380
Neighbor on port 2: Switch 1 – 44d3.ca79.7300

Switch 2:
Power budget: 1079
Power allocated: 448
Low port priority value: 22
High port priority value: 13
Switch priority value: 4
Port 1 status: Connected
Port 2 status: Connected
Neighbor on port 1: Switch 1 – 44d3.ca79.7300
Neighbor on port 2: Switch 3 – 44d3.ca79.2d80