This site covers Cisco and Palo Alto as part of *** Shadowgarden.org ***

Cisco Catalyst 9000 シリーズスイッチ OS バージョンアップ処理中止時の対処方法

目次

本記事について

本記事では Cisco Catalyst 9000 シリーズスイッチ (C9200/C9300/C9400/C9500/C9600) の OS バージョンアップについて、install コマンド実行後の対話的メッセージ表示のタイミングで処理を中止してしまった場合の対処方法を説明します。

動作確認環境

  • C9200L-24T-4G
    • IOS-XE 17.12.04

インストール処理を中止した場合どのような状態になるか

Catalyst 9000 シリーズスイッチをバージョンアップするためには以下コマンドを実行します。

  • install add file flash:<OSファイル名> activate commit

このコマンドを実行後しばらく待つと、以下のような続行確認メッセージが表示されます。

This operation may require a reload of the system. Do you want to proceed? [y/n]

このメッセージに対して「n」で応答するか、一定時間応答しない場合、インストール処理は中止されます。

以下は一定時間応答せずに自動キャンセルされた場合に出力されるログです。

%INSTALL-5-INSTALL_START_INFO: Switch 1 R0/0: install_mgr: Started install activate NONE
%PLATFORM-4-ELEMENT_WARNING: Switch 1 R0/0: smand: 1/RP/0: limited space - copy files out of flash: directory. flash: value 86% (1650 MB) exceeds warning level 70% (1337 MB).No User Response, Request Timeout
%INSTALL-3-OPERATION_ERROR_MESSAGE: Switch 1 R0/0: install_mgr: Failed to install add_activate_commit package , Error: This operation may require a reload of the system. Do you want to proceed?

この状態からバージョンアップを再開しようとinstall add file flash:<OSファイル名> activate commitコマンドを再度実行した場合、以下のようなログが表示され処理が実行されません。

 [1] Switch 1 FAILED: Super package already added. Add operation not allowed. install remove inactive can be used to discard added packages
FAILED: add_activate_commit /mnt/sd3/user/cat9k_lite_iosxe.17.15.05.SPA.bin Sat May 30 05:03:01 UTC 2026

忙しい人向け対処方法

この状態から正常にバージョンアップをするためには以下手順を実行します。

対処手順
  1. install remove inactive を実行し、フラッシュ内に展開されたパッケージを削除
  2. install add file flash:<OSファイル名> activate commit を実行しなおす

インストールモードでのバージョンアップ処理の流れ

インストールモードによるバージョンアップでは以下の3ステップの処理が行われます。

STEP
Add

OS の「.bin」ファイルからパッケージ「.pkg」をフラッシュ内に展開します。

STEP
Activate

パッケージ「.pkg」を有効化し、機器を再起動して新バージョンで動作させます。

  • 新しい「.pkg」ファイルを指すように「.conf」ファイルが編集される
  • ロールバックタイマーの設定(オプション)
STEP
Commit

バージョンアップの確定(ロールバックタイマーの停止)

install add file flash:<OSファイル名> activate commitコマンドを実行すると、上記の Add / Activate / Commit のすべてを順に実行することになります。そして、最初の Add が完了した段階で 「This operation may require a reload of the system. Do you want to proceed? [y/n]」のメッセージが表示されます

よって、この時点で処理を中止するとフラッシュへのパッケージ展開が実施されただけの状態になります。

この状態から再度install add file flash:<OSファイル名> activate commitコマンドを実行すると、Add の処理を実行しようとしますが既にフラッシュ内にパッケージが展開済みなのでエラーとなり処理が中止されます。

この状態でshow install summaryコマンドを実行してインストール状態を確認すると、以下のように状態が「I」(Inactive) と表示されます。

C9200L#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    17.15.04.0.6839
IMG   I    17.15.05.0.8370

--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------

対処方法

Add だけ実行された状態からバージョンアップを行うためには以下の2パターンがあります。

  • パッケージを削除してからやり直す
  • Activate、Commit を順に実行する

①のパッケージを削除してやり直しが当サイトの推奨です。

方法① パッケージを削除してからやり直す

install remove inactiveコマンドで inactive 状態のパッケージを削除することができるため、これを実行します。

C9200L#install remove inactive

*May 30 05:28:45.035: %INSTALL-5-INSTALL_START_INFO: Switch 1 R0/0: install_mgr: Started install removeinstall_remove: START Sat May 30 05:28:45 UTC 2026
install_remove: Removing IMG
Cleaning up unnecessary package files
No path specified, will use booted path /flash/packages.conf

Cleaning /flash
  Scanning boot directory for packages ... done.
  Preparing packages list to delete ...
    [R0]: /flash/packages.conf File is in use, will not delete.
    [R0]: /flash/cat9k_lite_iosxe.17.15.04.SPA.conf File is in use, will not delete.
    [R0]: /flash/cat9k_lite-rpbase.17.15.04.SPA.pkg File is in use, will not delete.
    [R0]: /flash/cat9k_lite-rpboot.17.15.04.SPA.pkg File is in use, will not delete.
    [R0]: /flash/cat9k_lite-srdriver.17.15.04.SPA.pkg File is in use, will not delete.
    [R0]: /flash/cat9k_lite-webui.17.15.04.SPA.pkg File is in use, will not delete.

The following files will be deleted:
    [R0]: /flash/cat9k_lite_iosxe.17.15.05.SPA.conf
    [R0]: /flash/cat9k_lite-webui.17.15.05.SPA.pkg
    [R0]: /flash/cat9k_lite-srdriver.17.15.05.SPA.pkg
    [R0]: /flash/cat9k_lite-rpbase.17.15.05.SPA.pkg
    [R0]: /flash/cat9k_lite-rpboot.17.15.05.SPA.pkg

Do you want to remove the above files? [y/n]y

Deleting file /flash/cat9k_lite_iosxe.17.15.05.SPA.conf ... done.
Deleting file /flash/cat9k_lite-webui.17.15.05.SPA.pkg ... done.
Deleting file /flash/cat9k_lite-srdriver.17.15.05.SPA.pkg ... done.
Deleting file /flash/cat9k_lite-rpbase.17.15.05.SPA.pkg ... done.
Deleting file /flash/cat9k_lite-rpboot.17.15.05.SPA.pkg ... done.
Deleting /flash/.images/17.15.05.0.8370.1771572598 ... /flash/.images/17.15.04.0.6839.1754353627 done.
SUCCESS: Files deleted.

--- Starting Post_Remove_Cleanup ---
Performing REMOVE_POSTCHECK on all members
Finished Post_Remove_Cleanup
SUCCESS: install_remove Sat May 30 05:28:52 UTC 2026

パッケージ削除後はshow install summaryコマンドにて inactive 状態だったバージョンの表示が消えます。

C9200L#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    17.15.04.0.6839

--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------

パッケージを削除後install add file flash:<OSファイル名> activate commitコマンドを実行してバージョンアップすることができます。

方法② Activate、Commit を順に実行する

Activate、Commit それぞれを個別にコマンドで実行することができるため、順に実行していきます。

STEP
Inactiove 状態の確認

show install summaryコマンドを実行し対象バージョンが Inactiove 状態であることを確認します。

C9200L#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    17.15.04.0.6839
IMG   I    17.15.05.0.8370

--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------

STEP
Activate の実行

install activateコマンドを実行し、Activate します。

C9200L#install activate

*May 30 05:41:16.296: %PLATFORM-4-ELEMENT_WARNING: Switch 1 R0/0: smand: 1/RP/0: limited space - copy files out of flash: directory. flash: value 86% (1650 MB) exceeds warning level 70% (1337 MB).
*May 30 05:41:17.206: %INSTALL-5-INSTALL_START_INFO: Switch 1 R0/0: install_mgr: Started install activate NONEinstall_activate: START Sat May 30 05:41:17 UTC 2026
install_activate: Activating IMG
Following packages shall be activated:
/flash/cat9k_lite-webui.17.15.05.SPA.pkg
/flash/cat9k_lite-srdriver.17.15.05.SPA.pkg
/flash/cat9k_lite-rpbase.17.15.05.SPA.pkg
/flash/cat9k_lite-rpboot.17.15.05.SPA.pkg

This operation may require 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

実行後「This operation may require a reload of the system. Do you want to proceed? [y/n]」と再起動するが続行するか?を聞かれるため「y」で応答し続行します。

その後、Activate 完了と再起動の完了を待ちます。

STEP
再起動後状態確認

show versionコマンドで目的のバージョンで起動していることを確認します。

C9200L#show version
Cisco IOS XE Software, Version 17.15.05
Cisco IOS Software [IOSXE], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 17.15.5, RELEASE SOFTWARE (fc3)

show install summaryコマンドで目的のバージョンの状態が「U」(Activated & Uncommitted) になっていることを確認します。

C9200L#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   U    17.15.05.0.8370

--------------------------------------------------------------------------------
Auto abort timer: active , time before rollback - 01:51:56
--------------------------------------------------------------------------------

STEP
Commit の実行

install commitコマンドを実行し、Commit します。

C9200L#install commit

*May 30 05:54:47.221: %INSTALL-5-INSTALL_START_INFO: Switch 1 R0/0: install_mgr: Started install commitinstall_commit: START Sat May 30 05:54:47 UTC 2026
--- Starting Commit ---
Performing Commit on all members
 [1] Commit packages(s) on Switch 1
 [1] Finished Commit packages(s) on Switch 1
Checking status of Commit on [1]
Commit: Passed on [1]
Finished Commit operation

SUCCESS: install_commit Sat May 30 05:54:55 UTC 2026

STEP
Commit 後の状態確認

show install summaryコマンドで目的のバージョンの状態が「C」(Activated & Committed) になっていることを確認します。

C9200L#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    17.15.05.0.8370

--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------

STEP
旧バージョンのパッケージ削除

install remove inactiveコマンドを実行し、旧バージョンのパッケージを削除します。

参考資料


Cisco Catalyst 9000 シリーズスイッチ関連記事一覧

Amazon で買えるおすすめアイテム

以下は Amazon アフィリエイトリンクです。ネットワーク作業向けにそこそこおすすめなアイテムです。

ブログ始めるなら 【アフィリエイトリンク】

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

コメント

コメントする

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)

目次