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/
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/
Locate difference in outputs to locate drive label. (It will usually be da#s1, i.e. da0s1)
Create a mount directory:
user@srx% mkdir /tmp/usb
Mount the USB to the directory:
user@srx% mount -t msdosfs /dev/<drivelabel, e.g. #da0s1> /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-jsr-11.4R5.7-export.tgz
Exit shell and install the software:
user@srx% exit
user@srx> request system software add /tmp/usb/<upgrade filename> no-validate no-copy
For additional details regarding a software installation, refer to the instructions at Installing the Software.
Upon completion, reboot the SRX:
user@srx> request system reboot
本文出自 “海纳百川” 博客,请务必保留此出处http://yuxing34.blog.51cto.com/1426860/1639237
原文:http://yuxing34.blog.51cto.com/1426860/1639237