How To Upgrade JunOS in ACX2200 through USB stick
Scope:
If you are unable to upgrade JunOS automatically through USB stick, then you need to mount the usb
device to router and then upgrade it by issuing software add command.
Requirements:
Laptop & Console cable.
Latest junOS image in .tgz format copied to USB device.
Important Note: First take log of current junOS version and current configuration present:
user@switch> show version
user@switch> show configuration
Procedure to mount USB device on the Juniper ACX router:
The following procedure allow users to mount a USB device on JUNIPER devices. This can be
helpful if network connectivity is unavailable and you need to copy files to or from the device.
1. Enter the shell as root:
user@switch> start shell user root
Password:
root@switch%
Note: If you are already logged in as root then just type- start shell
2. Before inserting the USB device, perform the following:
root@% ls /dev/da*
/dev/da0 /dev/da0s1c /dev/da0s2a /dev/da0s3 /dev/da0s3e
/dev/da0s1 /dev/da0s1f /dev/da0s2c /dev/da0s3c
/dev/da0s1a /dev/da0s2 /dev/da0s2f /dev/da0s3d
3.
Insert the USB drive in the USB port. The following output will be displayed at console/vty:
root@% umass1: TOSHIBA TransMemory, rev 2.00/1.00, addr 3
da2 at umass-sim1 bus 1 target 0 lun 0
da2: <TOSHIBA TransMemory 5.00> Removable Direct Access SCSI-0 device
da2: 40.000MB/s transfers
da2: 983MB (2013184 512 byte sectors: 64H 32S/T 983C)
Now you need to identify the usb device id from the above output. Note da# and bus #.
root@% ls /dev/da*
/dev/da0 /dev/da0s1c /dev/da0s2a /dev/da0s3 /dev/da0s3e
/dev/da0s1 /dev/da0s1f /dev/da0s2c /dev/da0s3c /dev/da2
/dev/da0s1a /dev/da0s2 /dev/da0s2f /dev/da0s3d /dev/da2s1
Note: In this case '/dev/da2s1' is the USB drive.
4. Create a directory for the USB drive to mount to:
root@% mkdir /var/tmp/usb
5. Mount the USB drive to the /var/tmp/usb directory:
root@% mount t msdosfs /dev/da2s1 /var/tmp/usb
root@%
root@% ls /var/tmp/usb
[Link]
other files
Note: 'ls /var/tmp/usb' will show all the files in the USB drive.
6. Copy any of the USB files to the /var/tmp/usb directory:
root@% cp /var/tmp/usb/[Link]
/var/tmp (Note: There is a space between image-name & /var/tmp)
root@% ls /var/tmp
[Link]
This shows [Link] file from the USB is successfully copied to
the /var/tmp directory.
7. Remove the USB device now from router.***IMPORTANT***
This point is important because if you reboot the router with USB
device plugged in, the router will try to upgrade software from USB
device (as first boot device). Since you have already copied it to
/var/tmp directory, you can remove usb device and upgrade junos
software copied in router.
8. Now exit the shell (type exit) and run below command to upgrade the junos version:
user@host>request system software add /var/tmp/[Link] validate no-copy reboot
Installation can take between 5 - 15 minutes. First, router will validate the software package then
install the junos software. 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.
9. After successful reboot, check the new junOS version and confirm current configuration:
user@switch> show version (it should be matched with upgraded version)
user@switch> show configuration
IMPORTANT: Please take log of all activity in router through console/vty
before starting this procedure.
TIP: In juniper, you do not need to type full character in cli. Type first few character of the word and press
Tab and the full character will be issued in cli.
For example, if you want to type the junos software name, just type jins and press Tab, the whole junos
file name will be issued in cli.
Copyright: Ericsson India Pvt. Ltd.
Prepared By- Azad Ali