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         
复制代码
相关推荐
京东云开发者1 小时前
全球首个!京东全栈开源JoyAI-VL-Interaction,让大模型从“一问一答”走向“边看边说”
前端
京东云开发者1 小时前
正式上线!京东云AI智能渗透测试服务
前端
AprChell1 小时前
低代码设计器和低代码设计引擎架构综述
前端·vue.js·低代码
Hilaku1 小时前
Node.js 还能再战十年?给你一个不换引擎的理由
前端·javascript·程序员
用户298698530142 小时前
Word 文档字符级格式化:Java 实现方案详解
java·后端
颜进强2 小时前
AI性能参数-截断、延迟与流式输出
前端·后端·ai编程
spmcor2 小时前
React 架构师之路:Next.js 全栈革命(第八篇)
前端·react.js
英勇无比的消炎药2 小时前
TinyRobot 源码深度分析:OpenTiny 的 AI 对话组件库
前端·vue.js·github
假如让我当三天老蒯2 小时前
React基础、进阶(学习用)
前端·react.js·面试
风骏时光牛马2 小时前
HTML十大经典实战代码案例合集
前端