Juniper Software Upgrade

This article is about how to upgrade software in Juniper devices using CLI and how to upgrade firmware on multiple devices simultaneously in NCM application using configlets

If you don't have NCM installed, please click here to download and install the application.

Steps to upgrade software in Juniper devices using CLI

  1. Login to device using SSH / TELNET
  2. Use below command to install the software package
  3. Switch>request system software add package-name

  4. Use below command to reboot the device
  5. Switch>request system reboot

The corresponding configlet can be created in NCM application as shown in below screenshot.

 

Configlet NameJuniper Software Upgrade 
Description

This configlet is used to upgrade software in juniper devices using request system software add 'package name' command.The software package should be available in the device

Execution ModeProgrammable Configlet Mode
Configlet Content

  $device.execute("request system software add $package-name")
             #set ($result = $device.execute("request system reboot","down|)"))
             #if($result.toString().contains("yes,no"))
               $device.execute("yes")
             #end

 

Thank you for your feedback!

Was this content helpful?

We are sorry. Help us improve this page.

How can we improve this page?
Do you need assistance with this topic?
By clicking "Submit", you agree to processing of personal data according to the Privacy Policy.