Software Installation Preparation
Read the Release Notes, as they document new features, changes in default behavior, known limitations, and issues.
Set up your connection to the SRX to log your session during the installation and through the reboot, as the transcript can provide valuable information if an issue happens and JTAC needs to review it.
Confirm there are no uncommitted changes present because candidate changes are usually lost on a reboot. Enter the command:
user@srx# top
user@srx# show | compare
If the command contains configuration information that you want to keep, then perform a commit.
Backup your configuration, by logging your session while performing the following command. Keep it in a safe place.
user@srx> show configuration | no-more
If you want to backup the current Junos and configuration
onto media (such as a USB/CF) so that it can be put back into the SRX
if the SRX does not boot up and allow the SRX to boot uprequest system snapshot media usb
If you are going to do a J-Web installation or copy the Junos software image to the SRX, then check the flash size and purge unused files:
Check current Flash size:If Flashsize is still lower than the size of your image, then try the following:
show system storage | match cf
Purge logfiles:
request system storage cleanup
- Clear
files from the /var/log directory. Clear or remove any traceoptions
files and clear any log files which are not needed. Note that you will
loose all contents of the log file after a clear is done.
clear log <log-filename>
- Purge
software backup. Note that if you delete the backup software, you will
not be able to rollback using the "request system software rollback"
command.
request system software delete-backup
- Locate directories on the flash with large amount of data
show system directory-usage /cf
- To save space browse directories and erase files manually: Be careful with which file you choose to delete.
file list /var/tmp
file delete /var/tmp/xyz
Install Software via CLI
Follow these steps to copy the software to the SRX device and then perform the software installation via the CLI:
- Copy software to SRX via SCP or FTP to /var/tmp:
For example:
user@srx> scp junos-srxsme-11.4R4.4-domestic.tgz user@srx:/var/tmp/
junos-srxsme-11.4R4.4-domestic.tgz
OR
user@srx> ftp <ip address of local ftp server> (and login)
user@srx> lcd /var/tmp
user@srx> bin
user@srx> get junos-srxsme-11.4R4.4-domestic.tgz
user@srx> bye - Install software with the commands below.
For example:
From the local file in /var/tmp
user@srx> request system software add no-copy /var/tmp/junos-srxsme-11.4R4.4-domestic.tgz
user@srx> request system rebootInstall Software via CLI
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 /var/tmp/usb/
root@% pwd
/cf/var/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 - Upon completion, reboot the SRX:
user@srx> request system reboot
No comments:
Post a Comment