Upgrading Software Packages


Normally, you use the bundle to upgrade all the software packages at the same time. They can also be upgraded individually. When upgrading to a new release, use the bundle; do not upgrade the packages individually.

To determine which packages are running on the router and to get information about these packages, use the show version command at the top level of the CLI.

To upgrade all software packages:

  1. Download the software packages you need from the Juniper Networks Support Web site (http://www.juniper.net/support/).

    To download the software packages, you must have a service contract and an access account. If you need help obtaining an account, contact your Juniper Networks sales representative or go to http://www.juniper.net/pwassistance.htm.

  2. Back up the currently running and active file system so that it can be recovered to a known, stable environment in case something goes wrong with the upgrade:

     user@host>  request system snapshot  

    CAUTION

    Juniper Networks recommends upgrading all software packages out of band using the console or fxp0 interface, because inband connections can be lost during the upgrade process.

    The root file system is backed up to /altroot , and /config is backed up to /altconfig . The root and /config file systems are on the router's flash drive, and the /altroot and /altconfig file systems are on the router's hard drive.

    After the request system snapshot command is issued, the previous version of the software cannot be recovered, because the running and backup copies of the software are identical.

  3. Copy each software package to the router. Juniper Networks recommends copying them to the /var/tmp directory, a large file system on the rotating medium (hard disk):

     user@host>  file copy ftp:  //  username:   prompt@ftp.   hostname.   net  /  filename   /var/tmp/   filename  
  4. Delete the existing software packages and add the new ones:

     user@host>  request system software add /var/tmp/   jbundle-   package-name  Installing package '/var/tmp/jbundle-  package-name  ' ... Auto-deleting old jroute... Auto-deleting old jdocs... Auto-deleting old jpfe... Auto-deleting old jkernel... Adding JUNOS base software  release-number  ... 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/jbundle-  package-   name  ... 

    package-name is the full URL to the file. release-number is the major software release number; for example, 5.4R1.

  5. Reboot the router to start the new software:

     user@host>  request system reboot  
  6. After the new software version is successfully running, issue the request system snapshot command to back up the new software:

     user@host>  request system snapshot  

    The root file system is backed up to /altroot , and /config is backed up to /altconfig . The root and /config file systems are on the router's flash drive, and the /altroot and /altconfig file systems are on the router's hard drive.

Upgrading Individual Software Packages

To upgrade an individual JUNOS software package:
  1. Download the necessary software packages from the Juniper Networks Support Web site, http://www.juniper.net/support/.

    A service contract and an access account are required to download the software. Customers can create an account by completing a registration form on the Juniper Networks Web site at https ://www.juniper.net/registration/Register.jsp, or by calling Juniper Networks support at 1-888-314-JTAC (from within the United States); 1-408-745-2121 (from outside the United States).

    CAUTION

    Juniper Networks recommends upgrading all individual software packages out of band using the console or fxp0 interface, because inband connections can be lost during the upgrade process.

  2. Back up the currently running and active file system so that it can be recovered in case something goes wrong with the upgrade:

     user@host>  request system snapshot  

    The root file system is backed up to /altroot , and /config is backed up to /altconfig . The root and /config file systems are on the router's flash drive, and the /altroot and /altconfig file systems are on the router's hard drive.

  3. Copy each software package to the router. Juniper Networks recommends copying them to the /var/tmp directory, which is on the rotating media (hard disk) and is a large file system.

     user@host>  file copy ftp:  //  username:   prompt@ftp.   hostname.   net  /  filename   /var/tmp/   filename  
  4. Delete the old package and add the new package:

     user@host>  request system software add /var/tmp/   package-name  Checking available free disk space...11200k available, 6076k suggested. 

    package-name is the full URL to the file.

    The system might display the following message:

     pkg_delete: couldn't entirely delete package 

    This message indicates that someone manually deleted or changed an item that was in a package. No action is required; the package is still properly deleted.

    If more than one package is being upgraded at the same time, add jbase first and the routing software package jroute last. If all packages are being upgraded at once using this procedure, add them in the following order:

     user@host>  request system software add /var/tmp/   jbase  user@host>  request system software add /var/tmp/   jkernel  user@host>  request system software add /var/tmp/jpfe  user@host>  request system software add /var/tmp/   jdocs  user@host>  request system software add /var/tmp/   jroute  user@host>  request system software add /var/tmp/   jcrypto  
  5. Reboot the router to start the new software:

     user@host>  request system reboot  
  6. After the software has been upgraded or downgraded and is successfully running, issue the request system snapshot command to back up the new software:

     user@host>  request system snapshot  

    The root file system is backed up to /altroot , and /config is backed up to /altconfig . The root and /config file systems are on the router's flash drive, and the /altroot and /altconfig file systems are on the router's hard drive.



Juniper Networks Field Guide and Reference
Juniper Networks Field Guide and Reference
ISBN: 0321122445
EAN: 2147483647
Year: 2002
Pages: 185

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net