Support Support Downloads Knowledge Base Juniper Support Portal 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

[QFX] Upgrading a QFX5100 or QFX5110 Switch with a USB Device

1

0

Article ID: KB33551 KB Last Updated: 28 May 2020Version: 3.0
Summary:

This article describes the procedure to upgrade a standalone QFX5100 or QFX5110 switch by using a USB device. 

 

Solution:

Prerequisites

  • USB 2.0 (or later) Flash Drive formatted as FAT or MS-DOW

  • Latest Junos OS (9.6 or later) firmware for your device

 

Upgrade Steps

  1. Move the Junos OS firmware file to the root folder of the USB drive.

  2. Insert the USB into the USB port on the switch​ and console into the Juniper device. Then enter shell as root by typing start shell user root and enter the admin password for the switch.

{master:0}
labroot@QFX-1> start shell user root 
Password:
root@QFX-1:RE:0% ​
  1. Mount the USB device by typing the command mount_msdosfs /dev/da0s1 /mnt.

root@QFX-1:RE:0% mount_msdosfs /dev/da0s1 /mnt​ 

  1. Enter CLI on the Junos device by typing cli.

root@QFX-1:RE:0% cli
{master:0}
root@QFX-1> 
  1. Verify that the image is mounted to the correct directory by typing file list <dir name>.

{master:0}
root@QFX-1> file list /mnt/ 

/mnt/:
System Volume Information/
jinstall-host-qfx-5-17.2R2.8-signed.tgz*​ 
  1. Upgrade the switch by using the Junos OS image from the above directory by typing request system software add /<dir>/<junos image> force-host reboot.

Note: In QFX5100 and EX4600 switches, the Host OS is not upgraded automatically, so you must use the force-host option if you want the Junos OS and Host OS versions to be the same.

{master:0}
root@QFX-1> request system software add /mnt/jinstall-host-qfx-5-17.2R2.8-signed.tgz no-validate force-host reboot 
Verified jinstall-vjunos-17.2R2.8.tgz signed by JuniperSwitchingProduction_2015
Adding vjunos...
Saving contents of boot area prior to installation

WARNING:     This package will load JUNOS 17.2R2.8 software.
WARNING:     It will save JUNOS configuration files, and SSH keys
WARNING:     (if configured), but erase all other files and information
WARNING:     stored on this machine.  It will attempt to preserve dumps
WARNING:     and log files, but this can not be guaranteed.  This is the
WARNING:     pre-installation stage and all the software is loaded when
WARNING:     you reboot the system.

POST-INSTALL...
Saving the config files ...
NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install
Pushing installation package to host...
Upgrade Host OS to 17.2R2.8...
./jinstall-qfx-5-17.2R2.8.img.gz: OK
/boot/boot
Extracting image...
Host upgrade staging completed. Need reboot to complete upgrade installation.
WARNING: Changing next boot to SSD0
WARNING: Changing boot device enable from  0x3F to 0x3F
Install jinstall-vjunos completed

WARNING:     A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the
WARNING:     'request system reboot' command when software installation is
WARNING:     complete. To abort the installation, do not reboot your system,
WARNING:     instead use the 'request system software delete jinstall'
WARNING:     command as soon as this operation completes.

Saving state for rollback ...
Rebooting ...
shutdown: [pid 88753]
Shutdown NOW!​ 
  1. After the reboot, log back in and verify the new Junos OS version by typing the command show version.

{master:0}
labroot@QFX-1> show version 
fpc0:
--------------------------------------------------------------------------
Hostname: QFX-1
Model: qfx5100-48s-6q
Junos: 17.2R2.8
JUNOS Base OS boot [17.2R2.8]
JUNOS Base OS Software Suite [17.2R2.8]
JUNOS Crypto Software Suite [17.2R2.8]
JUNOS Crypto Software Suite [17.2R2.8]
JUNOS Online Documentation [17.2R2.8]
JUNOS Kernel Software Suite [17.2R2.8]
JUNOS Packet Forwarding Engine Support (qfx-ex-x86-32) [17.2R2.8]
JUNOS Routing Software Suite [17.2R2.8]
JUNOS jsd [i386-17.2R2.8-jet-1]
JUNOS SDN Software Suite [17.2R2.8]
JUNOS Enterprise Software Suite [17.2R2.8]
JUNOS Web Management Platform Package [17.2R2.8]
JUNOS py-base-i386 [17.2R2.8]
JUNOS py-extensions-i386 [17.2R2.8]
JUNOS Host Software [17.2R2.8]​

 

Modification History:
  • 2020-05-28: Added information about using the force-host option if you want the Junos OS and Host OS versions to be the same

  • 2019-11-15: Changed from mount_msdosfs /dev/da1s1 /mnt to mount_msdosfs /dev/da0s1 /mnt in step 3

 

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