Huawei 6730 Switch software upgrade example版本升级

Huawei 6730 Switch software upgrade example

版本 V1.0

密级 •开放 内部 •机密

类型 讨论版 •测试版 •正式版

修订记录

修订日期 修订人 版本号 审核人 修订说明

目录

1 背景 3

2 升级步骤 3

2.1 备份当前配置 3

2.2 备份当前版本文件 3

2.2.1 交换机连接ftp server 3

2.2.2 备份当前老版本文件到 ftp server 4

2.2.3 备份当前配置文件到ftp server 4

2.3 拷贝新版本文件及license 到flash 4

2.3.1 新版本文件从ftp server copy to flash: 4

2.3.2 确认新版本文件已经存在FLASH 4

2.3.3 拷贝license文件到FLASH 5

2.3.4 确认license文件 5

2.4 设置启动项 5

2.4.1 启动项指定新的版本文件 5

2.4.2 启动项指定新的license文件 5

2.5 重启 6

2.5.1 重启,但报错 6

2.5.2 重新指定版本文件, 后面加all 6

2.5.3 License也同样 6

2.5.4 再次重启 6

2.5.5 确认新版本已经生效 7

2.5.6 确认license也生效 7

1 背景

2台华为交换机配置了堆叠

型号:

S6730-S24X6Q's Device status:

复制代码
Slot Sub  Type                   Online    Power    Register     Status   Role  
--------------------------------------------------------------------------------------
1    -    S6730-S24X6Q           Present   PowerOn  Registered   Normal   Master
     PWR1 POWER                  Present   PowerOn  Registered   Normal   NA    
     PWR2 POWER                  Present   PowerOn  Registered   Normal   NA    
     FAN1 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN2 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN3 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN4 FAN                    Present   PowerOn  Registered   Normal   NA    
2    -    S6730-S24X6Q           Present   PowerOn  Registered   Normal   Standby
     PWR1 POWER                  Present   PowerOn  Registered   Normal   NA    
     PWR2 POWER                  Present   PowerOn  Registered   Normal   NA    
     FAN1 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN2 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN3 FAN                    Present   PowerOn  Registered   Normal   NA    
     FAN4 FAN                    Present   PowerOn  Registered   Normal   NA   

当前版本: s6730_v200r023c10spc500.cc

目标版本:S6730_V200R024C00SPC500.cc

目标补丁:S6730-S_V200R024SPH121.pat

2 升级步骤

2.1 备份当前配置

复制代码
Dis current

2.2 备份当前版本文件

通过FTP方式拷贝到ftp server

2.2.1 交换机连接ftp server

由于交换机是带外管理的,在1个独立的vpn-instance中,所以连接时需要指定源接口为带外接口,否则默认走全局路由表是不可达的。

复制代码
<Huawei-6730>  ftp -i MEth 0/0/1 10.16.133.219
Trying 10.16.133.219 in VPN instance management ...
Press CTRL+K to abort
Connected to 10.16.133.219 in VPN instance management.
220 3Com 3CDaemon FTP Server Version 2.0
User(10.16.133.219:(none)):cisco
331 User name ok, need password
Enter password:
230 User logged in

[ftp]

2.2.2 备份当前老版本文件到 ftp server

ftp put s6730_v200r023c10spc500.cc

200 PORT command successful.

150 File status OK ; about to open data connection

226 Closing data connection; File transfer successful.

FTP: 179229111 byte(s) sent in 73.890 second(s) 2368.77Kbyte(s)/sec.

复制代码
###  2.2.3	备份当前配置文件到ftp server

ftp put vrpcfg.zip vrpcfg-bak.zip

200 PORT command successful.

150 File status OK ; about to open data connection

226 Closing data connection; File transfer successful.

FTP: 1676 byte(s) sent in 0.098 second(s) 16.70Kbyte(s)/sec.

复制代码
## 2.3	拷贝新版本文件及license 到flash
### 2.3.1	新版本文件从ftp server copy to flash:

ftp get S6730_V200R024C00SPC500.cc

200 PORT command successful.

150 File status OK ; about to open data connection

226 Closing data connection; File transfer successful.

FTP: 182819840 byte(s) received in 175.470 second(s) 1017.46Kbyte(s)/sec.

ftp bye

221 Service closing control connection

复制代码
### 2.3.2	确认新版本文件已经存在FLASH

dir

Directory of flash:/

Idx Attr Size(Byte) Date Time FileName

19 -rw- 182,819,840 Jun 21 2025 09:45:02 s6730_v200r024c00spc500.cc

1,693,932 KB total (1,336,576 KB free)

复制代码
### 2.3.3	拷贝license文件到FLASH

ftp get S6730-S_V200R024SPH121.pat

200 PORT command successful.

150 File status OK ; about to open data connection

226 Closing data connection; File transfer successful.

FTP: 16670071 byte(s) received in 18.123 second(s) 898.27Kbyte(s)/sec.

ftpbye

221 Service closing control connection

复制代码
### 2.3.4	确认license文件

dir

Directory of flash:/

Idx Attr Size(Byte) Date Time FileName

25 -rw- 16,670,071 Jun 21 2025 09:48:21 s6730-s_v200r024sph121.pat

1,693,932 KB total (1,320,992 KB free)

2.4 设置启动项

2.4.1 启动项指定新的版本文件

startup system-software s6730_v200r024c00spc500.cc

Info: Operating, please wait for a moment...

Info: Succeeded in setting the software for booting system.

2.4.2 启动项指定新的license文件

startup patch s6730-s_v200r024sph121.pat...

Info: Succeeded in setting main board resource file for system.

复制代码
## 2.5	重启
### 2.5.1	重启,但报错

reboot

Error: Reboot is rejected because the next-startup system software in main control board is inconsistent with that in the slave control board.

复制代码
意思是备机上没有版本文件,所以不让重启,
处理方法:在命令最后加上all,会将版本文件拷贝到备机上。
### 2.5.2	重新指定版本文件, 后面加all

startup system-software s6730_v200r024c00spc500.cc all

Info: Operating, please wait for a moment...

Info: Succeeded in setting the software for booting system in the slot 1.

100% complete.|

Info: Copied file flash:/s6730_v200r024c00spc500.cc to slot2#flash:/s6730_v200r024c00spc500.cc...Done.

Info: Operating, please wait for a moment...

Info: Succeeded in setting the software for booting system in the slot 2.

Info: Succeeded in setting the software for booting system.

复制代码
### 2.5.3	License也同样

startup patch s6730-s_v200r024sph121.pat slave-board

Error : The file flash:/s6730-s_v200r024sph121.pat does not exist in slot 2.(Default directory is flash:/)

复制代码
### 2.5.4	再次重启

reboot

Info: The system is now comparing the configuration, please wait.

Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.

System will reboot! Continue?Y/N:y

Comparing the firmware versions...

Warning: It will take a few minutes to upgrade firmware. Please do not switchover, reset, remove, or power off the board when upgrade is being performed. Please keep system stable...

Info: Online upgrade firmware on slot 1 successfully.

Info: Online upgrade firmware on slot 2 successfully.

Info: The max number of VTY users is 10, and the number

of current VTY users on line is 2.

The current login time is 2025-06-21 10:12:21+00:00.

Info: Lastest accessed IP: 10.16.133.219 Time: 2025-06-21 10:12:18 Password will expire in: -

复制代码
### 2.5.5	确认新版本已经生效

dis version

Huawei Versatile Routing Platform Software

VRP ® software, Version 5.170 (S6730 V200R024C00SPC500)

Copyright © 2000-2024 HUAWEI TECH Co., Ltd.

HUAWEI S6730-S24X6Q Routing Switch uptime is 0 week, 0 day, 0 hour, 4 minutes

ES6D2S30S003 1(Master) : uptime is 0 week, 0 day, 0 hour, 1 minute

DDR Memory Size : 4096 M bytes

FLASH Total Memory Size : 2048 M bytes

FLASH Available Memory Size : 1654 M bytes

复制代码
### 2.5.6	确认license也生效

display patch-information

Patch Package Name :flash:/s6730-s_v200r024sph121.pat

Patch Package Version:V200R024SPH121

The state of the patch state file is: Running

The current state is: Running


复制代码
        Information about hot patch errors is as follows:          *

复制代码
 Slot            CurrentVersion     

No hot patch error occurs on any board.


复制代码
             The hot patch information, as follows:                *

Slot Type State Count Time(YYYY-MM-DD HH:MM:SS)

1 C Running 53 2025-06-21 10:08:58+00:00

1 C-NAC Running 1 2025-06-21 10:11:56+00:00


复制代码
             The enp patch information, as follows:                *

复制代码
 Slot           Type           State          Count     

复制代码
 1              ENP            Running        1         

复制代码
             The bin patch information, as follows:                *

Slot State Count Time(YYYY-MM-DD HH:MM:SS)

1 Running 11 2025-06-21 10:09:50+00:00:00


复制代码
           The firmware patch information, as follows:             *

复制代码
 Slot           Type           State          Count     

复制代码
 1              REMOTE_UNIT    Running        1         
复制代码
相关推荐
Csvn1 分钟前
🎯 Flex 布局的 `min-width: auto` 陷阱:为什么内容总是撑破容器?
前端
Jul1en_2 分钟前
【Java 脚手架】封装通用工具类-1
java·spring boot·分布式·spring·spring cloud
果然_26 分钟前
纯前端图片压缩怎么做?不用上传服务器,浏览器里跑完所有逻辑
前端
关于不上作者榜就原神启动那件事35 分钟前
从 MDC 到 Agent:我手搓的文档路由协议,在 Spring AI Alibaba 里找到了正式实现
java·人工智能·spring·ai·agent
Csvn36 分钟前
🖼️ OffscreenCanvas:把 Canvas 绘制搬出主线程,动画卡顿的终极解药
前端
用户693717500138436 分钟前
了解一下 Agent Harness
android·前端·后端
swipe1 小时前
16|(前端转全栈)前端人排查后端问题:curl、traceId、日志、MySQL、Redis 怎么用?
前端·后端·面试
anyup1 小时前
uni-app 没有根组件?仅需几行代码实现全局 Toast 和 Modal
前端·架构·uni-app
亦暖筑序1 小时前
重新认识 AgentScope-Java 2.0:ReActAgent 负责推理,HarnessAgent 负责运行
java·后端·agent