Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] Example - Installing Junos OS on an EX switch (where Junos OS is copied to the EX switch)

1

0

Article ID: KB20551 KB Last Updated: 19 Jun 2019Version: 4.0
Summary:

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.

 

Solution:

Note

% 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

  1. 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):

 
 
  1. 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.

 
 
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.
 

Now perform the following steps:

  1. 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-10.0S10.1-domestic-signed.tgz 

For 8200 Series: 

% cli
> request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz re0
> request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz re1

For Virtual Chassis:

% cli
> request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz member 1
  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
  1. 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

  1. Format the USB Drive to FAT-32.

  2. 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.)

  3. 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:

  1. Mount the USB:
root@EX-4200:RE:0% mount_msdosfs /dev/da1s1 /mnt
  1. 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-10.0S10.1-domestic-signed.tgz
root@EX-4200:RE:0% cp jinstall-ex-10.0S10.1-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-10.0S10.1-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.

  1. 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-10.0S10.1-domestic-signed.tgz

For 8200 Series:

% cli
> request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz re0
> request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz re1

For Virtual Chassis:

& cli
> request system software add /var/tmp/jinstall-ex-10.0S10.1-domestic-signed.tgz member 1
  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 
  1. 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:

 
 

 

Modification History:

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

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search