Reinstalling the Software Using jinstall
If the JUNOS system 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 information from the previous version. Additionally, you cannot issue therequest system software rollbackcommand to return to the previously installed software after using ajinstallpackage. To return to the previously installed software, use thejinstallpackage for the release you want to return to.
NOTE: We recommend that you reinstall software packages out-of-band using the console because in-band connections can be lost during the installation process.
The installation process removes stored files (except
juniper.confandSSHfiles) on the router, such as configuration templates and shell scripts. To preserve these files, copy them to another system before upgrading or downgrading the software.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 the U.S. and Canada Version or the 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.
- 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 disk, 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 copy, and backup copy of the software are identical.
- Copy the
jinstallpackage to the/var/tmpdirectory on the hard disk.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-8.x-package-name-signed.tgzInstalling package'/var/tmp/jinstall-8.x-package-name-signed.tgz...Verified jinstall-8.x-package-name-signed.tgz signed by PackageDevelopment_0 Adding jinstall...WARNING: This package will load JUNOS8.xsoftware.WARNING: It will save JUNOS configuration files, and SSH keysWARNING: (if configured), but erase all other files and informationWARNING: stored on this machine. It will attempt to preserve dumpsWARNING: and log files, but this can not be guaranteed. This is theWARNING: pre-installation stage and all the software is loaded whenWARNING: you reboot the system.Saving the config files...Installing the bootstrap installer...WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. WARNING: Use the 'request system reboot' command when software installationWARNING: is 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-8.x-package-name-signed.tgz...Saving state for rollback...- If desired, add the optional
jwebpackage. For more information, see The J-Web Package.- Reboot the router to load the JUNOS software:
user@host> request system rebootReboot the system? [yes,no] (no) yesShutdown NOW!Reboot consistency check bypassed - jinstall 8.xR1.12 will complete installation upon reboot*** FINAL System shutdown message from user@host-re0 ***System going down IMMEDIATELYAll the software is loaded when you reboot the system. Installation can take between 5 and 10 minutes. The router then reboots from the 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 disk, 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 copy, and backup copy of the software are identical.