唯一需要注意的地方是必须复制安装文件到/var/tmp
,否则会报文件验证失败的错误。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
umass1: Kingston DataTraveler 3.0, rev 2.10/1.10, addr 2 da1 at umass-sim1 bus 1 target 0 lun 0 da1: <Kingston DataTraveler 3.0 PMAP> Removable Direct Access SCSI-6 device da1: 40.000MB/s transfers da1: 14784MB (30277632 512 byte sectors: 255H 63S/T 1884C) {master:0} james@switch> start shell user root Password: root@switch:RE:0% ls /dev/da* /dev/da0 /dev/da0s2 /dev/da0s3c /dev/da0s4c /dev/da0s1 /dev/da0s2a /dev/da0s3d /dev/da0s4d /dev/da0s1a /dev/da0s2c /dev/da0s3e /dev/da1 /dev/da0s1c /dev/da0s3 /dev/da0s4 /dev/da1s1 root@switch:RE:0% mount_msdosfs /dev/da1s1 /mnt root@switch:RE:0% cd /mnt root@switch:RE:0% ls jinstall-ex-3300-12.3R12-S12-domestic-signed.tgz root@switch:RE:0% cp /mnt/jinstall-ex-3300-12.3R12-S12-domestic-signed.tgz /var/tmp root@switch:RE:RE:0% exit exit {master:0} james@switch:RE> request system software add /var/tmp/jinstall-ex-3300-12.3R12-S12-domestic-signed.tgz b [Mar 10 18:36:23]: Checking pending install on fpc0 [Mar 10 18:36:24]: Validating on fpc0 [Mar 10 18:36:49]: Done with validate on all virtual chassis members fpc0: Verify the signature of the new package tar: +CONTENTS: time stamp Dec 28 06:52 2018 is 119967324 s in the future tar: +COMMENT: time stamp Dec 28 06:52 2018 is 119967324 s in the future tar: +DESC: time stamp Dec 28 06:52 2018 is 119967324 s in the future tar: +INSTALL: time stamp Dec 28 06:52 2018 is 119967324 s in the future tar: jinstall-ex-3300-12.3R12-S12-domestic.tgz: time stamp Dec 28 06:52 2018 is 119967292 s in the future tar: jinstall-ex-3300-12.3R12-S12-domestic.tgz.md5: time stamp Dec 28 06:52 2018 is 119967295 s in the future tar: jinstall-ex-3300-12.3R12-S12-domestic.tgz.sha1: time stamp Dec 28 06:52 2018 is 119967293 s in the future tar: jinstall-ex-3300-12.3R12-S12-domestic.tgz.sig: time stamp Dec 28 06:52 2018 is 119967295 s in the future tar: certs.pem: time stamp Dec 28 01:54 2018 is 119949392 s in the future Verified jinstall-ex-3300-12.3R12-S12-domestic.tgz signed by PackageProduction_12_3_0 WARNING: A reboot is required to install the software WARNING: Use the 'request system reboot' command immediately |
然后重启:
1 |
request system reboot |
重启成功后复制新系统到备份分区:
1 |
request system snapshot slice alternate |