This article provides instructions for installing the Junos OS software on an EX switch by copying the software package locally on the switch (using FTP or USB).
Using an FTP server to copy the Junos OS software package to the EX Switch
Using a USB to copy the Junos OS software package to the EX switch
This method is commonly used if the choice is to not install Junos OS from a TFTP or an FTP server.
Notes:
Junos OS can be installed on an EX switch over FTP, when the installation file is on an FTP server, without moving the file onto the switch. In this case, use the following command:
% request system software add ftp://NAME:PASS@<10.10.10.1>/<jinstall file.tgz> reboot
This will fetch the Junos OS software package from the PC with IP:10.10.10.1 with the username NAME and password PASS and install it after reboot of the chassis.
NAME
PASS
The basic instructions for installing Junos OS on an EX switch are covered in Installing Software on an EX Series Switch with a Virtual Chassis or Single Routing Engine (CLI Procedure) .
Use the following examples for installing the Junos OS software on the EX switch by copying the software package locally on the switch (using FTP or USB):
From the PC where you downloaded the Junos OS software package (in KB20313 - [Upgrade EX Switch] Stage 1 - Download Software [juniper.net] ), launch the FTP application and connect to the EX switch. Once there, navigate to the /var/tmp directory:
/var/tmp
Copy (transfer) the required Junos OS software package to the /var/tmp/ directory of the switch by clicking Upload or by using drag-and-drop.
/var/tmp/
Note: If you need to verify the MD5 checksum of the Junos OS software package on the EX switch, refer to KB17665 - [Junos] How to check MD5 checksum on a Junos installation package [juniper.net] .
Now perform the following steps:
Install Junos OS on the EX switch via the Command Line Interface (CLI) prompt.
For Standalone device:
root@EX:RE:0% cli root@EX> request system software add /var/tmp/junos-arm-32-21.1R1.11.tgz
For 8200/9200 Series devices with dual Routing Engines:
% cli > request system software add /var/tmp/junos-install-ex92xx-x86-64-21.2R1.10.tgz re0 > request system software add /var/tmp/junos-install-ex92xx-x86-64-21.2R1.10.tgz re1
For Virtual Chassis:
% cli > request system software add /var/tmp/junos-arm-32-21.1R1.11.tgz member 1
Reboot the EX switch:
root@EX> request system reboot Reboot the system? [yes, no] (no) YES
For 8200/9200 Series devices:
run request system reboot other-routing-engine - For 8200/9200 series when rebooting/upgrading Backup Reboot the system? [yes, no] (no) YES
root@EX> request system reboot all-members Reboot the system? [yes, no] (no) YES
After the reboot has completed, log in and verify that the new version of the software is properly installed:
user@switch> show version
If you encounter a problem during the installation, go to KB20464 - [Upgrade EX switch] Stage 4 – Troubleshoot upgrade failure/crash – System stuck on bootup [juniper.net] for troubleshooting upgrade failures.
Format the USB device to FAT-32.
Copy the Junos OS software package that you downloaded from the Juniper support site in KB20313 - [Upgrade EX Switch] Stage 1 - Download Software [juniper.net] to the USB. (It is recommended that you use a dedicated USB drive and copy only the Junos OS software package to it.)
On the EX switch, log in to shell mode:
{master:0} root@EX> start shell root@EX:RE:0%
{master:0}
root@EX> start shell root@EX:RE:0%
Mount the USB device. It will be generally located on da1s1. For more information, refer to KB12880 - [Junos] How to mount a USB drive on the EX/SRX/MX/QFX series platforms to import/export files [juniper.net] :
root@EX:RE:0% mount_msdosfs /dev/da1s1 /mnt
Copy the Junos OS software package from the USB device to the /var/tmp directory of the EX switch:
root@EX:RE:0% cd /mnt root@EX:RE:0% ls root@EX:RE:0% junos-arm-32-21.1R1.11.tgz root@EX:RE:0% cp junos-arm-32-21.1R1.11.tgz /var/tmp
Check whether the Junos OS software package has been copied to the /var/tmp directory of the EX switch:
root@EX:RE:0% cd /var/tmp root@EX:RE:0% ls root@EX:RE:0% junos-arm-32-21.1R1.11.tgz
Install Junos OS on the EX switch via the Command Line Interface (CLI) prompt:
For Standalone devices:
& cli > request system software add /var/tmp/junos-arm-32-21.1R1.11.tgz member 1
root@EX> request system reboot
root@EX> request system reboot all-members
For 8200/9200 Series devices when rebooting/upgrading backup:
run request system reboot other-routing-engine - Reboot the system? [yes, no] (no) YES
If you encounter a problem during installation, go to KB20464 - [Upgrade EX switch] Stage 4 – Troubleshoot upgrade failure/crash – System stuck on bootup [juniper.net] for troubleshooting upgrade failures.
Example session of the steps above:
2018-08-09: Article checked for accuracy and links updated to be current and valid. Notes are added and other minor modifications (non-technical) made
2019-06-07: Updated Step 2 reboot EX Switch instructions to include EX8200 and Virtual Chassis
2020-08-25: Updated outputs
2021-07-27: Updated outputs and added kb12880 [juniper.net] as reference
2021-11-26: Removed deprecated references