思科3650/3850堆叠交换机升级IOS
思科3850堆叠交换机最近出现日志报警:%PLATFORM-4-ELEMENT_WARNING:Switch 1 R0/0: smand: 1/RP/0: Used Memory value 91% exceeds warning level 90%,经检查,系IOS的BUG,需要升级IOS解决。详情可参见另一篇文章:https://www.hello2099.com/1848.html
现整理了一下IOS升级步骤,思科3650/3850交换机通用,供以后参考。
1,交换机现有软件版本
Switch Ports Model SW Version SW Image Mode
* 1 56 WS-C3850-48T 16.3.6 CAT3K_CAA-UNIVERSALK9 INSTALL
2 32 WS-C3850-24T 16.3.6 CAT3K_CAA-UNIVERSALK9 INSTALL
2,从官网下载带星标的建议IOS版本
3,检查交换机剩余空间是否足够。
空间不够的话执行第8步,清理flash:
4,保证交换机和PC互通,PC开启TFTP或在FTP服务端软件。
5,将新IOS文件通过TFTP或FTP或USB上传到堆叠交换机的Master那一台。
Switch# copy tftp://192.168.1.4/cat3k_caa-universalk9.16.03.08.SPA.bin flash:cat3k_caa-universalk9.16.03.08.SPA.bin
Destination filename [cat3k_caa-universalk9.16.03.08.SPA.bin]?
Accessing tftp://192.168.1.4/cat3k_caa-universalk9.16.03.08.SPA.bin…
Loading cat3k_caa-universalk9.16.03.08.SPA.bin from 192.168.196.74 (via Vlan2): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK – 535578976 bytes]
535578976 bytes copied in 185.077 secs (2893817 bytes/sec)
耗时约3分钟。
6,升级IOS,系统会自动将Master的IOS复制到每一台slave交换机上以后,再进行升级。
Switch# request platform software package install switch all file flash:cat3k_caa-universalk9.16.03.08.SPA.bin auto-copy
— Starting install local lock acquisition on switch 1 —
Finished install local lock acquisition on switch 1
Expanding image file: flash:cat3k_caa-universalk9.16.03.08.SPA.bin
[1]: Copying flash:cat3k_caa-universalk9.16.03.08.SPA.bin from switch 1 to switch 2
[2]: Finished copying to switch 2
[1 2]: Expanding file
[1 2]: Finished expanding all-in-one software package in switch 1 2
SUCCESS: Finished expanding all-in-one software package.
[1 2]: Performing install
[1]: install package(s) on switch 1
……
Checking status of install on [1 2]
[1 2]: Finished install in switch 1 2
SUCCESS: Finished install: Success on [1 2]
可以看到,两台均已将新IOS文件安装完成,耗时约6分钟。
7,重启交换机,完成升级。
Switch# reload
重启耗时约8分钟,以上所有时间都是2台交换机的所需时间。
重启之后再次检查IOS版本,可以看到已经成功升级。
Switch Ports Model SW Version SW Image Mode
* 1 56 WS-C3850-48T 16.3.8 CAT3K_CAA-UNIVERSALK9 INSTALL
2 32 WS-C3850-24T 16.3.8 CAT3K_CAA-UNIVERSALK9 INSTALL
8,清理flash:中多余文件,系统会自动判断删除不再使用的文件,删除前系统会提示确认。
Switch# request platform software package clean switch all file flash:
以上是采用新的Install Mode升级IOS,还有一种是老的Bundle Mode,这里就不写了,官网都有。
参考文档:https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/16-3/release_notes/ol-16-3-3850.html#pgfId-1165679
附一个CRT工具:https://cloud.hello2099.com/index.php/s/JeUraECipk1QlDx