読者です 読者をやめる 読者になる 読者になる

labunix's blog

labunixのラボUnix

2台目のSRX100Hをアップグレードしてみる。

2台目のSRX100Hをアップグレードしてみる。

 以下の1台目と同じftpサーバを使う方式。
 前回は[12.1X44-D25.5]から、
 今回は[10.4R4.5]から[12.1X46-D40.2]へのアップデート

 SRX100Hをアップグレードしてみる。
 http://labunix.hateblo.jp/entry/20151008/1444230287

login: root
root@% cli

■以下を貼り付け

show version
show system firmware
show system snapshot media internal
file list /cf/var/sw/pkg/ 
show system storage | match "^F| /cf/var" 
show system alarms 

■アップデート前の貼り付け結果

root> show version 
Model: srx100h
JUNOS Software Release [10.4R4.5]

root> show system firmware 
Part             Type           Tag Current   Available Status
                                    version   version
Routing Engine 0 RE BIOS        0   2.0                 OK                
Routing Engine 0 RE BIOS Backup 1   2.0                 OK                

root> show system snapshot media internal 
Information for snapshot on       internal (/dev/da0s1a) (primary)
Creation date: Jan 1 00:08:44 2000
JUNOS version on snapshot:
  junos  : 10.4R4.5-domestic
Information for snapshot on       internal (/dev/da0s2a) (backup)
Creation date: Jan 1 00:14:19 2000
JUNOS version on snapshot:
  junos  : 10.4R4.5-domestic

root> file list /cf/var/sw/pkg/ 

/cf/var/sw/pkg/:

root> show system storage | match "^F| /cf/var" 
Filesystem              Size       Used      Avail  Capacity   Mounted on
/dev/bo0s3f             342M       4.5M       310M        1%  /cf/var

root> show system alarms 
1 alarms currently active
Alarm time               Class  Description
2016-01-21 20:37:17 UTC  Minor  Rescue configuration is not set

■alarmの対処、rootパスワードの設定

request system configuration rescue save
show system configuration rescue | count
configure
set system root-authentication plain-text-password
commit and-quit

■ftpサーバにL2(vlan.0)でアクセス可能なIP設定と、WebUI設定

configure
replace pattern 192.168.1.1/24 with 172.31.31.10/24
commit and-quit

■確認

root>show configuration | display set | match " address | web-management"
set system services web-management http interface vlan.0
set system services web-management https system-generated-certificate
set system services web-management https interface vlan.0
set interfaces vlan unit 0 family inet address 172.31.31.10/24

■LANケーブルの接続

root> ping count 3 172.31.31.254  
PING 172.31.31.254 (172.31.31.254): 56 data bytes
64 bytes from 172.31.31.254: icmp_seq=0 ttl=64 time=2.163 ms
64 bytes from 172.31.31.254: icmp_seq=1 ttl=64 time=1.979 ms
64 bytes from 172.31.31.254: icmp_seq=2 ttl=64 time=2.081 ms

--- 172.31.31.254 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.979/2.074/2.163/0.075 ms

■ファームウエアアップデート

request system software add no-copy no-validate ftp://user:pass1234@172.17.17.254/junos-srxsme-12.1X46-D40.2-domestic.tgz
request system reboot

■実行結果

root>request system software add no-copy no-validate ftp://user:pass1234@172.17.17.254/junos-srxsme-12.1X46-D40.2-domestic.tgz
/var/tmp/incoming-package.2941                        1402 kB 1402 kBps
Package contains junos-12.1X46-D40.2.tgz ; renaming ...
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-12.1X46-D40.2-domestic' ...
Verified junos-boot-srxsme-12.1X46-D40.2.tgz signed by PackageProductionRSA_2015
Verified junos-srxsme-12.1X46-D40.2-domestic signed by PackageProductionRSA_2015
boot.upgrade.uboot="0xbfc00000"
boot.upgrade.loader="0xbfe00000"
Upgrading Loader...
#####################################
Verifying the loader image... OK
Upgrading U-Boot...
###############################################################################
Verifying the new U-Boot image... OK
WARNING: The new boot firmware will take effect when the system is rebooted.
JUNOS 12.1X46-D40.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 ...

root> Reboot the system ? [yes,no] (no) yes 

■アップデート後の貼り付け結果

root> show version 
Model: srx100h
JUNOS Software Release [12.1X46-D40.2]

root> show system firmware 
Part             Type           Tag Current   Available Status
                                    version   version
Routing Engine 0 RE BIOS        0   2.8       2.8       OK                
Routing Engine 0 RE BIOS Backup 1   2.8       2.8       OK                

root> show system snapshot media internal 
Information for snapshot on       internal (/dev/da0s1a) (backup)
Creation date: Jan 1 00:08:44 2000
JUNOS version on snapshot:
  junos  : 10.4R4.5-domestic
Information for snapshot on       internal (/dev/da0s2a) (primary)
Creation date: Jan 21 21:24:11 2016
JUNOS version on snapshot:
  junos  : 12.1X46-D40.2-domestic


t> file list /cf/var/sw/pkg/ 
show system storage | match "^F| /cf/var"
show system alarms

/cf/var/sw/pkg/:
rollback

root> show system storage | match "^F| /cf/var" 
Filesystem              Size       Used      Avail  Capacity   Mounted on
/dev/bo0s3f             342M       5.7M       309M        2%  /cf/var

root> show system alarms 
No alarms currently active

■電源OFF

root> request system power-off 
Power Off the system ? [yes,no] (no) yes