Updating JunOS from the Command Line

Updating JunOS from the Command Line

If you’re new to Juniper, you’ll find that the system update procedure is quite different to what you’re used to.

This guide will take you through each part, step-by-step.

 

  1. Get the new image file from Juniper
  2. Confirm the current version with show version
  3. Upload the file to the switch or router (using SCP, TFTP, USB, or whatever method you want); /var/tmp is a good location to copy to
  4. Add the new image with request system software add /var/tmp/[filename] reboot
    • This will reboot the device when the update has been applied

 

You may find that you don’t have enough space to install the update:

root@Switch01> request system software add /var/tmp/ex-2300-18.3R1.9.tgz reboot
ERROR: estimate of space required: 115 Mbytes, available: 89 Mbytes

 

If this happens, you can request a cleanup of temporary files to increase space.

Alternatively, you could try installing directly from USB:

  1. Enter the Shell
  2. Mount the USB drive
  3. Return to the CLI
  4. Install the update as above, using the mount point as the path

 

 

 

Leave a Reply