Reply

ccs script for cisco 3750 to upgrade a stack of switches.

[ Edited ]
Authority
Posts: 9
17356     0

howdy,

 i have figured out how to write a script to upgrade a single 3750 switch, but i have stacked switches as well and am looking for a script to upgrade x# of switches in the stack with a new IOS using NetMRI simultaneously. 

Re: ccs script for cisco 3750 to upgrade a stack of switches.

New Member
Posts: 2
17357     0

The "IOS Image Upgrade" hacked pretty well although I didn't use it for any stacks. Can you share your code?

Re: ccs script for cisco 3750 to upgrade a stack of switches.

Authority
Posts: 9
17357     0

this is what worked.

copy flash:c3750e-universalk9-mz.152-4.E4.bin flash2: \r
copy flash:c3750e-universalk9-mz.152-4.E4.bin flash3: \r

Re: ccs script for cisco 3750 to upgrade a stack of switches.

Authority
Posts: 9
17357     0

delete flash:c3750e-universalk9-mz.152-4.E5.bin \r\ry
delete flash2:c3750e-universalk9-mz.152-4.E5.bin \r\ry
delete flash3:c3750e-universalk9-mz.152-4.E5.bin \r\ry\r
copy http://10.2.16.11:26/tftp/3750/c3750e-universalk9-mz.152-4.E4.bin flash: \r
copy flash:c3750e-universalk9-mz.152-4.E4.bin flash2: \r
copy flash:c3750e-universalk9-mz.152-4.E4.bin flash3: \r
config term
no boot system
boot system switch all flash:c3750e-universalk9-mz.152-4.E4.bin \r
end
write memory \r
reload \r
\r

 

the issue i am working now is that i want to use this script for all 3750 stacked and non stacked switches. but if the switch does not have 3 or 2 switches in the stack the task will error out and fail. i guess what i need is something that will see the error and move on to the next step. 

Re: ccs script for cisco 3750 to upgrade a stack of switches.

Authority
Posts: 9
17357     0

recently discoverd that using a .tar file solves my issue here. you just have to use the archive download-sw command to make it all happen, the switch will load the new IOS on all the switches in the stack automatically. 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You