作業環境
- C9300 スイッチバージョン
- バージョンアップ前:16.9.4
- バージョンアップ後:16.12.4
バージョンアップ手順
概要
- OS ファイルの入手と FTP(TFTP)サーバの用意
- フラッシュ空き容量の確認
- OS ファイルのダウンロード
- ダウンロード後の OS ファイルの確認
- 新 OS のインストール
- バージョンアップ後の確認
- 旧パッケージファイルを削除
OS ファイルの入手と FTP(TFTP)サーバの用意
まず、バージョンアップ先の OS ファイルを入手し、FTP または TFTP サーバに格納します。そして FTP または TFTP サーバと対象スイッチをネットワーク接続できる環境を用意します。
対象スイッチについては FTP または TFTP サーバとネットワーク接続するための最低限のネットワーク設定を行います。
フラッシュ空き容量の確認
show flash:
Switch#show flash:
-#- --length-- ---------date/time--------- path
2 2097152 Jan 10 2021 05:13:45.0000000000 +00:00 nvram_config
3 2097152 Jan 10 2021 05:13:45.0000000000 +00:00 nvram_config_bkup
4 27231232 Mar 07 2020 09:18:09.0000000000 +00:00 cat9k-cc_srdriver.16.09.04.SPA.pkg
5 81241084 Mar 07 2020 09:18:09.0000000000 +00:00 cat9k-espbase.16.09.04.SPA.pkg
#略
10037112832 bytes available (739364864 bytes used)
フラッシュの空き容量が、新 OS ファイルの容量よりも大きいことを確認します。
OS ファイルのダウンロード
- FTP の場合
copy ftp://<ユーザ名>:<パスワード>@<FTPサーバIP>/<OSファイル名> flash:
- TFTP の場合
copy tftp://<TFTPサーバIP>/<OSファイル名> flash:
Switch#copy tftp://192.168.1.1/cat9k_iosxe.16.12.04.SPA.bin flash:
Destination filename [cat9k_iosxe.16.12.04.SPA.bin]?
Accessing tftp://192.168.1.1/cat9k_iosxe.16.12.04.SPA.bin...
Loading cat9k_iosxe.16.12.04.SPA.bin from 192.168.1.1 (via Vlan192): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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:*.bin
Switch#dir flash:*.bin
Directory of flash:/*.bin
Directory of flash:/
262167 -rw- 805827585 Jan 10 2021 05:57:12 +00:00 cat9k_iosxe.16.12.04.SPA.bin
11353194496 bytes total (9230487552 bytes free)
新 OS のインストール
install add file flash:<OSファイル名> activate commit
Switch#install add file flash:cat9k_iosxe.16.12.04.SPA.bin activate commit
install_add_activate_commit: START Wed Jan 10 06:03:45 UTC 2021
System configuration has been modified.
Press Yes(y) to save the configuration and proceed.
Press No(n) for proceeding without saving the configuration.
Press Quit(q) to exit, you may save configuration and re-enter the command. [y/n/q]
Press Quit(q) to exit, you may save configuration and re-enter the command. [y/n/q]
→未保存のコンフィグがある場合はコンフィグ保存するか聞かれるため保存する場合は y
Press Quit(q) to exit, you may save configuration and re-enter the command. [y/n/q]y
Building configuration...
[OK]Modified configuration has been saved
flash:cat9k_iosxe.16.12.04.SPA.bininstall_add_activate_commit: Adding PACKAGE
--- Starting initial file syncing ---
Info: Finished copying flash:cat9k_iosxe.16.12.04.SPA.bin to the selected switch(es)
Finished initial file syncing
--- Starting Add ---
Performing Add on all members
[1] Add package(s) on switch 1
[1] Finished Add on switch 1
Checking status of Add on [1]
Add: Passed on [1]
Finished Add
install_add_activate_commit: Activating PACKAGE
Following packages shall be activated:
/flash/cat9k-wlc.16.12.04.SPA.pkg
/flash/cat9k-webui.16.12.04.SPA.pkg
/flash/cat9k-srdriver.16.12.04.SPA.pkg
/flash/cat9k-sipspa.16.12.04.SPA.pkg
/flash/cat9k-sipbase.16.12.04.SPA.pkg
/flash/cat9k-rpboot.16.12.04.SPA.pkg
/flash/cat9k-rpbase.16.12.04.SPA.pkg
/flash/cat9k-guestshell.16.12.04.SPA.pkg
/flash/cat9k-espbase.16.12.04.SPA.pkg
/flash/cat9k-cc_srdriver.16.12.04.SPA.pkg
This operation requires a reload of the system. Do you want to proceed? [y/n]
This operation requires a reload of the system. Do you want to proceed? [y/n]
→再起動が必要となる処理だが継続するか?を聞かれるため y
This operation requires a reload of the system. Do you want to proceed? [y/n]y
--- Starting Activate ---
Performing Activate on all members
[1] Activate package(s) on switch 1
--- Starting list of software package changes ---
Old files list:
Removed cat9k-cc_srdriver.16.09.04.SPA.pkg
Removed cat9k-espbase.16.09.04.SPA.pkg
Removed cat9k-guestshell.16.09.04.SPA.pkg
Removed cat9k-rpbase.16.09.04.SPA.pkg
Removed cat9k-rpboot.16.09.04.SPA.pkg
Removed cat9k-sipbase.16.09.04.SPA.pkg
Removed cat9k-sipspa.16.09.04.SPA.pkg
Removed cat9k-srdriver.16.09.04.SPA.pkg
Removed cat9k-webui.16.09.04.SPA.pkg
Removed cat9k-wlc.16.09.04.SPA.pkg
New files list:
Added cat9k-cc_srdriver.16.12.04.SPA.pkg
Added cat9k-espbase.16.12.04.SPA.pkg
Added cat9k-guestshell.16.12.04.SPA.pkg
Added cat9k-rpbase.16.12.04.SPA.pkg
Added cat9k-rpboot.16.12.04.SPA.pkg
Added cat9k-sipbase.16.12.04.SPA.pkg
Added cat9k-sipspa.16.12.04.SPA.pkg
Added cat9k-srdriver.16.12.04.SPA.pkg
Added cat9k-webui.16.12.04.SPA.pkg
Added cat9k-wlc.16.12.04.SPA.pkg
Finished list of software package changes
[1] Finished Activate on switch 1
Checking status of Activate on [1]
Activate: Passed on [1]
Finished Activate
--- Starting Commit ---
Performing Commit on all members
[1] Finished Commit on switch 1
Checking status of Commit on [1]
Commit: Passed on [1]
Finished Commit
[1]: Performing Upgrade_Service
%IOSXEBOOT-4-BOOTLOADER_UPGRADE: (local/local): Starting boot preupgrade
300+0 records in
300+0 records out
%IOSXEBOOT-4-BOOTLOADER_UPGRADE: (local/local): ### Wed Jan 10 06:09:25 UTC 2021 PLEASE DO NOT POWER CYCLE ### BOOT LOADER UPGRADING
307200 bytes (307 kB, 300 KiB) copied, 0.316035 s, 972 kB/s
16128+0 records in
16128+0 records out
%IOSXEBOOT-4-BOOTLOADER_UPGRADE: (local/local): Boot loader upgrade successful
8257536 bytes (8.3 MB, 7.9 MiB) copied, 8.50574 s, 971 kB/s
/bin/ls: cannot access '/ucode0/cat9k-select_srdriver.*': No such file or directory
head: error reading '/ucode0/lost+found': Is a directory
hexdump: /ucode0/lost+found: Is a directory
hexdump: /ucode0/lost+found: Is a directory
hexdump: /ucode0/lost+found: Is a directory
hexdump: /ucode0/lost+found: Is a directory
hexdump: /ucode0/lost+found: Is a directory
hexdump: /ucode0/lost+found: Is a directory
mount: /mnt/sd7/lost+found: failed to setup loop device: Invalid argument
SUCCESS: Upgrade_Service finished
Install will reload the system now!
SUCCESS: install_add_activate_commit Wed Jan 10 06:10:04 UTC 2021
Chassis 1 reloading, reason - Reload command
Initializing Hardware...
System Bootstrap, Version 16.12.2r, RELEASE SOFTWARE (P)
Compiled Wed 10/23/2019 16:35:17.50 by rel
Current ROMMON image : Primary
Last reset cause : SoftwareReload
C9300-24UX platform with 8388608 Kbytes of main memory
boot: attempting to boot from [flash:packages.conf]
boot: reading file packages.conf
#
#########################################################################################################################################################################################################################################################################################################################################################################################################################
MM [1] MCU version 190 sw ver 129
MM [2] MCU version 190 sw ver 129
MCU UPGRADE IN PROGRESS... PLEASE DO NOT POWER CYCLE!!
Front-end Microcode IMG MGR: found 4 microcode images for 1 device.
Image for front-end 0: /tmp/microcode_update/front_end/fe_type_6_0 update needed: no
Image for front-end 0: /tmp/microcode_update/front_end/fe_type_6_1 update needed: yes
Image for front-end 0: /tmp/microcode_update/front_end/fe_type_6_2 update needed: yes
Image for front-end 0: /tmp/microcode_update/front_end/fe_type_6_3 update needed: no
Front-end Microcode IMG MGR: Preparing to program device microcode...
Front-end Microcode IMG MGR: Preparing to program device[0], index=0 ...594412 bytes.... Skipped[0].
Front-end Microcode IMG MGR: Preparing to program device[0], index=1 ...379310 bytes.
Front-end Microcode IMG MGR: Programming device 0...rwRrrrrrrw..0%.......................................................................10%......................................................................20%......................................................................30%.......................................................................40%......................................................................50%......................................................................60%......................................................................70%.......................................................................80%......................................................................90%......................................................................100%
Front-end Microcode IMG MGR: Preparing to program device[0], index=2 ...24506 bytes.
Front-end Microcode IMG MGR: Programming device 0...rrrrrrw..0%....10%....20%......30%...40%....50%......60%....70%.....80%....90%....100%w
Wating for MCU to come up .....Rr!
Front-end Microcode IMG MGR: Microcode programming complete for device 0.
Front-end Microcode IMG MGR: Preparing to program device[0], index=3 ...90974 bytes.... Skipped[3].
Front-end Microcode IMG MGR: Microcode programming complete in 260 seconds
MCU UPGRADE COMPLETED!!...
これでバージョンアップは完了です。
バージョンアップ後の確認
show version
Switch#show version
Cisco IOS XE Software, Version 16.12.04
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.12.4, RELEASE SOFTWARE (fc5)
#略
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 41 C9300-24T 16.12.4 CAT9K_IOSXE INSTALL
Configuration register is 0x102
新バージョンになっていること。
show install summary
Switch#show install summary
[ Switch 1 ] Installed Package(s) Information:
State (St): I - Inactive, U - Activated & Uncommitted,
C - Activated & Committed, D - Deactivated & Uncommitted
--------------------------------------------------------------------------------
Type St Filename/Version
--------------------------------------------------------------------------------
IMG C 16.12.4.0.4480
--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------
State (St) が C
であること。
show flash:
→新パッケージファイルがインストールされていることを確認
旧パッケージファイルを削除
install remove inactive
Switch#install remove inactive
install_remove: START Wed Jan 10 06:30:59 UTC 2021
No path specified, will use booted path flash:packages.conf
Cleaning flash:
Scanning boot directory for packages ... done.
Preparing packages list to delete ...
cat9k-cc_srdriver.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-espbase.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-guestshell.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-rpbase.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-rpboot.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-sipbase.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-sipspa.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-srdriver.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-webui.16.12.04.SPA.pkg
File is in use, will not delete.
cat9k-wlc.16.12.04.SPA.pkg
File is in use, will not delete.
packages.conf
File is in use, will not delete.
done.
The following files will be deleted:
[switch 1]:
/flash/cat9k-cc_srdriver.16.09.04.SPA.pkg
/flash/cat9k-espbase.16.09.04.SPA.pkg
/flash/cat9k-guestshell.16.09.04.SPA.pkg
/flash/cat9k-rpbase.16.09.04.SPA.pkg
/flash/cat9k-rpboot.16.09.04.SPA.pkg
/flash/cat9k-sipbase.16.09.04.SPA.pkg
/flash/cat9k-sipspa.16.09.04.SPA.pkg
/flash/cat9k-srdriver.16.09.04.SPA.pkg
/flash/cat9k-webui.16.09.04.SPA.pkg
/flash/cat9k-wlc.16.09.04.SPA.pkg
/flash/cat9k_iosxe.16.12.04.SPA.bin
/flash/cat9k_iosxe.16.12.04.SPA.conf
Do you want to remove the above files? [y/n]
Do you want to remove the above files? [y/n]
→ファイル削除確認は y
Do you want to remove the above files? [y/n]y
[switch 1]:
Deleting file flash:cat9k-cc_srdriver.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-espbase.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-guestshell.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-rpbase.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-rpboot.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-sipbase.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-sipspa.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-srdriver.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-webui.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k-wlc.16.09.04.SPA.pkg ... done.
Deleting file flash:cat9k_iosxe.16.12.04.SPA.bin ... done.
Deleting file flash:cat9k_iosxe.16.12.04.SPA.conf ... done.
SUCCESS: Files deleted.
--- Starting Post_Remove_Cleanup ---
Performing Post_Remove_Cleanup on all members
[1] Post_Remove_Cleanup package(s) on switch 1
[1] Finished Post_Remove_Cleanup on switch 1
Checking status of Post_Remove_Cleanup on [1]
Post_Remove_Cleanup: Passed on [1]
Finished Post_Remove_Cleanup
SUCCESS: install_remove Wed Jan 10 06:34:17 UTC 2021
削除後に show flash:
で旧パッケージファイルが削除されていることを確認します。
参考資料

Catalyst9000 シリーズ stack構成でのバージョンアップ方法について
Catalyst9300でstack構成で利用をしておりますが、バージョンアップを行う必要が出てまいりました。 その為、stack構成のバージョンアップについてのベストプラクティスについてご教示頂けないでしょうか。 stackメンバーの1台のみにOSをインストールすればOKである資料や、全ての機器にOSをインストー...
Release Notes for Cisco Catalyst 9300 Series Switches, Cisco IOS XE Everest 16.6.x
Release Notes for Cisco Catalyst 9300 Series Switches, Cisco IOS XE Everest 16.6.x
Catalyst 9000スイッチアップグレードガイド
このドキュメントでは、Catalyst 9000(Cat9K)スイッチのアップグレード方式について説明します。
Catalyst9300 IOS16.6.xのバージョンアップ
IOSがいつの間にか16台になってまして。。。 バージョンアップコマンドも変わっております。 さて、今回は16.6.1から16.6.2へのバージョンアップ手順。 機器はCisco Catalyst9300のStack仕様 ちなみに、16.5は Switch# req...
―――――――――――――