To install Software Maintenance Upgrade (SMU) packages, use the install command in privileged EXEC mode.
install {abort | activate | file {bootflash: | flash: | harddisk: | webui:} [auto-abort-timer timer timer prompt-level {all | none}] | add file {bootflash: | flash: | ftp: | harddisk: | http: | https: | rcp: | scp: | tftp: | webui:} [activate [auto-abort-timer timer prompt-level {all | none}commit]] | commit | auto-abort-timer stop | deactivate file {bootflash: | flash: | harddisk: | webui:} | label id {description description | label-name name} | remove {file {bootflash: | flash: | harddisk: | webui:} | inactive } | | rollback to {base | committed | id {install-ID } | label {label-name}}}
Syntax Description
abort
|
Terminates the current install operation.
|
activate
|
Validates whether the SMU is added through the install add command.
This keyword runs a compatibility check, updates package status, and if the package can be restarted, triggers post-install
scripts to restart the necessary processes, or triggers a reload for nonrestartable packages.
|
file
|
Specifies the package to be activated.
|
{bootflash: | flash: | harddisk: | webui:}
|
Specifies the location of the installed package.
|
auto-abort-timer timer
|
(Optional) Installs an auto-abort timer.
|
prompt-level {all | none}
|
(Optional) Prompts a user about installation activities.
For example, the activate keyword automatically triggers a reload for packages that require a reload. Before activating the package, a message prompts
users about wanting to continue or not.
The all keyword allows you to enable prompts. The none keyword disables prompts.
|
add
|
Copies files from a remote location (through FTP or TFTP) to a device and performs SMU compatibility check for the platform
and image versions.
This keyword runs base compatibility checks to ensure that a specified package is supported on a platform.
|
{ bootflash: | flash: |ftp: |harddisk: |http: |https: | rcp: | scp: | tftp: |webui:} |
Specifies the package to be added.
|
commit
|
Makes SMU changes persistent over reloads.
You can perform a commit after activating a package while the system is up, or after the first reload. If a package is activated,
but not committed, it remains active after the first reload, but not after the second reload.
|
auto-abort-timer stop
|
Stops the auto-abort timer.
|
deactivate
|
Deactivates an installed package.
Note
|
Deactivating a package also updates the package status and might trigger a process restart or reload.
|
|
label id
|
Specifies the ID of the install point to label.
|
description
|
Adds a description to the specified install point.
|
label-name name
|
Adds a label name to the specified install point.
|
remove |
Removes the installed packages.
The remove keyword can only be used on packages that are currently inactive.
|
inactive |
Removes all the inactive packages from the device.
|
rollback |
Rolls back the data model interface (DMI) package SMU to the base version, the last committed version, or a known commit ID.
|
to
base |
Returns to the base image.
|
committed |
Returns to the installation state when the last commit operation was performed.
|
id install-ID |
Returns to the specific install point ID. Valid values are from 1 to 4294967295.
|
Command Default
Packages are not installed.
Command Modes
Privileged EXEC (#)
Command History
Release |
Modification |
Cisco IOS XE Everest 16.6.3
|
This command was introduced.
|
Cisco IOS XE Fuji 16.9.1
|
Hot-patching support is introduced. Sample output updated with hot SMU outputs.
|
Usage Guidelines
An SMU is a package that can be installed on a system to provide a patch fix or security resolution to a released image. This
package contains a minimal set of files for patching the release along with metadata that describes the contents of the package.
Packages must be added before the SMU is activated.
A package must be deactivated before it is removed from Flash. A removed packaged must be added again.
Examples
The following example shows how to add an install package to a device:
Device# install add file flash:cat9k_iosxe.BLD_SMU_20180302_085005_TWIG_LATEST_20180306_013805.3.SSA.smu.bin
install_add: START Mon Mar 5 21:48:51 PST 2018
install_add: Adding SMU
--- Starting initial file syncing ---
Info: Finished copying flash:cat9k_iosxe.BLD_SMU_20180302_085005_TWIG_LATEST_20180306_013805.3.SSA.smu.bin to the selected switch(es)
Finished initial file syncing
Executing pre scripts....
Executing pre scripts done.
--- Starting SMU Add operation ---
Performing SMU_ADD on all members
[1] SMU_ADD package(s) on switch 1
[1] Finished SMU_ADD on switch 1
Checking status of SMU_ADD on [1]
SMU_ADD: Passed on [1]
Finished SMU Add operation
SUCCESS: install_add /flash/cat9k_iosxe.BLD_SMU_20180302_085005_TWIG_LATEST_20180306_013805.3.SSA.smu.bin Mon Mar 5 21:49:00 PST 2018
The following example shows how to activate an install package:
Device# install activate file flash:cat9k_iosxe.BLD_SMU_20180302_085005_TWIG_LATEST_20180306_013805.3.SSA.smu.bin
install_activate: START Mon Mar 5 21:49:22 PST 2018
install_activate: Activating SMU
Executing pre scripts....
Executing pre sripts done.
--- Starting SMU Activate operation ---
Performing SMU_ACTIVATE on all members
[1] SMU_ACTIVATE package(s) on switch 1
[1] Finished SMU_ACTIVATE on switch 1
Checking status of SMU_ACTIVATE on [1]
SMU_ACTIVATE: Passed on [1]
Finished SMU Activate operation
SUCCESS: install_activate /flash/cat9k_iosxe.BLD_SMU_20180302_085005_TWIG_LATEST_20180306_013805.3.SSA.smu.bin Mon Mar 5 21:49:34 PST 2018
The following example shows how to commit an installed package:
Device# install commit
install_commit: START Mon Mar 5 21:50:52 PST 2018
install_commit: Committing SMU
Executing pre scripts....
Executing pre sripts done.
--- Starting SMU Commit operation ---
Performing SMU_COMMIT on all members
[1] SMU_COMMIT package(s) on switch 1
[1] Finished SMU_COMMIT on switch 1
Checking status of SMU_COMMIT on [1]
SMU_COMMIT: Passed on [1]
Finished SMU Commit operation
SUCCESS: install_commit /flash/cat9k_iosxe.BLD_SMU_20180302_085005_TWIG_LATEST_20180306_013805.3.SSA.smu.bin Mon Mar 5 21:51:01 PST 2018
Examples
The following example shows how to change a device running in bundle boot mode to install mode:
Device# install add file boot flash:cat9k_iosxe.17.04.01.SSA.bin activate commit
install_add_activate_commit: START Sun Jun 14 22:31:41 PDT 2020
install_add_activate_commit: Adding PACKAGE
install_add_activate_commit: Checking whether new add is allowed ....
--- Starting initial file syncing ---
[1]: Copying flash:cat9k_iosxe.17.04.01.SSA.bin from switch 1 to switch 2
[2]: Finished copying to switch 2
Info: Finished copying flash:cat9k_iosxe.17.04.01.SSA.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
[2] Add package(s) on switch 2
[2] Finished Add on switch 2
Checking status of Add on [1 2]
Add: Passed on [1 2]
Finished Add
Image added. Version: 17.4.01.0.87954
install_add_activate_commit: Activating PACKAGE
Following packages shall be activated:
/flash/cat9k-wlc.17.04.01.SSA.pkg
/flash/cat9k-webui.17.04.01.SSA.pkg
/flash/cat9k-srdriver.17.04.01.SSA.pkg
/flash/cat9k-sipspa.17.04.01.SSA.pkg
/flash/cat9k-sipbase.17.04.01.SSA.pkg
/flash/cat9k-rpboot.17.04.01.SSA.pkg
/flash/cat9k-rpbase.17.04.01.SSA.pkg
/flash/cat9k-lni.17.04.01.SSA.pkg
/flash/cat9k-guestshell.17.04.01.SSA.pkg
/flash/cat9k-espbase.17.04.01.SSA.pkg
/flash/cat9k-cc_srdriver.17.04.01.SSA.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
[1] Finished Activate on switch 1
[2] Activate package(s) on switch 2
[2] Finished Activate on switch 2
Checking status of Activate on [1 2]
Activate: Passed on [1 2]
Finished Activate
Building configuration...
[OK]--- Starting Commit ---
Performing Commit on all members
[1] Commit package(s) on switch 1
[1] Finished Commit on switch 1
[2] Commit package(s) on switch 2
[2] Finished Commit on switch 2
Checking status of Commit on [1 2]
Commit: Passed on [1 2]
Finished Commit
Send model notification for install_add_activate_commit before reload
[1 2]: Performing Upgrade_Service
300+0 records in
300+0 records out
307200 bytes (307 kB, 300 KiB) copied, 0.194027 s, 1.6 MB/s
AppGigabitEthernet port has the latest Firmware
mount: /tmp/microcode_update/boot_pkg: WARNING: device write-protected, mounted read-only.
SUCCESS: Upgrade_Service finished
Install will reload the system now!
SUCCESS: install_add_activate_commit Sun Jun 14 22:40:55 PDT 2020
The following example shows how to avoid prompt during reboot process:
Device# install add file boot flash:cat9k_iosxe.17.04.01.SSA.bin activate commit prompt-level none
install_add_activate_commit: START Wed Jun 17 03:57:53 PDT 2020
install_add_activate_commit: Adding PACKAGE
install_add_activate_commit: Checking whether new add is allowed ....
--- Starting initial file syncing ---
[1]: Copying flash:cat9k_iosxe.17.04.01.SSA.bin from switch 1 to switch 2 3
[2 3]: Finished copying to switch 2 switch 3
Info: Finished copying flash:cat9k_iosxe.17.04.01.SSA.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
[2] Add package(s) on switch 2
[2] Finished Add on switch 2
[3] Add package(s) on switch 3
[3] Finished Add on switch 3
Checking status of Add on [1 2 3]
Add: Passed on [1 2 3]
Finished Add
Image added. Version: 17.4.01.0.115072
install_add_activate_commit: Activating PACKAGE
Following packages shall be activated:
/flash/cat9k-wlc.17.04.01.SSA.pkg
/flash/cat9k-webui.17.04.01.SSA.pkg
/flash/cat9k-srdriver.17.04.01.SSA.pkg
/flash/cat9k-sipspa.17.04.01.SSA.pkg
/flash/cat9k-sipbase.17.04.01.SSA.pkg
/flash/cat9k-rpboot.17.04.01.SSA.pkg
/flash/cat9k-rpbase.17.04.01.SSA.pkg
/flash/cat9k-lni.17.04.01.SSA.pkg
/flash/cat9k-guestshell.17.04.01.SSA.pkg
/flash/cat9k-espbase.17.04.01.SSA.pkg
/flash/cat9k-cc_srdriver.17.04.01.SSA.pkg
--- Starting Activate ---
Performing Activate on all members
[1] Activate package(s) on switch 1
[1] Finished Activate on switch 1
[2] Activate package(s) on switch 2
[2] Finished Activate on switch 2
[3] Activate package(s) on switch 3
[3] Finished Activate on switch 3
Checking status of Activate on [1 2 3]
Activate: Passed on [1 2 3]
Finished Activate
Building configuration...
[OK]--- Starting Commit ---
Performing Commit on all members
[1] Commit package(s) on switch 1
[1] Finished Commit on switch 1
[2] Commit package(s) on switch 2
[2] Finished Commit on switch 2
[3] Commit package(s) on switch 3
[3] Finished Commit on switch 3
Checking status of Commit on [1 2 3]
Commit: Passed on [1 2 3]
Finished Commit
Send model notification for install_add_activate_commit before reload
[1 2 3]: Performing Upgrade_Service
300+0 records in
300+0 records out
307200 bytes (307 kB, 300 KiB) copied, 0.194692 s, 1.6 MB/s
AppGigabitEthernet port has the latest Firmware
mount: /tmp/microcode_update/boot_pkg: WARNING: device write-protected, mounted read-only.
SUCCESS: Upgrade_Service finished
Install will reload the system now!
SUCCESS: install_add_activate_commit Wed Jun 17 04:05:25 PDT 2020
The following example shows how to avoid deleting files used for installation process:
Device# install remove inactive
install_remove: START Wed Jun 17 06:23:26 PDT 2020
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 ...
cat9k-cc_srdriver.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-cc_srdriver.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-espbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-espbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-guestshell.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-guestshell.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-lni.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-rpbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-rpbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-rpboot.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-sipbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-sipbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-sipspa.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-sipspa.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-srdriver.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-srdriver.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-webui.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-webui.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-wlc.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-wlc.17.04.01.SSA.pkg
File is in use, will not delete.
packages.conf
File is in use, will not delete.
done.
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 ...
cat9k-cc_srdriver.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-espbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-guestshell.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-lni.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-rpbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-rpboot.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-sipbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-sipspa.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-srdriver.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-webui.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-wlc.17.04.01.SSA.pkg
File is in use, will not delete.
packages.conf
File is in use, will not delete.
done.
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 ...
cat9k-cc_srdriver.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-espbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-guestshell.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-lni.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-rpbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-rpboot.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-sipbase.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-sipspa.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-srdriver.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-webui.17.04.01.SSA.pkg
File is in use, will not delete.
cat9k-wlc.17.04.01.SSA.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-lni.17.04.01.SSA.pkg
/flash/cat9k-rpboot.17.04.01.SSA.pkg
/flash/cat9k_iosxe.17.04.01.SSA.bin
/flash/cat9k_iosxe.17.04.01.SSA.conf
/flash/cat9k_iosxe.17.04.01.SSA.conf
[switch 2]:
/flash/cat9k-cc_srdriver.17.04.01.SSA.pkg
/flash/cat9k-espbase.17.04.01.SSA.pkg
/flash/cat9k-guestshell.17.04.01.SSA.pkg
/flash/cat9k-lni.17.04.01.SSA.pkg
/flash/cat9k-rpbase.17.04.01.SSA.pkg
/flash/cat9k-rpboot.17.04.01.SSA.pkg
/flash/cat9k-sipbase.17.04.01.SSA.pkg
/flash/cat9k-sipspa.17.04.01.SSA.pkg
/flash/cat9k-srdriver.17.04.01.SSA.pkg
/flash/cat9k-webui.17.04.01.SSA.pkg
/flash/cat9k-wlc.17.04.01.SSA.pkg
/flash/cat9k_iosxe.17.04.01.SSA.bin
/flash/cat9k_iosxe.17.04.01.SSA.conf
/flash/cat9k_iosxe.17.04.01.SSA.conf
[switch 3]:
/flash/cat9k-cc_srdriver.17.04.01.SSA.pkg
/flash/cat9k-espbase.17.04.01.SSA.pkg
/flash/cat9k-guestshell.17.04.01.SSA.pkg
/flash/cat9k-lni.17.04.01.SSA.pkg
/flash/cat9k-rpbase.17.04.01.SSA.pkg
/flash/cat9k-rpboot.17.04.01.SSA.pkg
/flash/cat9k-sipbase.17.04.01.SSA.pkg
/flash/cat9k-sipspa.17.04.01.SSA.pkg
/flash/cat9k-srdriver.17.04.01.SSA.pkg
/flash/cat9k-webui.17.04.01.SSA.pkg
/flash/cat9k-wlc.17.04.01.SSA.pkg
/flash/cat9k_iosxe.17.04.01.SSA.bin
/flash/cat9k_iosxe.17.04.01.SSA.conf
/flash/cat9k_iosxe.17.04.01.SSA.conf
Do you want to remove the above files? [y/n]y
[switch 1]:
Deleting file flash:cat9k-lni.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-rpboot.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.bin ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.conf ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.conf ... done.
SUCCESS: Files deleted.
[switch 2]:
Deleting file flash:cat9k-cc_srdriver.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-espbase.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-guestshell.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-lni.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-rpbase.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-rpboot.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-sipbase.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-sipspa.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-srdriver.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-webui.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-wlc.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.bin ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.conf ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.conf ... done.
SUCCESS: Files deleted.
[switch 3]:
Deleting file flash:cat9k-cc_srdriver.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-espbase.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-guestshell.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-lni.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-rpbase.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-rpboot.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-sipbase.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-sipspa.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-srdriver.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-webui.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k-wlc.17.04.01.SSA.pkg ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.bin ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.conf ... done.
Deleting file flash:cat9k_iosxe.17.04.01.SSA.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
[2] Post_Remove_Cleanup package(s) on switch 2
[2] Finished Post_Remove_Cleanup on switch 2
[3] Post_Remove_Cleanup package(s) on switch 3
[3] Finished Post_Remove_Cleanup on switch 3
Checking status of Post_Remove_Cleanup on [1 2 3]
Post_Remove_Cleanup: Passed on [1 2 3]
Finished Post_Remove_Cleanup
SUCCESS: install_remove Wed Jun 17 06:24:59 PDT 2020