Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

request system software rollback (Junos OS Evolved)

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
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 request system software rollback operational mode command uses the version instead of the package-name. You can see the available versions by using the show system software list operational mode command. If you do not specify the version, the system rolls back to the default rollback version (the one with the '<' before it on the show system software list command output). You can specify any previous Junos OS Evolved release as long as it is neither the one that is currently running nor the rollback version.

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 reboot option, then when this command completes, you need to issue the request system reboot operational mode command to reboot the system to finish the rollback process.

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

content_copy zoom_out_map
user@host> request system software rollback junos-evo-install-ptx-x86-64-20.4-202103141559.0 with-old-snapshot-config
content_copy zoom_out_map
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

content_copy zoom_out_map
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.

footer-navigation