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,我并没有找到原因。
原文地址:http://blog.51cto.com/13582804/2085405