request system software rollback (Junos OS)
Syntax
request system software rollback
Syntax (EX Series Switches)
request system software rollback <all-members> <local> <member member-id> <reboot>
Syntax (MX Series Router)
request system software rollback <all-members> <device-alias alias-name> <local> <member member-id <reboot> <satellite slot-id> <upgrade-group [all |upgrade-group-name]>
Syntax (SRX Series Firewalls)
request system software rollback <node-id>
Description
Use this command to revert to the last successfully installed package before the
request system software (add | delete)
command. It uses the
copy stored in the /var/sw/pkg directory.
Additional Information
-
On Junos Fusion, the
request system software rollback
command can be used to roll back the version of satellite software associated with a satellite software upgrade group. Rolling back the version of satellite software associated with a satellite software upgrade group triggers a satellite software upgrade. -
On SRX Series Firewalls with dual root systems, when
request system software rollback
is run, the system switches to the alternate root. Each root can have a different version of Junos OS. Roll back takes each root back to the previously installed image. -
For SRX300, SRX320, SRX340, SRX345, and SRX380 firewalls, you cannot use the
request system rollback
command to roll back from Junos OS Release 24.4R1 to either Junos OS Release 23.4R2-S3 or to Release 24.2R2. Instead, you must treat the rollback as a downgrade, and use therequest system software add package-name no-validate reboot
command instead. -
On QFX3500 and QFX3600 devices in a mixed Virtual Chassis, when the
request system software rollback
command is issued, the system does not rollback to the image stored in the alternate partition. -
On QFX5100 switches, the
reboot
option has been removed. To reboot the switch after a software rollback, issue therequest system reboot
command as a separate, secondary command.
Options
all-members |
(EX4200 switches and MX Series routers only) (Optional) Attempt to roll back to the previous set of packages on all members of the Virtual Chassis configuration. |
device-alias alias-name |
(Junos Fusion only) (Optional) Rollback the satellite software package onto the specified satellite device using the satellite devices FPC slot identifier. |
local |
(EX4200 switches and MX Series routers only) (Optional) Attempt to roll back to the previous set of packages on the local Virtual Chassis member. |
member member-id |
(EX4200 switches and MX Series routers only) (Optional) Attempt to roll
back to the previous set of packages on the specified member of the
Virtual Chassis configuration. For EX4200 switches, replace
|
node-id | (SRX Series Firewalls only) Identification number of the chassis cluster node. It can be 0 or 1. |
none |
Revert
to the last known good state before the most recent |
reboot |
(Optional) The system reboots automatically to complete the rollback. |
satellite slot-id |
(Junos Fusion only) (Optional) Roll back the satellite software package onto the specified satellite device using the satellite devices FPC slot identifier. |
upgrade-group [ all |upgrade-group-name] |
(Junos Fusion only) Roll back the satellite software image associated
with the specified satellite software upgrade group, or for all
satellite software upgrade groups in the Junos Fusion when
|
Required Privilege Level
maintenance
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
request system software rollback
user@host> request system software rollback Verified SHA1 checksum of ./jbase-7.2R1.7.tgz Verified SHA1 checksum of ./jdocs-7.2R1.7.tgz Verified SHA1 checksum of ./jroute-7.2R1.7.tgz Installing package './jbase-7.2R1.7.tgz' ... Available space: 35495 require: 7335 Installing package './jdocs-7.2R1.7.tgz' ... Available space: 35339 require: 3497 Installing package './jroute-7.2R1.7.tgz' ... Available space: 35238 require: 6976 NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install Reloading /config/juniper.conf.gz ... Activating /config/juniper.conf.gz ... mgd: commit complete Restarting mgd ... Restarting aprobed ... Restarting apsd ... Restarting cosd ... Restarting fsad ... Restarting fud ... Restarting gcdrd ... Restarting ilmid ... Restarting irsd ... Restarting l2tpd ... Restarting mib2d ... Restarting nasd ... Restarting pppoed ... Restarting rdd ... Restarting rmopd ... Restarting rtspd ... Restarting sampled ... Restarting serviced ... Restarting snmpd ... Restarting spd ... Restarting vrrpd ... WARNING: cli has been replaced by an updated version: CLI release 7.2R1.7 built by builder on 2005-04-22 02:03:44 UTC Restart cli using the new version ? [yes,no] (yes) yes Restarting cli ... user@host
Release Information
Command introduced before Junos OS Release 7.4.
reboot
option introduced in Junos OS Release 12.3.
device-alias
, satellite
, and
upgrade-group
options introduced in Junos OS Release 14.2R3 for
Junos Fusion.
force
option deprecated in Junos OS Release 15.1 for Junos OS with
Upgraded FreeBSD.
To find which platforms in which releases use Junos OS with upgraded FreeBSD, see Feature Explorer, enter freebsd, and select Junos kernel upgrade to FreeBSD 10+.