2019-09-03 02:36 PM 2020-12-02 11:29 AM 更新
このドキュメントでは、一般的な Catalyst3650/ Catalyst3850 のバージョンのアップグレード手順を紹介します。
バージョンアップを開始する前に、下記手順で対象のバージョンを機器の flash: に保存することが必要となります。
1. Cisco software download ページから対象バージョンをお手元に Download する。
2. show version でバージョンの動作モードを確認する。
Switch#show version
<snip>
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 52 WS-C3650-48TD 03.06.07E cat3k_caa-universalk9 INSTALL <<<
Switch#show version
<snip>
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 28 WS-C3650-24TD 03.06.09.E cat3k_caa-universalk9 BUNDLE <<<
3. flash: に十分なスペースがあることを確保する。
Switch# dir flash:
Directory of flash:/
<snip>
1621966848 bytes total (598597632 bytes free) <<<<
4. TFTP/FTP/USB など経由で機器の flash: に対象イメージファイルを Copy する。
Switch# copy tftp://x.x.x.x/cat3k_caa-universalk9.16.03.05.SPA.bin flash:cat3k_caa-universalk9.16.03.05.SPA.bin
Destination filename [cat3k_caa-universalk9.16.03.05.SPA.bin]?
Accessing tftp://x.x.x.x/cat3k_caa-universalk9.16.03.05.SPA.bin...
Loading cat3k_caa-universalk9.16.03.05.SPA.bin from x.x.x.x (via GigabitEthernet0/0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 489159804 bytes]
489159804 bytes copied in 143.802 secs (3401620 bytes/sec)
Switch#
補足:
Install モード : スイッチの Default Mode です。スイッチの起動に packages.conf という名前のパッケージ プロビジョニング ファイルを使用します。 さらに、フラッシュに複数の .pkg ファイルがあります。
Bundle モード: .bin ファイルを使用します。パッケージがバンドルから取得され RAM にコピーされるので、インストール モードよりも多くのメモリを消費します。
1. 事前に Install モードで稼働していることを確認する。
Switch#show version | in INSTALL
* 2 56 WS-C3850-48P 03.06.06E cat3k_caa-universalk9 INSTALL
2. software install コマンドを実行し、機器を Reload する。
Switch#software install file flash:cat3k_caa-universalk9.16.03.03.SPA.bin new force
Preparing install operation ...
[2]: Starting install operation
[2]: Expanding bundle flash:cat3k_caa-universalk9.16.03.03.SPA.bin
[2]: Copying package files
[2]: Package files copied
[2]: Finished expanding bundle flash:cat3k_caa-universalk9.16.03.03.SPA.bin
[2]: Verifying and copying expanded package files to flash:
[2]: Verified and copied expanded package files to flash:
[2]: Starting compatibility checks
[2]: Bypassing peer package compatibility checks due to 'force' command option
[2]: Finished compatibility checks
[2]: Starting application pre-installation processing
[2]: Old files list:
Removed cat3k_caa-base.SPA.03.06.06E.pkg
Removed cat3k_caa-drivers.SPA.03.06.06E.pkg
Removed cat3k_caa-infra.SPA.03.06.06E.pkg
Removed cat3k_caa-iosd-universalk9.SPA.152-2.E6.pkg
Removed cat3k_caa-platform.SPA.03.06.06E.pkg
Removed cat3k_caa-wcm.SPA.10.2.160.0.pkg
[2]: New files list:
Added cat3k_caa-guestshell.16.03.03.SPA.pkg
Added cat3k_caa-rpbase.16.03.03.SPA.pkg
Added cat3k_caa-rpcore.16.03.03.SPA.pkg
Added cat3k_caa-srdriver.16.03.03.SPA.pkg
Added cat3k_caa-wcm.16.03.03.SPA.pkg
Added cat3k_caa-webui.16.03.03.SPA.pkg
[2]: Creating pending provisioning file
[2]: Finished installing software. New software will load on reboot.
[2]: Committing provisioning file
[2]: Do you want to proceed with reload? [yes/no]: y
[2]: Reloading
%IOSXEBOOT-4-FLASH: (rp/0): deleting cat3k_caa-universalk9.16.03.03.SPA.bin because free space on flash is less than 300MB
%IOSXEBOOT-8e30b253627ff1aae4fee6643a923d8a-new_cksum: (rp/0): 4
%IOSXEBOOT-8e30b253627ff1aae4fee6643a923d8a-saved_cksum: (rp/0): 4
%IOSXEBOOT-Fri-###: (rp/0): Mar 17 16:27:16 Universal 2017 PLEASE DO NOT POWER CYCLE ### BOOT LOADER UPGRADING 4
%IOSXEBOOT-loader-boot: (rp/0): upgrade successful
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]...25166 bytes.
Front-end Microcode IMG MGR: Programming device 0...rrrrrrw..0%....10%....20%......30%...40%......50%....60%......70%...80%......90%....100%wRr!
Front-end Microcode IMG MGR: Microcode programming complete for device 0.
Front-end Microcode IMG MGR: Preparing to program device[0]...86370 bytes.... Skipped[3].
Front-end Microcode IMG MGR: Microcode programming complete in 244 seconds
3. 機器起動後、show version でバージョン情報を確認する。
Switch#show version | in IOS
Cisco IOS Software [Denali], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.3.3, RELEASE SOFTWARE (fc3)
Cisco IOS-XE software, Copyright (c) 2005-2017 by cisco Systems, Inc.
Switch#software install file flash:cat3k_caa-universalk9.16.03.03.SPA.bin
Preparing install operation ...
[2]: Starting install operation
[2]: Expanding bundle flash:cat3k_caa-universalk9.16.03.03.SPA.bin
[2]: Copying package files
[2]: Package files copied
[2]: Finished expanding bundle flash:cat3k_caa-universalk9.16.03.03.SPA.bin
[2]: Verifying and copying expanded package files to flash:
[2]: Verified and copied expanded package files to flash:
[2]: Starting compatibility checks
[2]: % Candidate package compatibility checks failed because the following
package dependencies were not satisfied. Operation aborted.
[2]: % An internal error was encountered. Operation aborted.
上記エラーが発生する場合、 "software clean" 及びイメージの再 Copy を実施してから、 "new" "force" 付きの手順で再度実行する必要があります。
Switch#software clean
Preparing clean operation ...
[2]: Cleaning up unnecessary package files
[2]: No path specified, will use booted path flash:packages.conf
[2]: Cleaning flash:
[2]: Preparing packages list to delete ...
In use files, will not delete:
cat3k_caa-base.SPA.03.06.06E.pkg
cat3k_caa-drivers.SPA.03.06.06E.pkg
cat3k_caa-infra.SPA.03.06.06E.pkg
cat3k_caa-iosd-universalk9.SPA.152-2.E6.pkg
cat3k_caa-platform.SPA.03.06.06E.pkg
cat3k_caa-wcm.SPA.10.2.160.0.pkg
packages.conf
[2]: Files that will be deleted:
cat3k_caa-guestshell.16.03.03.SPA.pkg
cat3k_caa-rpbase.16.03.03.SPA.pkg
cat3k_caa-rpcore.16.03.03.SPA.pkg
cat3k_caa-srdriver.16.03.03.SPA.pkg
cat3k_caa-universalk9.16.03.03.SPA.bin
cat3k_caa-wcm.16.03.03.SPA.pkg
cat3k_caa-webui.16.03.03.SPA.pkg
[2]: Do you want to proceed with the deletion? [yes/no]: y
[2]: Clean up completed
1. 事前に Bundle モードで動作していることを確認する。
Switch#show version | in BUNDLE
* 2 56 WS-C3850-48P 03.06.06.E cat3k_caa-universalk9 BUNDLE
2. software expand コマンドで .bin ファイルから Package ファイルへ変換する。
Switch#software expand file flash:cat3k_caa-universalk9.16.03.03.SPA.bin to flash:
Preparing expand operation ...
[2]: Expanding bundle flash:cat3k_caa-universalk9.16.03.03.SPA.bin
[2]: Copying package files
[2]: Package files copied
[2]: Finished expanding bundle flash:cat3k_caa-universalk9.16.03.03.SPA.bin
3. flash: に packages.conf ファイルが生成されたことを確認する。
Switch#directory | in packages.conf
30979 -rw- 1236 Dec 22 2015 13:16:22 -04:00 packages.conf
4. Boot 変数を変更し、write memory を実行する。
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no boot system
Switch(config)#boot system flash:packages.conf
Switch(config)#end
Switch#write memory
Switch#show boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:packages.conf;
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
<snip>
5. 機器を Reload する。
Switch#reload
Proceed with reload? [confirm]
6. 機器起動後、show version でバージョン情報を確認する。
Switch#show version | in IOS
Cisco IOS Software [Denali], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.3.3, RELEASE SOFTWARE (fc3)
Cisco IOS-XE software, Copyright (c) 2005-2017 by cisco Systems, Inc.
1. 対象ファイルは flash: に Copy したことを確認する。
Switch#dir flash:
31053 -rw- 537337933 Aug 9 2019 07:39:24 +00:00 cat3k_caa-universalk9.16.03.09.SPA.bin
2. Boot 変数を変更し、write memoryを実行する。
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no boot system
Switch(config)#boot system flash:cat3k_caa-universalk9.16.03.09.SPA.bin
Switch(config)#end
Switch#write memory
Switch#show boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:cat3k_caa-universalk9.16.03.09.SPA.bin;
Boot Variables on next reload:
BOOT variable = flash:cat3k_caa-universalk9.16.03.09.SPA.bin;
<snip>
3. 機器を Reload する。
Switch#reload
Proceed with reload? [confirm]
4. 機器起動後、show version でバージョン情報を確認する。
Switch#show version
<snip>
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 32 WS-C3850-24T 16.3.9 CAT3K_CAA-UNIVERSALK9 BUNDLE
1. 事前に Install モードで稼働していることを確認する。
switch#show version
<snip>
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 28 WS-C3650-24TS 16.5.1a CAT3K_CAA-UNIVERSALK9 INSTALL
2. 下記コマンドを実行する。
Switch#request platform software package install switch all file flash:cat3k_caa-universalk9.16.03.03.SPA.bin
[1]: Expanding file
[1]: Performing install
[1]: install package(s) on switch 1
Old files list:
Removed cat3k_caa-guestshell.16.05.01a.SPA.pkg
Removed cat3k_caa-rpbase.16.05.01a.SPA.pkg
Removed cat3k_caa-rpcore.16.05.01a.SPA.pkg
Removed cat3k_caa-srdriver.16.05.01a.SPA.pkg
Removed cat3k_caa-webui.16.05.01a.SPA.pkg
New files list:
Added cat3k_caa-guestshell.16.03.03.SPA.pkg
Added cat3k_caa-rpbase.16.03.03.SPA.pkg
Added cat3k_caa-rpcore.16.03.03.SPA.pkg
Added cat3k_caa-srdriver.16.03.03.SPA.pkg
Added cat3k_caa-wcm.16.03.03.SPA.pkg
Added cat3k_caa-webui.16.03.03.SPA.pkg
Finished list of software package changes
SUCCESS: Software provisioned. New software will load on reboot.
[1]: Finished install successful on switch 1
Checking status of install on [1]
[1]: Finished install in switch 1
SUCCESS: Finished install: Success on [1]
3. 機器を Reload する。
Switch#reload
Reload command is being issued on Active unit, this will reload the whole stack
Proceed with reload? [confirm]
4. 機器起動後、show version でバージョン情報を確認する。
Switch#show version
<snip>
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 28 WS-C3650-24TS 16.3.3 CAT3K_CAA-UNIVERSALK9 INSTALL
1. 事前に Bundle モードで動作していることを確認する。
Switch#show ver | in BUNDLE
1 32 WS-C3850-24T 16.3.8 CAT3K_CAA-UNIVERSALK9 BUNDLE
2. request platform software package expand コマンドでbin ファイルから Package へ変換する。
Switch#request platform software package expand switch all file flash:cat3k_caa-universalk9.16.06.05.SPA.bin
[2]: Expanding file
[2]: Finished expanding all-in-one software package in switch 1
SUCCESS: Finished expanding all-in-one software package.
Switch#
3. flash: に packages.conf ファイルが生成されたことを確認する。
Switch#dir | in packages.conf
30994 -rw- 4742 Aug 19 2019 05:51:43 +00:00 packages.conf
4. Boot 変数を変更し、write memory を実行する。
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no boot system
Switch(config)#boot system flash:packages.conf
Switch(config)#end
Switch#write memory
Switch#show boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:packages.conf;
Boot Variables on next reload:
BOOT variable = flash:packages.conf;
<snip>
5. 機器をReloadする。
Switch#reload
Proceed with reload? [confirm]
6. 機器起動後、show version でバージョン情報を確認する。
Switch#show version
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 2 32 WS-C3850-24T 16.6.5 CAT3K_CAA-UNIVERSALK9 INSTALL
上述「3.X から 16.X へのアップグレード」>「Install/Bundle モードから Bundle モードへアップグレードする」の手順と同じです。上記内容を参照してください。
下記は 3.X 及び 16.X 上バージョンのアップグレードと関連しているコマンドとなります。
3.X |
16.X |
Description |
software install file flash: |
request platform software package install switch all file flash: |
Upgrade/Downgrade software version |
software expand file flash: |
request platform software package expand switch all file flash: |
Expand the .bin file to the flash to move from bundled to install mode |
software clean |
request platform software package clean switch all |
Remove unused files on flash to free up space |
Release Notes for Cisco Catalyst 3650 Series Switches, Cisco IOS XE Denali 16.3.x
Upgrading the Switch Software
Switch Stack Update
Catalyst 3850 シリーズ スイッチのアップグレード、管理、および回復の方法
質問です。
Install Modeでアップグレードした際に、software installコマンド実行後、Reload時に当該binファイルを削除されるのは、Flashの空き容量を見て実行されるのか、それとも必須で実行されるのか、いずれでしょうか。
検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう
シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします
下記より関連するコンテンツにアクセスできます