1. 程式人生 > >使用U盤升級EX交換機

使用U盤升級EX交換機

juniper ex 升級

有臺4300需要使用usb升級到JTAC推薦版本,之前我的U盤做成了Srx550的啟動盤,格式化將軟件版本放進去,插到EX4300上,發現scrt在shell模式下沒有輸出U盤信息,查詢kb發現需要將U盤格式設置為fat32

1. 重新格式化U盤以後插入,可以看到shell模式下輸出:

root@hostname:0% umass1: PNY Hook Attache, rev 2.00/0.00, addr 2

da1 at umass-sim1 bus 1 target 0 lun 0

da1: <PNY Hook Attache 1.00> Removable Direct Access SCSI-4 device


da1: 40.000MB/s transfers

da1: 7650MB (15667200 512 byte sectors: 255H 63S/T 975C)

2. 掛載U盤,查看文件,已經可以看到4300的版本(Junos系統是基於freebsd unix,所以查看文件list的命令跟unix一樣):

root@hostname:RE:0% mount_msdosfs /dev/da1s1 /mnt (這裏的對應shell輸出)

root@hostname:RE:0% cd /mnt

root@hostname:0% ls

.Spotlight-V100

._jinstall-ex-4300-14.1X53-D46.7-domestic-signed.tgz

.fseventsd

3.將文件復制到var/tmp/裏面,(junos文件放置到var/tmp下面)並檢查:

root@hostname:0% cp jinstall-ex-4300-14.1X53-D46.7-domestic-signed.tgz /var/tmp

root@hostname:0% cd /var/tmp

root@hostname:0% ls

.snap

ex_autod_config

ex_autod_rollback_cfg

gres-tp

install

jdhcpd.core-tarball.0.tgz

jinstall-ex-4300-14.1X53-D46.7-domestic-signed.tgz

pics

rtsdb

sampled.pkts

snap

usb

vi.recove

4.安裝軟件包升級並且重啟:

root@hostname> request system software add /var/tmp/jinstall-ex-4300-14.1X53-D46.7-domestic-signed.tgz no-c no-p reboot

這是遇到一個報錯:

ERROR: Package signature validation failed. Aborting install.

查詢kb的時候,並沒有找到這個error,但是找到另一個kb:U盤升級失敗是系統時間的問題。

我設置下系統時間:

root@hostname> show system uptime

fpc0:

--------------------------------------------------------------------------

Current time: 2014-09-02 21:14:21 UTC

System booted: 2014-09-02 19:44:57 UTC (01:29:24 ago)

Protocols started: 2014-09-02 19:46:19 UTC (01:28:02 ago)

Last configured: 2014-09-02 19:45:15 UTC (01:29:06 ago) by root

9:14PM up 1:29, 1 user, load averages: 0.52, 0.61, 0.54



root@hostname> set date 201107071700.00

date: connect: Cwarning: clock_settime failed (16), time-of-day clock not adjusted to system time

an't assign requested address

Thu Jul 7 17:00:00 UTC 2011


重新升級:

root@hostname> request system software add /var/tmp/jinstall-ex-4300-14.1X53-D46.7-domestic-signed.tgz no-c no-p reboot

系統開始升級重啟。


5.設備升級以後檢查版本,升級成功:

root@hostname> show version

fpc0:

--------------------------------------------------------------------------

Hostname: hostname

Model: ex4300-32f

Junos: 14.1X53-D46.7

JUNOS EX Software Suite [14.1X53-D46.7]

JUNOS FIPS mode utilities [14.1X53-D46.7]

JUNOS Online Documentation [14.1X53-D46.7]

JUNOS EX 4300 Software Suite [14.1X53-D46.7]

JUNOS Web Management Platform Package [14.1X53-D46.7]

JUNOS py-base-powerpc [14.1X53-D46.7]


檢查系統時間,自動更新為了2017年。但是關於上面的這個error,我並沒有找到原因。


使用U盤升級EX交換機