This article provides instructions for installing the Junos OS software on an EX switch by copying the software package locally to an EX switch (using FTP or USB).
This method is commonly used if the choice is to not install Junos OS from a TFTP or an FTP server.
Notes:
% 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.
Basic instructions for installing Junos OS on an EX switch are covered in Install Junos on EX Switch via CLI.
Use the following examples for installing the Junos OS software on an EX switch by copying the software package locally to an EX switch (using FTP or USB):
Junos Installation Steps - Using an FTP server to copy the Junos OS software package to the EX switch
-
From the PC where you downloaded the Junos OS software package (in KB20313 - [Upgrade EX Switch] Stage 1 - Download Software), launch the FTP application and connect to the EX switch. Typically, you will be connected to the root
directory of the EX switch (as highlighted in red below):
-
Change the root
directory to the /var/tmp/
directory. Then copy (transfer) the desired Junos OS software package to the /var/tmp/
directory of the EX switch by clicking Upload.
Now perform the following steps:
- Install Junos OS on the EX switch via the Command Line Interface (CLI) prompt.
For Standalone device:
root@EX-4200:RE:0% cli
root@EX-4200> request system software add /var/tmp/jinstall-ex-4200-15.1R7-S6.3-domestic-signed.tgz
For 8200 Series:
% cli
> request system software add /var/tmp/jinstall-ex-8200-15.1R7-S7.1-domestic-signed.tgz re0
> request system software add /var/tmp/jinstall-ex-8200-15.1R7-S7.1-domestic-signed.tgz re1
For Virtual Chassis:
% cli
> request system software add /var/tmp/jinstall-ex-4200-15.1R7-S6.3-domestic-signed.tgz member 1
-
Reboot the EX switch:
For Standalone device:
root@EX-4200> request system reboot
Reboot the system? [yes, no] (no) YES
For 8200 Series:
run request system reboot other-routing-engine - For 8200 series when rebooting/upgrading Backup
Reboot the system? [yes, no] (no) YES
For Virtual Chassis:
root@EX-4200> request system reboot all member
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 Boot-up for troubleshooting upgrade failures.
Junos Installation Steps - Using a USB to copy the Junos OS software package to the EX switch
-
Format the USB Drive 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 to the USB. (It is recommended to 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-4200> start shell
root@EX-4200:RE:0%
Now perform the following steps:
- Mount the USB:
root@EX-4200:RE:0% mount_msdosfs /dev/da1s1 /mnt
- Copy the Junos OS software package from the USB to the
/var/tmp
directory of the EX switch:
root@EX-4200:RE:0% cd /mnt
root@EX-4200:RE:0% ls
root@EX-4200:RE:0% jinstall-ex-4200-15.1R7-S6.3-domestic-signed.tgz
root@EX-4200:RE:0% cp jinstall-ex-4200-15.1R7-S6.3-domestic-signed.tgz /var/tmp
Check whether the Junos OS software package is copied to the /var/tmp
directory of the EX switch:
root@EX-4200:RE:0% cd /var/tmp
root@EX-4200:RE:0% ls
root@EX-4200:RE:0% jinstall-ex-4200-15.1R7-S6.3-domestic-signed.tgz
Note: If you need to verify the MD5 checksum of the Junos OS software package on the EX switch, refer to KB19931 - [Junos] Using the MD5 checksum to verify that the integrity of the Junos OS been pushed into the Juniper device.
- Install Junos OS on the EX switch via the Command Line Interface (CLI) prompt:
For Standalone devices:
root@EX-4200:RE:0% cli
root@EX-4200> request system software add /var/tmp/jinstall-ex-4200-15.1R7-S6.3-domestic-signed.tgz
For 8200 Series:
% cli
> request system software add /var/tmp/jinstall-ex-8200-15.1R7-S7.1-domestic-signed.tgz re0
> request system software add /var/tmp/jinstall-ex-8200-15.1R7-S7.1-domestic-signed.tgz re1
For Virtual Chassis:
& cli
> request system software add /var/tmp/jinstall-ex-4200-15.1R7-S6.3-domestic-signed.tgz member 1
- Reboot the EX switch:
For Standalone devices:
root@EX-4200> request system reboot
For Virtual Chassis:
root@EX-4200> request system reboot all member
For 8200 Series when rebooting/upgrading backup:
run request system reboot other-routing-engine -
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 installation, go to KB20464 - [Upgrade EX switch] Stage 4 – Troubleshoot upgrade failure/crash – System stuck on Boot-up 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.