Installing Software on an EX 8200 series Switch with Redundant Routing Engines (CLI Procedure)
For an EX 8200 series switch with redundant Routing Engines, you can minimize disrupting network operation during a JUNOS software upgrade by upgrading the Routing Engines separately, starting with the backup Routing Engine.
To upgrade the software package on an EX 8200 series switch with one installed Routing Engine, see Installing Software on an EX-series Switch with a Single Routing Engine (CLI Procedure).
Install the new JUNOS software release on the backup Routing Engine while keeping the currently running software version on the master Routing Engine. After making sure that the new software version is running correctly on the backup Routing Engine, switch device control to the backup Routing Engine. Finally, install the new software on the new backup Routing Engine.
To upgrade the JUNOS software on the switch, perform the following tasks:
- Preparing the Switch for the Software Installation
- Installing Software on the Backup Routing Engine
- Installing Software on the Default Master Routing Engine
- Returning Routing Control to the Default Master Routing Engine (Optional)
Preparing the Switch for the Software Installation
Perform the following steps before installing the software:
- Log in to the master Routing Engine’s console.
For information on logging in to the Routing Engine through the console port, see Connecting and Configuring an EX-series Switch (CLI Procedure).
- Enter the JUNOS software CLI configuration mode:
- You will see:
- You will see:
- Disable GRES (graceful Routing Engine switchover):
- Save the configuration change on both Routing Engines:

Note: To ensure the most recent configuration changes are committed before the software upgrade, perform this step even if GRES was previously disabled.
- (Optional) Back up the current software configuration to a second storage option. See the JUNOS Software Installation and Upgrade Guide at https://www.juniper.net/techpubs/software/junos/junos95/index.html for instructions on performing this task.
Installing Software on the Backup Routing Engine
Once the EX 8200 series switch is ready, you first install the software on the backup Routing Engine. This enables the master Routing Engine to continue operations, minimizing the disruption to your network.
- Download the software by following the procedures in Downloading Software Packages from Juniper Networks.
- Copy the software package to the switch. We recommend that you use FTP to copy the file to the /var/tmp directory.
- Log in to the backup Routing Engine’s console.
-
where package-name-m.nZx-distribution.tgz is, for example, jinstall-ex-8200–9.5R1.5–domestic-signed.tgz.
Install the new software package:
user@switch> request system software add validate /var/tmp/package-name-m.nZx-distribution.tgz
For more information on the request system software add command, see the JUNOS Software System Basics and Services Command Reference at https://www.juniper.net/techpubs/software/junos/junos95/index.html.

Note: To abort the installation, do not reboot your device; instead, finish the installation and then issue the request system software delete package-name-m.nZx-distribution.tgz command, where package-name-m.nZx-distribution.tgz is, for example, jinstall-ex-4200–9.4R1.5–domestic-signed.tgz. This is your last chance to stop the installation.
-
Reboot to start the new software:
user@switch> request system reboot
Reboot the system? [yes, no] (no) yes
Note: You must reboot the switch to load the new installation of the JUNOS software.
- After the reboot has completed, log in and verify the new version of the software is properly installed:
Installing Software on the Default Master Routing Engine
To switch device control to the backup Routing Engine and then upgrade or downgrade the master Routing Engine software:
- Log in to the master Routing Engine console port.
-
Transfer device control to the backup Routing Engine:
user@switch> request chassis routing-engine master switch

Note: Because GRES is disabled, this switchover causes all line cards in the switch to reload. All network traffic passing through these line cards is lost during the line card reloads.
- Verify that the default backup Routing Engine (shown as
slot 1 in the command output) is now the master Routing Engine:
You will see:
- When the reboot completes, the prompt will reappear. Wait for this prompt to reappear before proceeding to the next step.
- Log in to the default backup Routing Engine (slot 1) through the console port.
- Re-enable GRES:
Re-enabling GRES allows any future Routing Engine switchovers to occur without the loss of any network traffic.
- Enter the commit synchronize command to save the configuration change:
- Log in and verify the version of the software installed.
If you want to return routing control to the Routing Engine that was the master Routing Engine at the beginning of the procedure (the default master Routing Engine), perform the next task.
Returning Routing Control to the Default Master Routing Engine (Optional)
The switch can maintain normal operations with the Routing Engine in slot 1 acting as the master Routing Engine after the software upgrade, so only perform this task if you want to return routing control to the default master Routing Engine in slot 0.
- Verify that the default master Routing Engine (slot 0)
is indeed the master Routing Engine:
You will see:
