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



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

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




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

labroot@QFX-1> start shell user root 
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
  1. Verify that the image is mounted to the correct directory by typing file list <dir name>.

root@QFX-1> file list /mnt/ 

System Volume Information/
  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.

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.

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

labroot@QFX-1> show version 
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