Cisco—C9400_Upgrade

Reference

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9400/software/release/17-9/release_notes/ol-17-9-9400/upgrading_the_switch_software.html

Before Upgrade

1. 確認HASH值
Get-FileHash -Algorithm MD5 -Path .\cat9k_iosxe.17.09.06a.SPA.bin
(9300: 90427ca117f07a4b04850c553b2daa50)

2. 注意USB格式(FAT16)

Upgrade

# STEP1

[查看版本] 
show version

[刪除未設定為開機image的檔案]
install remove inactive

[確認目前flash空間]
dir flash: | include free

[複製檔案進flash]
copy usbflash0:/cat9k_iosxe.17.09.06a.SPA.bin flash:/

[確認上傳後的檔案是否正確]
dir flash:*bin
verify /md5 "name"

# STEP2

[重設開機參數 > 移除之前指定的開機映像檔路徑]
config t
no boot system

[設定新的開機映像給packages.conf]
boot system flash:packages.conf

[確保設備開機不進ROMMON > 每次都要下boot "file_path"麻煩]
no boot manual
end

[查看boot system,確保boot variabel = flash:packages.conf; manual boot = no]
show boot

[存檔]
write mem

# STEP3

[安裝檔案,activate: 立刻執行新的image, commit: 將更改提交到下次開機]
install add file [flash:cat9k_iosxe.17.09.06a.SPA.bin] activate commit

# STEP4

[查看版本]
show version

[確認是否安裝成功]
dir flash:*.pkg
dir flash:*.conf
show install summary

[存檔]
write mem