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>
Syntax (TX Matrix Router)
request system software rollback <lcc number | scc> <reboot>
Syntax (TX Matrix Plus Router)
request system software rollback <lcc number | sfc number> <reboot>
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 M Series and T Series routers, if
request system software add jinstall reboot
was used for the previous installation, thenrequest system software rollback
has no effect. In this case, usejinstall
to reinstall the required package. -
On M Series and T Series routers, if
request system software add sdk1
was used for the previous installation, thenrequest system software rollback
removes the last installed SDK package (sdk1
in this example). -
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. -
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. |
lcc number |
(TX Matrix routers and TX Matrix Plus routers only) (Optional) On a TX Matrix router, attempt to roll back to the previous set of packages on a T640 router connected to the TX Matrix router. On a TX Matrix Plus router, attempt to roll back to the previous set of packages on a connected router connected to the TX Matrix Plus router. Replace number with the following values depending on the LCC configuration:
|
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 |
For all versions of Junos OS up to and including Junos OS 11.4, revert to
the set of software as of the last successful |
reboot |
(Optional) For Junos OS 12.3 and later, the system reboots automatically
to complete the rollback. However, for Junos OS Evolved, you must
explicitly specify the |
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. |
scc |
(TX Matrix routers only) (Optional) Attempt to roll back to the previous set of packages on the TX Matrix router (or switch-card chassis). |
sfc number |
(TX Matrix Plus routers only) (Optional) Attempt to roll back to the previous set of packages on the TX Matrix Plus router. Replace number with 0. |
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.
sfc
option introduced in Junos OS Release 9.6 for the TX Matrix Plus
router.
Command behavior changed in Junos OS Release 12.1.
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+.