Upgrade Junos OS

Purpose

As new features become available or as software problems are fixed, you might periodically upgrade the router software.

To upgrade Junos OS, follow these steps:

  1. Copy Junos OS to the Router
  2. Add New Software
  3. Start the New Software

Copy Junos OS to the Router

Action

Copy the software packages from the server to the router. We recommend that you copy them to the /var/tmp directory, which is on the rotating medium (hard disk) and is a large file system. Use the following CLI command:

user@host> file copy ftp://username: prompt@ftp.hostname. net/jinstall-package-name/var/tmp/jinstall-package-name

Add New Software

Action

To add new software packages, use the following Junos OS CLI operational mode command:

user@host> request system software add /var/tmp/jinstall-package--name

package-name is the full URL to the file and release-number is the major software release number; for example, 4.2R1. Before the new software is added, the existing software is automatically deleted.

Note: Even though you are adding the new software, the changes do not take effect until the router has completed rebooting.

Sample Output

user@host> request system software add /var/tmp/jinstall-5.2R2.3-domestic.tgz
Installing package '/var/tmp/jinstall-5.2R2.3-domestic.tgz
Auto-deleting old jroute...
Auto-deleting old jdocs...
Auto-deleting old jpfe...
Auto-deleting old jkernel...
Adding JUNOS base software 5.2R2.3
Adding jkernel...
Adding jpfe...
Adding jdocs...
Adding jroute...
NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install
Saving package file in /var/sw/pkg/jinstall-5.2R2.3-domestic.tgz

Start the New Software

Purpose

After you have added new software packages, you must reboot the router for the new software to take effect.

Action

To reboot the router to complete the upgrade, use the following Junos OS CLI operational mode command:

user@host> request system reboot