How to upgrade Cisco switches in Mixed Stack

How to upgrade cisco switches in Mixed Stack

In this example I upgrade a mixed 2960 stack, mixed with 2960s and 2960x

in order to upgrade the whole stack at once, I have to provide all the different firmwares for the different models X/S series (It has to be the same version eg. version 15.0.2 EX5)

this command will download and distribute the right firmware to the right switch in the stack, and upgrade all switches

archive download-sw tftp://[IP of the tftp server]/c2960x-universalk9-tar.150-2.EX5.tar tftp://10.100.65.230/c2960s-universalk9-tar.150-2.EX5.tar

Sources:
http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/troubleshooting/switch_stacks.html#wp66853