使用U盘升级EX交换机
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用U盘升级EX交换机相关的知识,希望对你有一定的参考价值。
有台4300需要使用usb升级到JTAC推荐版本,之前我的U盘做成了Srx550的启动盘,格式化将软件版本放进去,插到EX4300上,发现scrt在shell模式下没有输出U盘信息,查询kb发现需要将U盘格式设置为fat32。1. 重新格式化U盘以后插入,可以看到shell模式下输出:
[email protected]: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一样):
[email protected]:RE:0% mount_msdosfs /dev/da1s1 /mnt (这里的对应shell输出)
[email protected]:RE:0% cd /mnt
[email protected]:0% ls
.Spotlight-V100
._jinstall-ex-4300-14.1X53-D46.7-domestic-signed.tgz
.fseventsd
3.将文件复制到var/tmp/里面,(junos文件放置到var/tmp下面)并检查:
[email protected]:0% cp jinstall-ex-4300-14.1X53-D46.7-domestic-signed.tgz /var/tmp
[email protected]:0% cd /var/tmp
[email protected]: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.安装软件包升级并且重启:
[email protected]> 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盘升级失败是系统时间的问题。
我设置下系统时间:
[email protected]> 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
[email protected]> 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
重新升级:
[email protected]> request system software add /var/tmp/jinstall-ex-4300-14.1X53-D46.7-domestic-signed.tgz no-c no-p reboot
系统开始升级重启。
5.设备升级以后检查版本,升级成功:
[email protected]> 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交换机的主要内容,如果未能解决你的问题,请参考以下文章