Reinstall Software Using jinstall
If the software becomes damaged, you might want to reinstall it using
jinstall. Thejinstallpackage completely reinstalls the software. This package rebuilds the JUNOS file system only, but retains configuration, log files, and similar information from the previous version.To completely reinstall the software using
jinstall, follow these steps:
- Download the software packages you need from the Juniper Networks Support Web site,
http://www.juniper.net/support/. Choose either Canada and U.S. Version or Worldwide Version.To download the software packages, you must have a service contract and an access account. If you need help obtaining an account, complete the registration form at the Juniper Networks Web site,
https://www.juniper.net/registration/Register.jsp.
NOTE: We recommend that you upgrade and downgrade software packages out-of-band using the console because in-band connections can be lost during the downgrade or upgrade process.
- Back up the currently running and active file system so that you can recover to a known, stable environment in case something goes wrong with the upgrade:
user@host> request system snapshotThe root file system is backed up to
/altroot, and/configis backed up to/altconfig. The root and/configfile systems are on the router's flash drive, and the/altrootand/altconfigfile systems are on the router's hard disk.
NOTE: After you issue this command, you cannot return to the previous version of the software, because the running and backup copies of the software are identical.
- Copy the
jinstallpackage to the router. You might want to copy them to the/var/tmpdirectory, 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- Add the
jinstallpackage:user@host> request system software add /var/tmp/ jinstall-package-nameNotice: Validating Configuration against jinstall-package-nameChecking compatibility with configurationInitializing...Using jbase-6.3-package-nameUsing /var/tmp/jinstall-6.3-package-nameVerified MD5 checksum of/var/validate/tmp/jinstall/jinstall-6.3package-nameUsing/var/validate/tmp/jinstall-signed/jinstall-6.3-package-nameUsing /var/validate/tmp/jinstall/jbundle-6.3-package-nameUsing /var/validate/tmp/jbundle/jbase-6.3-package-nameUsing /var/validate/tmp/jbundle/jkernel-6.3-package-nameUsing /var/validate/tmp/jbundle/jcrypto-6.3-package-nameUsing /var/validate/tmp/jbundle/jpfe-6.3-package-nameUsing /var/validate/tmp/jbundle/jdocs-6.3-package-nameUsing /var/validate/tmp/jbundle/jroute-6.3-package-nameValidating against /config/juniper.confmgd: commit completeValidation succeededInstalling package'/var/tmp/jinstall-6.3-package-name' ...Verified MD5 checksum of jinstall-6.3-package-nameAuto-deleting old jinstall...Deleting saved config files ...Deleting bootstrap installer ...Adding jinstall...WARNING: This package will load JUNOS softwarerelease-number.WARNING: It will save JUNOS configuration files, log files, and SSH keysWARNING: (if configured), but erase all other files and informationWARNING: stored on this machine. This is the pre-installation stageWARNING: and all the software is loaded when you reboot the system.Saving the config files ...Installing the bootstrap installer ...WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use theWARNING: 'request system reboot' command when software installation isWARNING: 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 package file in /var/sw/pkg/ jinstall-package-name...Saving state for rollback ...- Reboot the router to load the JUNOS software:
root@host> request system rebootReboot the system ? [yes,no] (no) yesShutdown NOW!All the software is loaded when you reboot the system. Installation can take between 5 and 10 minutes. The router then reboots from the primary boot device on which the software was just installed. When the reboot is complete, the router displays the login prompt.
- Log in and verify the version of software running after the router reboots. Issue the
show log messageorshow versioncommand.- After you have upgraded or downgraded the software and are satisfied that the new software is successfully running, issue the
request system snapshotcommand to back up the new software.The
request system snapshotcommand causes the root file system to be backed up to/altroot, and/configto be backed up to/altconfig. The root and/configfile systems are on the router's flash drive, and the/altrootand/altconfigfile systems are on the router's hard disk.
NOTE: After you issue the
request system snapshotcommand, you cannot return to the previous version of the software, because the running and backup copies of the software are identical.