To install the running IOS XE software packages from one stack member to one or more other stack members, use the
software install source switch command in Privileged EXEC mode.
software install source switchnode [switchnode] [auto-rollbackminutes] [force] [on-reboot] [verbose] [new] [provisioning-fileprovisioning-file url]
Syntax Description
switchnode
|
Specifies which switch in the stack to use as the package source. Only a single switch may be specified and there is no default
value
|
switchnodes
|
(optional) Specifies which switch(es) should perform the install operation using '1,2,4' and/or '2-4' notation. Default is
all switches in the stack.
|
auto-rollbackminutes
|
( optional) Used to start the rollback timer for the specified number of minutes. If not used, the software is automatically
committed after installation. A value to zero means the rollback timer is never started and the software is not automatically
committed (need to use 'software commit ').
If set to another value, the 'software commit' command must be used to commit the software before the timer expires (else
it will automatically rollback to the original software ).
|
force
|
(optional) Specifies that the operation will be forced. Forced means that the installation will proceed despite any remote
package incompatibilities.
Force should not generally be required, and should be used with caution.
Local package compatibility checks are enforced regardless of this command option.
|
on-reboot
|
(optional) Indicates that the user should not prompted to reload when the installation operation completes. The user must
then use the reload command to boot the system with the newly installed packages.
|
verbose
|
(optional) provides some additional info in the log files
|
new
|
(optional) Indicates that the post-install package set should contain only the packages being installed.
Without this option, the post-install package set is a merged set of the currently installed software and the new packages
being installed.
|
provisioning-fileprovisioning-file url
|
(optional) Specifies the provisioning file to be updated by the installation.
Default is the running provisioning file. Valid locations are flash: or usbflash0:
|
Command Default
Command is used to install IOS XE software. No software will be installed by default.
Command Modes
Privileged EXEC
Command History
Release
|
Modification
|
IOS XE 3.2.0 SE
|
Command introduced.
|
Usage Guidelines
The
software install source switch command is used to install the running package files from one stack member to one or more other stack members while the system
is running in installed mode.
The following tasks are performed during the
software install source switch operation.
- Copy the running software packages from flash: on the specified source switch to flash: on all other switches specified
in the command.
- Perform compatibility checks on all switches in the stack to ensure that the software running on all stack members after
installation will be compatible. This task is skipped if the
force command option is used.
- Start the auto-rollback timer if the
auto-rollback command option was used. The newly installed packages will be automatically rolled back if the auto-rollback timer expires
before the
software commit command is issued.
- Update the package provisioning file (packages.conf) and save a copy of the original provisioning file for use during auto-rollback
or user-initiated rollback (software rollback command).
- Commit the newly installed software packages if the
auto-rollback command option was not used.
- Prompt the user to reload (if the
on-reboot command option was not used).
Note
|
The
software install source switch command cannot be used if the system is running in bundle mode. In this case, the
software expand command can be used to prepare the system to boot in installed mode.
|
Examples
In the following example, the switches in a 2-member stack are running different (but compatible) software packages. The
software install source switch command is used to install the currently running packages on the standby switch (switch 1) to the active switch (switch 2).
infra-p2-3#show version running
Package: Base, version: 03.09.19.EMP, status: active
File: cat3k_caa-base.SSA.03.09.19.EMP.pkg, on: Switch1
Built: Thu Nov 15 01:52:19 PST 2012, by: udonthi
Package: Drivers, version: 03.09.19.EMP, status: active
File: cat3k_caa-drivers.SSA.03.09.19.EMP.pkg, on: Switch1
Built: Thu Nov 15 01:54:53 PST 2012, by: udonthi
Package: Infra, version: 03.09.19.EMP, status: active
File: cat3k_caa-infra.SSA.03.09.19.EMP.pkg, on: Switch1
Built: Thu Nov 15 01:53:08 PST 2012, by: udonthi
Package: IOS, version: 150-9.19.EMP, status: active
File: cat3k_caa-iosd-universalk9.SSA.150-9.19.EMP.pkg, on: Switch1
Built: Thu Nov 15 01:54:09 PST 2012, by: udonthi
Package: Platform, version: 03.09.19.EMP, status: active
File: cat3k_caa-platform.SSA.03.09.19.EMP.pkg, on: Switch1
Built: Thu Nov 15 01:53:39 PST 2012, by: udonthi
Package: WCM, version: 03.09.19.EMP, status: active
File: cat3k_caa-wcm.SSA.03.09.19.EMP.pkg, on: Switch1
Built: Thu Nov 15 01:54:34 PST 2012, by: udonthi
Package: Base, version: 03.09.17.EMP, status: active
File: cat3k_caa-base.SSA.03.09.17.EMP.pkg, on: Switch2
Built: Mon Nov 12 20:27:51 PST 2012, by: udonthi
Package: Drivers, version: 03.09.17.EMP, status: active
File: cat3k_caa-drivers.SSA.03.09.17.EMP.pkg, on: Switch2
Built: Mon Nov 12 20:31:01 PST 2012, by: udonthi
Package: Infra, version: 03.09.17.EMP, status: active
File: cat3k_caa-infra.SSA.03.09.17.EMP.pkg, on: Switch2
Built: Mon Nov 12 20:28:53 PST 2012, by: udonthi
Package: IOS, version: 150-9.17.EMP, status: active
File: cat3k_caa-iosd-universalk9.SSA.150-9.17.EMP.pkg, on: Switch2
Built: Mon Nov 12 20:29:58 PST 2012, by: udonthi
Package: Platform, version: 03.09.17.EMP, status: active
File: cat3k_caa-platform.SSA.03.09.17.EMP.pkg, on: Switch2
Built: Mon Nov 12 20:29:33 PST 2012, by: udonthi
Package: WCM, version: 03.09.17.EMP, status: active
File: cat3k_caa-wcm.SSA.03.09.17.EMP.pkg, on: Switch2
Built: Mon Nov 12 20:30:29 PST 2012, by: udonthi
infra-p2-3#
infra-p2-3#software install source switch 1
Preparing install operation ...
[2]: Copying software from source switch 1 to switch 2
[2]: Finished copying software to switch 2
[2]: Starting install operation
[2]: Starting compatibility checks
[2]: Finished compatibility checks
[2]: Starting application pre-installation processing
[2]: Finished application pre-installation processing
[2]: Old files list:
Removed cat3k_caa-base.SSA.03.09.17.EMP.pkg
Removed cat3k_caa-drivers.SSA.03.09.17.EMP.pkg
Removed cat3k_caa-infra.SSA.03.09.17.EMP.pkg
Removed cat3k_caa-iosd-universalk9.SSA.150-9.17.EMP.pkg
Removed cat3k_caa-platform.SSA.03.09.17.EMP.pkg
Removed cat3k_caa-wcm.SSA.03.09.17.EMP.pkg
[2]: New files list:
Added cat3k_caa-base.SSA.03.09.19.EMP.pkg
Added cat3k_caa-drivers.SSA.03.09.19.EMP.pkg
Added cat3k_caa-infra.SSA.03.09.19.EMP.pkg
Added cat3k_caa-iosd-universalk9.SSA.150-9.19.EMP.pkg
Added cat3k_caa-platform.SSA.03.09.19.EMP.pkg
Added cat3k_caa-wcm.SSA.03.09.19.EMP.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]: no
infra-p2-3#