This topic describes troubleshooting issues with software installations on EX Series switches.
If Junos OS loads but the CLI is not working, or if the switch has no software installed, use this recovery installation procedure to install Junos OS.
If there is already a Junos OS image on the system, you can either install the new Junos OS package in a separate partition and have both Junos OS images remain on the system, or you can wipe the disk clean before the new installation proceeds.
If there is no Junos OS image on the system, follow the instructions in Booting an EX Series Switch Using a Software Package Stored on a USB Flash Drive to get an image on the system and boot the switch.
To perform a recovery installation:
After the message Loading /boot/defaults/loader.conf displays, you are prompted with:
Hit [Enter] to boot immediately, or space bar for command prompt.
where:
The boot process proceeds as normal and ends with a login prompt.
EX Series switches shipped with Junos OS Release 10.4R2 or earlier have Junos OS loaded on the system disk in partition 1. The first time you upgrade, the new software package is installed in partition 2. When you finish the installation and reboot, partition 2 becomes the active partition. Similarly, subsequent software packages are installed in the inactive partition, which becomes the active partition when you reboot at the end of the installation process.
On switches shipped with Release 10.4R3 and later, the same Junos OS image is loaded in each of the two root partitions, and you should copy the new software image to the alternate partition each time you upgrade.
If you performed an upgrade and rebooted, the system resets the active partition. You can use this procedure to manually boot from the inactive partition.
![]() | Note: If you have completed the installation of the software image but have not yet rebooted, issue the request system software rollback command to return to the original software installation package. |
Reboot from the inactive partition:
![]() | Note: If you cannot access the CLI, you can reboot from the inactive partition using the following procedure from the loader script prompt:
|
The software installation process requires a certain amount of unused disk space. If there is not enough space, you might receive an error message such as:
fetch: /var/tmp/incoming-package.tgz: No space left on device
Identify and delete unnecessary files by using the request system storage cleanup command.
When installing a Junos OS software image from the loader prompt, a “cannot open package error” is generated:
loader> install - -formattftp://10.204.33.248/images/Flash_corr/official/jinstall-ex-4200-10.4I2011012-domestic-signed.tgz Speed: 1000, full duplex bootp: no reply No response for RARP request net_open: RARP failed cannot open package (error 5)
This might be due to the IP address, gateway IP address, netmask address, or server IP address not being properly set. You can set these values either from the shell or from the u-boot prompt.
To set these values from the shell:
% nvram setenv ipaddr 10.204.35.235 % nvram setenv netmask 255.255.240.0% nvram setenv gatewayip 10.204.47.254% nvram setenv serverip 10.204.33.248To set these values from the u-boot prompt, log in to a console connection, reboot, and stop at the u-boot prompt (Cntrl+c):
=> setenv ipaddr 10.204.35.235 => setenv gatewayip 10.204.47.254 => setenv serverip 10.204.33.248 => setenv netmask 255.255.240.0 => saveenv => printenv Verify whether variables are set properly or not => boot