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         
复制代码
相关推荐
vipbic10 小时前
别再把“做个H5”挂嘴边了:这个词,官方压根就没有定义过
前端
AI人工智能+电脑小能手11 小时前
【大白话说Java面试题 第87题】【Mysql篇】第17题:分布式事务的实现原理?
java·数据库·分布式·mysql·面试
来杯@Java12 小时前
图书管理系统(基于springboot+vue前后端分离的项目)计算机毕业设计java
java·spring boot·spring·vue·毕业设计·mybatis·课程设计
ZC跨境爬虫12 小时前
跟着 MDN 学CSS day_39:(Flexbox 弹性盒子核心机制)
前端·css·ui·html·tensorflow
小陈同学呦12 小时前
前端如何处理订单状态导航的数据竞态问题
前端·javascript
卷毛的技术笔记12 小时前
告别硬编码!Spring AI Alibaba 实现 AI Agent 智能工具调用(Tool Calling)
java·人工智能·后端·python·spring·ai编程
编程大师哥12 小时前
匿名函数 lambda + 高阶函数
java·python·算法
喵个咪12 小时前
GoWind Toolkit 前端代码生成|Vue3(ElementPlus/Vben)、React(AntDesign)全自动一键生成教程
前端·vue.js·react.js
東雪木13 小时前
多线程与并发编程 专属复习笔记
java·开发语言·笔记·java面试
adrninistrat0r13 小时前
Java调用链MCP分析工具
java·python·ai编程