Wednesday, September 21, 2011

Upgrading a Juniper SRX 100

I have added two Juniper SRX 100H devices, two Cisco 3560 8-Port switches, and a Cisco 891W to my home network. Today, I received the SRX devices in the mail. I thought I'd document the upgrade procedure.


Obtain a FAT16/32 formatted USB stick. Not all of them seem to work. I had good luck with a Lexar 4GB brand that also features microban protection(?). :) It's an anti-germ usb stick.

Download Junos from the Juniper web site. I downloaded 11.1R3.5. Next, save it to the USB flash.

Now put the USB flash in the SRX100. On the SRX console, you should see messages about a device.

umass1: Lexar JumpDrive, rev 2.00/11.00, addr 4
da1 at umass-sim1 bus 1 target 0 lun 0
da1: Removable Direct Access SCSI-0 device
da1: 40.000MB/s transfers
da1: 3824MB (7831552 512 byte sectors: 255H 63S/T 487C)


root>

root>

Take note that the device is da1. If you missed this, you can always look at dmesg.

root> start shell
root@% dmesg | grep -i ^da
da1 at umass-sim1 bus 1 target 0 lun 0
da1: Removable Direct Access SCSI-0 device
da1: 40.000MB/s transfers
da1: 3824MB (7831552 512 byte sectors: 255H 63S/T 487C)
root@%

Let's mount the drive. If you had da1 in the output you would use the device name da1s1. If you had da0, use da0s1.

root@% mount -t msdosfs /dev/da1s1 /mnt
root@%

Let's see if the file is there...

root@% ls -l /mnt/*.tgz
-r-xr-xr-x 1 root wheel 142885149 Jul 19 15:03 /mnt/junos-srxsme-11.1R3.5-domestic.tgz
root@%


Now, let's install it without copying it to the router. The router has very little storage!

root@% cli
root> request system software add no-copy no-validate /mnt/junos-srxsme-11.1R3.5-domestic.tgz

It will take a bit... You will then reboot after it completes.

The console will display the upgrade activity...

Formatting alternate root (/dev/da0s2a)...
/dev/da0s2a: 297.9MB (610044 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 74.47MB, 4766 blks, 9600 inodes.
super-block backups (for fsck -b #) at:
32, 152544, 305056, 457568
Installing package '/altroot/cf/packages/install-tmp/junos-11.1R3.5-domestic' ...tership 1
Verified junos-boot-srxsme-11.1R3.5.tgz signed by PackageProduction_11_1_0Resync mastership 1
Verified junos-srxsme-11.1R3.5-domestic signed by PackageProduction_11_1_0nline mastership 1
Saving boot file package in /var/sw/pkg/junos-boot-srxsme-11.1R3.5.tgz
JUNOS 11.1R3.5 will become active at next reboot
WARNING: A reboot is required to load this software correctlyvice
WARNING: Use the 'request system reboot' command
WARNING: when software installation is complete
Saving state for rollback ...

Now reboot

root> request system reboot

No comments:

Post a Comment