To add software functionality to the active software set, use the install
activate command in XR EXEC mode.
install
activate
{
package-name
|
id
id-number
|
issu
[
package-name
| abort
| auto-abort-cleanup
| cleanup
| {
id
|
| id-number
}
| load
| noprompt
| run
]
|
nooptim
|
noprompt
|
process-restart
|
reload
|
synchronous
}
[
replace
| restrict-release
]
Syntax Description
package name
|
Specifies the package name.
Note
|
Multiple packages can be activated at one time. Up to 64 packages can be specified in a single install activate command. However, the number of packages is limited based on the length of the character entered. The character length should
not exceed 1024.
|
|
id
id-number
|
Specifies the ID number of an install add operation. The command activates all packages that were added in the specified install add operation. The ID number of an install add operation is indicated in the syslog displayed during the operation and in the output of the show install log command. Up to 16 install
add operations can be specified.
|
issu
|
Performs an in-service software upgrade.
|
nooptim
|
Executes install operation in traditional mode.
|
noprompt
|
(Optional) Sets Yes to any response prompted from an install operation when this keyword is used in the command.
Note
|
The command functionality remains unaltered even if the keyword is not specified.
|
|
process-restart
|
Restarts the process.
|
reload
|
Reloads the process.
|
synchronous
|
(Optional) Performs the command in synchronous mode. This mode allows the installation process to finish before the prompt
is returned.
|
abort
|
(Optional) Specifies abort operation
|
auto-abort-cleanup
|
(Optional) Specifies an auto abort cleanup of the v2 nodes if an abort occurs.
|
cleanup
|
(Optional) Specifies cleanup operation.
|
load
|
(Optional) Specifies interactive mode load operation.
|
run
|
(Optional) Specifies run operation.
|
replace
|
(Optional) Replaces the active packages with the ones provided in this command.
|
restrict-release
|
(Optional) Doesn't allow packages from other releases.
|
Command Default
If the install prepare command was not executed prior to install activate , executing the install activate command without any keywords aborts the process.
Command Modes
XR EXEC mode
Command History
Release
|
Modification
|
Release 7.0.1
|
This command was introduced.
|
Usage Guidelines
Use the install activate command to activate software packages or SMUs for all valid cards. Information within the package is used to verify compatibility
with the target cards and with the other active software. Actual activation is performed only after the package compatibility
and application program interface (API) compatibility checks have passed.
Specifying
Packages to Activate
You can either use the id
id-number keyword and argument to activate all packages that were added in one or more specific install add operations, or specify packages by name. The operation ID of an install add operation is indicated in the syslog displayed during the operation and in the output of the show install log command. If you specify packages according to operation ID, all the packages that were added by the specified operation must
still be on the router.
Upgrading and Downgrading Packages
-
To upgrade a package, activate the later version of the package; the earlier version is automatically deactivated.
-
To downgrade a package, activate the earlier version of the package; the later version is automatically deactivated.
Note
|
Activating a
Software Maintenance Update (SMU) does not cause any earlier SMUs, or the
package to which the SMU applies, to be automatically deactivated.
|
Activating a Package for All Secure Domain Routers
To activate a package for all secure domain routers (SDRs) in the system, use the install activate command in XR EXEC mode.
Activating New Versions of the Currently Active Packages
Use the install activate command with the if-active keyword to activate the package only on SDRs where an earlier version of the package is already active. This command is available
only in XR EXEC mode.
The if-active keyword is used only for optional packages or SMUs for optional packages.
Router Reloads Following Package Activation
If the activation requires a reload of the SDR, a confirmation prompt appears. Use the install activate command with the prompt-level none keywords to automatically ignore any reload confirmation prompts and proceed with the package activation. The router reloads
if required.
Node Reloads Following Package Activation
If a software operation requires a node reload, the config-register for that node should be set to autoboot. If the config-register
for the node is not set to autoboot, the system automatically changes the setting and the node reloads. A message describing
the change is displayed.
Synchronous Mode
Use the install activate command with the synchronous keyword to complete the operation before the prompt is returned. A progress bar indicates the status of the operation. For
example:
- 1% complete: The operation can still be aborted (ctrl-c for options)
\ 10% complete: The operation can still be aborted (ctrl-c for options)
When the install activate command is run in asynchronous mode, the system may stay in synchronous mode for a short period of time while the system
checks for questions to ask the user.
Press Ctrl-C during a synchronous operation to abort the operation or make the operation asynchronous.
Auto-abort Option
Use the auto-abort-timer keyword to provide a safety mechanism for the instance that a package is activated and access to the router is lost. This
option automatically rolls back to the current committed loadpath, thereby undoing any changes that are activated with the
install activate command. After the installation, if the activated software is working correctly, use the install commit command to cancel the timer and commit the new loadpath.
Note
|
The changes made to the active software set are not persistent during route processor (RP) reloads. Use the install commit command to make changes persistent.
|
ISSU
Note the following prerequisites before activating software packages using ISSU:
Note the following restrictions regarding ISSU:
Task ID
Task ID
|
Operations
|
root-system
|
execute
|
cisco-support
|
execute
|
root-lr
|
execute
|
Examples
The following example shows how to activate a package that was installed in an
install add
operation that was assigned install operation id 2: Router# install activate id 2
Install operation 3 '(admin) install activate id 2' started by user 'lab' via
CLI at 01:10:21 UTC Thu Jan 03 2010.
Info: This operation will activate the following package:
Info: disk0:-mcast-p-4.0.0
Info: Install Method: Parallel Process Restart
The install operation will continue asynchronously.
Info: The changes made to software configurations will not be persistent
Info: across system reloads. Use the command '(admin) install commit' to
Info: make changes persistent.
Info: Please verify that the system is consistent following the software
Info: change using the following commands:
Info: show system verify
Info: install verify packages
Install operation 3 completed successfully at 01:11:30 UTC Thu Jan 03 2008.
The following example shows how to activate a package on all nodes. Use the install commit command to make the changes persistent across DSDRSC reloads. Router# install activate disk0:-mpls-4.0.0 synchronous
Install operation 15 'install activate disk0:-mpls-p-4.0.0 synchronous'
started by user 'user_b' at 19:15:33 UTC Sat Apr 08 2010.
Info: The changes made to software configurations will not be persistent
Info: across system reloads. Use the command 'admin install commit' to make
Info: changes persistent.
Info: Please verify that the system is consistent following the software
Info: change using the following commands:
Info: show system verify
Info: install verify
Install operation 15 completed successfully at 19:16:18 UTC Sat Apr 08 2010.
Router# install commit
Install operation 16 'install commit' started by user 'user_b' at 19:18:58 UTC
Sat Apr 08 2006.
Install operation 16 completed successfully at 19:19:01 UTC Sat Apr 08 2010.
The following example shows how to activate multiple software packages using the wildcard syntax:
Router# install activate disk0:*4.0*
Install operation 2 '(admin) install activate disk0:*4.0*' started
by user 'user_a' via CLI at 04:30:01 PST Fri Dec 28 2009.
Info: This operation will activate the following packages:
Info: disk0:asr9k-fwdg-4.0.0
Info: disk0:asr9k-admin-4.0.0
Info: disk0:asr9k-fpd-4.0.0
Info: disk0:asr9k-diags-4.0.0
Info: disk0:asr9k-mgbl-4.0.0
Info: disk0:asr9k-mpls-4.0.0
Info: disk0:asr9k-mcast-4.0.0
Info: disk0:asr9k-k9sec-4.0.0
Warning: The following packages are already active on the specified nodes:
Warning: asr9k-admin-4.0.0
Warning: asr9k-fwdg-4.0.0
Warning: Please check:
Warning: - check the name of the packages being activated.
Warning: - check the set of active packages using 'show install active'.
Info: Install Method: Parallel Process Restart
Info: The changes made to software configurations will not be
persistent across system reloads. Use the command '(admin)
Info: install commit' to make changes persistent.
Info: Please verify that the system is consistent following the
software change using the following commands:
Info: show system verify
Info: install verify packages
Install operation 2 completed successfully at 04:32:01 PST Fri Dec 28 2009.