Sunday, June 14, 2015

JUNOS Upgrade

I have a copuple of SRX100H2 and I need to upgrade the operating system, so lets move on.

You need a service contract with Juniper Networks in order to download the latest version of the Junos Operating System, at the time of this writing the version is: 12.1X44-D45.2

I have placed the Junos image in my ftp server (3CDaemon)

The first step prior to the operating system upgrade is ... copy the new Junos Operating system to the device. Juniper recomends to copy the operating system to the /var/tmp/.

root>file copy ftp://intruder@192.168.1.2/junos-srxsme-12.1X44-D45.2-domestic.tgz /var/tmp
Password for intruder@192.168.1.2:

and after a while

/var/tmp//...transferring.file.........YN9rVW/100% of  131 MB 1124 kBps 00m00s
root> file list /var/tmp/

/var/tmp/:
cleanup-pkgs.log
eedebug_bin_file
gksdchk.log
gres-tp/
idp_license_info
install/
junos-srxsme-12.1X44-D45.2-domestic.tgz
kmdchk.log
krt_gencfg_filter.txt
pics/
policy_status
rtsdb/
sec-download/
spu_kmd_init
vi.recover/
vpn_tunnel_orig.id 

And once the new operating system is copied on the device, we can proceed to upgrade the operating system.

request system software add /var/tmp/junos-srxsme-12.1X44-D45.2-domestic.tgz
root> request system software add /var/tmp/junos-srxsme-12.1X44-D45.2-domestic.tgz
NOTICE: Validating configuration against junos-srxsme-12.1X44-D45.2-domestic.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
Formatting alternate root (/dev/da0s2a)...
/dev/da0s2a: 627.4MB (1284940 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 156.86MB, 10039 blks, 20096 inodes.
super-block backups (for fsck -b #) at:
 32, 321280, 642528, 963776
Extracting /var/tmp/junos-srxsme-12.1X44-D45.2-domestic.tgz ...
saving package file in /var/sw/pkg ...
Checking compatibility with configuration
Initializing...
Verified manifest signed by PackageProduction_12_1_0
Verified junos-12.1X44-D30.4-domestic signed by PackageProduction_12_1_0
Using junos-12.1X44-D45.2-domestic from /altroot/cf/packages/install-tmp/junos-12.1X44-D45.2-domestic
Copying package ...
cp: /var/etc/master.passwd: No such file or directory
Verified manifest signed by PackageProduction_12_1_0
Hardware Database regeneration succeeded
Validating against /config/juniper.conf.gz
Usage: license-check -f "" -m -p -q -M -u -U -V
  -V verify if release based licenses are present
mgd: commit complete
Validation succeeded
Validating against /config/rescue.conf.gz
mgd: commit complete
Validation succeeded
Installing package '/altroot/cf/packages/install-tmp/junos-12.1X44-D45.2-domestic' ...
Verified junos-boot-srxsme-12.1X44-D45.2.tgz signed by PackageProduction_12_1_0
Verified junos-srxsme-12.1X44-D45.2-domestic signed by PackageProduction_12_1_0
JUNOS 12.1X44-D45.2 will become active at next reboot
WARNING: A reboot is required to load this software correctly
WARNING:     Use the 'request system reboot' command
WARNING:         when software installation is complete
Saving state for rollback ...

Finally we just need to reboot the system.

request system reboot

After the srx boots up

root> show version
Model: srx100h2
JUNOS Software Release [12.1X44-D45.2]

No comments:

Post a Comment