Install Software via CLI (from Junos software copied to USB stick)
Follow these steps to install the software via the CLI from a USB stick:
- Download the Junos upgrade file to the USB stick.
- Locate the USB device ID that Junos is associating to the USB stick:
user@srx> start shell
user@srx% ls /dev/ > /var/tmp/before_USB.txt
- Insert the USB device into the USB slot. For example, slot 0 would return the following:
root# umass0: USB USBFlashDrive, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: <USB USBFlashDrive 0100> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C)
- Run the following command:
user@srx% ls /dev/ > /var/tmp/after_USB.txt
- Locate difference in the “before_USB.txt” and “after_USB.txt” outputs to locate drive label by using the “diff” command. (It will usually be da#s1, i.e. da0s1)
user@srx% diff /var/tmp/before_usb.txt /var/tmp/after_usb.txt 35a36,37 > da1 > da0s1 58a61 > pass1
In this example the USB is “da0s1”. - Create a mount directory:
user@srx% mkdir /tmp/usb
- Mount the USB to the directory:
user@srx% mount -t msdosfs /dev/<drivelabel> /tmp/usb
Example:user@srx% mount -t msdosfs /dev/da0s1 /tmp/usb
(there is a space between the label name and /tmp) - Verify that the USB is mounted to the device:
root@% pwd /cf/root
root@% cd /tmp/usb/
root@% pwd /cf/tmp/usb
root@% ls junos-srxsme-12.1X46-D40.2-domestic.tgz
- Exit shell and install the software:
user@srx% exit
user@srx> request system software add /tmp/usb/<upgrade filename> no-copy
Example:request system software add /tmp/usb/junos-srxsme-12.1X46-D40.2-domestic.tgz no-copy
- For additional details regarding software installation, refer to the instructions at Installing the Software.
- Upon completion, reboot the SRX:
user@srx> request system reboot
Categorised as: Hardware/Software, Juniper, Junos Space, SRX
Leave a Reply
You must be logged in to post a comment.