We are about to look at using NCM for IOS Upgrades to 6500's and 4507's. Anyone have a sample script for either of these models?
The script below works on one 4500, but it the tftp transfers seem to timeout when I run it on more than one box. If you come across or have something better, could you let me know?
Thanks,
Adrian, arobins5@clarian.org
format bootflash: ${CR}${CR}squeeze bootflash:${CR}${CR}format slavebootflash: ${CR}${CR}squeeze slavebootflash: ${CR}${CR}format slot0:${CR}${CR}squeeze slot0:${CR}${CR}format slaveslot0:${CR}${CR}squeeze slaveslot0:${CR}${CR}copy t10.8.217.39/cat4500-ipbasek9-mz.122-46.SG.bin bootflash:cat4500-ipbasek9-mz.122-46.SG.bin${CR}copy t10.8.217.39/cat4500-ipbasek9-mz.122-46.SG.bin slavebootflash:cat4500-ipbasek9-mz.122-46.SG.bin${CR}copy t10.8.217.39/cat4500-ipbasek9-mz.122-46.SG.bin slot0:cat4500-ipbasek9-mz.122-46.SG.bin${CR}copy t10.8.217.39/cat4500-ipbasek9-mz.122-46.SG.bin slaveslot0:cat4500-ipbasek9-mz.122-46.SG.bin${CR}config tno boot system flash bootflash:cat4000-i9k91s-mz.122-20.ewa.binno boot system flash bootflash:cat4000-i9k91s-mz.122-20.EWA1.binboot system flash bootflash:cat4500-ipbasek9-mz.122-46.SG.binconfig-register 0x2101redundancymain-cpuauto-syn standardendwrite mem
Excuse the rookie question, but why leave the config-register setting as 0x2101 instead of 2102?
0x2102 tells the switch to look for a "boot" statment in the config and load whatever file is specified. It'll start with the top-most boot statement in the switch config and then go through the 2nd, 3rd staments etc., if there are multiple statements.
0x2101 just means to load the first usable image the switch comes across. Since we only plan to have one image file, in multiple locations on the switch, 2101 works for our purposes. Also, if we were to use the 2102 setting and the file were removed or renamed, the switch potentially could boot into RMON mode, even though a valid image was present on the box.