request system software rollback (Junos OS Evolved)
Syntax
request system software rollback reboot <no-validate> <package-name version> <with-old-snapshot-config>
Description
Use this command to revert to the last successfully installed package before the
last-issued request system software (add | delete)
command. By
default, once the software is rolled back, the device uses the current configuration file.
You can use this command on either Routing Engine in a dual-Routing Engine system.
On Junos OS Evolved, the reboot option is required in order to complete
the rollback.
Options
| package-name version |
Select any installed version for the rollback. The |
| no-validate |
Do not check compatibility with the current configuration. Default: validate |
| reboot |
(Optional) Reboot to complete the rollback. If you do not specify the
|
| with-old-snapshot-config |
(Optional) Rolls back the system to the specified version with the old snapshot of the configuration used in that version. Otherwise, the rollback, by default, takes the current configuration. |
Required Privilege Level
maintenance
Output Fields
When you enter this command, the system provides feedback on the status of your request.
Sample Output
request system software rollback with-old-snapshot-config
user@host> request system software rollback junos-evo-install-ptx-x86-64-20.4-202103141559.0 with-old-snapshot-config
Starting software rollback to version junos-evo-install-ptx-x86-64-20.4-202103141559.0-EVO Software rollback in progress... re0: Boot version is now 'junos-evo-install-ptx-x86-64-20.4-202103141559.0-EVO' re0: Rollback Done. Next Boot version is now 'junos-evo-install-ptx-x86-64-20.4-202103141559.0-EVO'. Must reboot now to activate. re0: Syncing nodes re1: Boot version is now 'junos-evo-install-ptx-x86-64-20.4-202103141559.0-EVO' re0: All nodes synced Software rollback succeeded. NOTICE: 'pending' rollback version will be activated at next reboot...
request system software rollback reboot
user@host> request system software rollback reboot
Starting software rollback to default rollback version
Software rollback in progress...
re0: Validating current config for rollback version junos-evo-install-ptx-x86-64-20.4-202103151929.0-EVO
re0: Validating existing configs. See /var/log/validation_config.log for config validation logs.
re0: Validation Passed
re0: Validation passed for version junos-evo-install-ptx-x86-64-20.4-202103151929.0-EVO
re0: Copying current config to rollback version
re0: Boot version is now 'junos-evo-install-ptx-x86-64-20.4-202103151929.0-EVO'
re0: Rollback Done. Next Boot version is now 'junos-evo-install-ptx-x86-64-20.4-202103151929.0-EVO'. Must reboot now to activate.
re0: Syncing nodes
re1: Config fetch successful
re1: Res Config fetch successful
re1: Boot version is now 'junos-evo-install-ptx-x86-64-20.4-202103151929.0-EVO'
re0: All nodes synced
Software rollback succeeded.
Rebooting...
{master}
user@host-re0>
System going down IMMEDIATELY
Software rollback in reboot mode succeeded. Rebooting
Connection to host closed by remote host.
Connection to host closed.Release Information
validate and no-validate options introduced for Junos OS
Evolved Release 18.3R1.
package-name version option introduced for Junos OS
Evolved Release 18.3R1.
with-old-snapshot-config option introduced for Junos OS Evolved Release
18.3R1.