华为CE交换机升级固件打补丁

2018-02-08  本文已影响257人  wsf535

1、在内网需要有一个FTP或TFTP并把要升级的固件有补丁上传上去
FTP,TFTP建设方法自行baidu,下图中我已经把固件与补丁传到TFTP了

[root@192-168-56-48 tftp]# ll | grep CE
-rw-r--r--. 1 root   root   237285020 Feb  6 18:09 CE6851HI-V200R002C50SPC800.cc
-rw-r--r--. 1 root   root      692158 Feb  6 18:06 CE6851HI-V200R002SPH008.PAT

2、具体操作
确保在根目录:

cd flash:/

下载固件及补丁

tftp 192.168.56.48 get CE6851HI-V200R002C50SPC800.cc
tftp 192.168.56.48 get  CE6851HI-V200R002SPH008.PAT
#以下是具体下载过程,提示成功就可以
tftp 192.168.56.48 get CE6851HI-V200R002C50SPC800.cc
Info: Transfer file in binary mode.
Please wait for a while...
|    237285020 bytes transferred                                           
Info: Downloaded the file successfully.

单交换机

startup system-software CE6851HI-V200R002C50SPC800.cc all
startup patch CE6851HI-V200R002SPH008.PAT all
reboot


双交换机堆叠执行下面操作,把文件拷到standby

copy flash:/CE6851HI-V200R002C50SPC800.cc 2#flash:
copy flash:/CE6851HI-V200R002SPH008.PAT 2#flash:
#如果所在交换机是2号,把命令换成
copy flash:/CE6851HI-V200R002C50SPC800.cc 1#flash:
copy flash:/CE6851HI-V200R002SPH008.PAT 1#flash:

startup system-software CE6851HI-V200R002C50SPC800.cc all
startup patch CE6851HI-V200R002SPH008.PAT all
#查看结果
display startup
#因为我的交换机是堆叠所以有两台。关注next
MainBoard:
  Configured startup system software:        flash:/CE6851HI-V200R001C00SPC700.cc
  Startup system software:                   flash:/CE6851HI-V200R001C00SPC700.cc
  Next startup system software:              flash:/CE6851HI-V200R002C50SPC800.cc
  Startup saved-configuration file:          flash:/vrpcfg.zip
  Next startup saved-configuration file:     flash:/vrpcfg.zip
  Startup paf file:                          default
  Next startup paf file:                     default
  Startup patch package:                     flash:/CE6851HI-V200R001SPH010.PAT
  Next startup patch package:                flash:/CE6851HI-V200R002SPH008.PAT
SlaveBoard:
  Configured startup system software:        flash:/CE6851HI-V200R001C00SPC700.cc
  Startup system software:                   flash:/CE6851HI-V200R001C00SPC700.cc
  Next startup system software:              flash:/CE6851HI-V200R002C50SPC800.cc
  Startup saved-configuration file:          flash:/vrpcfg.zip
  Next startup saved-configuration file:     flash:/vrpcfg.zip
  Startup paf file:                          default
  Next startup paf file:                     default
  Startup patch package:                     flash:/CE6851HI-V200R001SPH010.PAT
  Next startup patch package:                flash:/CE6851HI-V200R002SPH008.PAT
#重启生效
reboot

其它一些可能要用到的操作
通过tftp下载文件如果中断了,文件不完整,可以通过delete命令删除文件,如下图有V200R002C50SPC800.cc文件没下载完成

<XS-1F-F05-KVM>dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time       FileName                     
    0  dr-x              -  Feb 08 2018 10:58:07   $_checkpoint                 
    1  dr-x              -  Sep 28 2016 17:03:05   $_install_mod                
    2  dr-x              -  Oct 31 2017 14:33:44   $_license                    
    3  dr-x              -  Jan 27 2018 02:54:01   $_security_info              
    4  dr-x              -  Feb 08 2018 10:03:38   $_system                     
    5  -rw-    231,262,076  Sep 04 2017 10:42:54   CE6851HI-V200R001C00SPC700.cc
    6  -rw-     30,501,384  Oct 31 2017 14:35:33   CE6851HI-V200R001SPH009.PAT  
    7  -rw-     30,550,536  Jan 27 2018 01:33:24   CE6851HI-V200R001SPH010.PAT  
    8  -rw-    135,510,016  Feb 07 2018 18:54:12   CE6851HI-V200R002C50SPC800.cc
    9  -rw-        692,158  Feb 07 2018 18:27:50   CE6851HI-V200R002SPH008.PAT  
   10  drwx              -  Oct 31 2017 14:30:07   POST                         
   11  -rw-             43  Feb 08 2018 11:04:39   SysResTemplate.ini           
   12  -rw-             97  Oct 31 2017 14:30:11   collect_diag_info.bat        
   13  -rw-         34,101  Feb 08 2018 11:04:34   device.sys                   
   14  drwx              -  Feb 07 2018 21:06:33   logfile                      
   15  -rw-          2,308  Feb 08 2018 11:04:34   vrpcfg.zip                   
   16  -rw-          6,265  Jan 27 2018 01:32:32   ztp_20180126164131.log       
   17  -rw-         14,361  Jan 27 2018 01:21:24   ztp_20180126164131.log.1     
   18  -rw-         14,361  Jan 27 2018 01:13:28   ztp_20180126164131.log.2     
   19  -rw-         14,361  Jan 27 2018 01:05:34   ztp_20180126164131.log.3     
   20  -rw-         14,361  Jan 27 2018 00:57:39   ztp_20180126164131.log.4     

630,660 KB total (432 KB free)
使用实例
# 恢复被删除的文件sample.bak。
<HUAWEI> undelete sample.bak
Info: Are you sure to undelete flash:/sample.bak ?[Y/N]:y
Info: Undeleting file flash:/sample.bak......Done.
# 恢复根目录下被删除的文件。
<HUAWEI> undelete flash:
Info: Are you sure to undelete flash:/test.txt?[Y/N] :y
Info: Undeleting file flash:/test.txt......Done.
Info: Are you sure to undelete flash:/rr.bak?[Y/N]:y
Info: Undeleting file flash:/rr.bak......Done.
<xxx>reset recycle-bin 
Info: Are you sure to clear flash:/CE6851HI-V200R002C50SPC800.cc? [Yes/All/No/Cancel]:yes
Info: Clearing file flash:/CE6851HI-V200R002C50SPC800.cc...Done.
上一篇下一篇

猜你喜欢

热点阅读