Related Documentation
- EX Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- J Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- M Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- MX Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- PTX Series
- request system software abort
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- QFX Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- SRX Series
- request system software add
- request system software delete
- request system software validate
- T Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
request system software rollback
Syntax
Syntax (EX Series Switches)
Syntax (TX Matrix Router)
Syntax (TX Matrix Plus Router)
Syntax (MX Series Router)
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Option sfc introduced for the TX Matrix Plus router in Junos OS Release 9.6.
Command introduced in Junos OS Release 11.1 for the QFX Series.
Command behavior changed in Junos OS Release 12.1.
Description
For all versions of Junos OS up to and including Junos OS 11.4, revert to the software that was loaded at the last successful request system software add command.
As of Junos OS 12.1 and greater, revert to the last known good state before the most recent request system software (add | delete) command. For example, using rollback in Junos OS 12.1 after using request system software add restores the system to a known good state prior to using the add command. Similarly, using rollback in Junos OS 12.1 after using request system software delete restores the system to a known good state prior to using the delete command.
Options
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 request system software add. As of Junos OS 12.1 and greater, revert to the last known good state before the most recent request system software (add | delete) command. |
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. |
lcc number | — | (TX Matrix 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 (or line-card chassis) connected to the TX Matrix router. On a TX Matrix Plus router, attempt to roll back to the previous set of packages on a T1600 router (or line-card chassis) connected to the TX Matrix Plus router. Replace number with a value from 0 through 3. |
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 member-id with a value from 0 through 9. For an MX Series Virtual Chassis, replace member-id with a value of 0 or 1. |
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 (or switch-fabric chassis). Replace number with 0. |
Additional Information
On the J Series router, you can use this command to roll back to a previous software package when the current upgrade has been successful or has failed. On M Series and T Series routers, use this command only to recover from a failed software upgrade—you cannot issue this command to return to the previously installed software after using a jinstall package. To return to the previously installed software, use the corresponding jinstall package.
A software rollback fails if any required package (or a jbundle package containing the required package) cannot be found in /var/sw/pkg.
Required Privilege Level
maintenance
Related Documentation
- EX Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- J Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- M Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- MX Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- PTX Series
- request system software abort
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- QFX Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
- SRX Series
- request system software add
- request system software delete
- request system software validate
- T Series
- request system software abort
- request system software add
- request system software delete
- request system software validate
- request system configuration rescue delete
- request system configuration rescue save
List of Sample Output
request system software rollbackOutput 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