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         
复制代码
相关推荐
Lhappy嘻嘻4 小时前
Java IO|File 文件操作 + 字节流 / 字符流完整笔记 + 递归删除文件实战
java·笔记·php
胡萝卜术4 小时前
从API调用到手写LRU:力扣146「LRU缓存」的哈希表+双向链表终极进化之路
前端·javascript·面试
科技道人4 小时前
记录 默认置灰/禁用 app ‘Search Engine Selector‘ 的disable按钮
开发语言·前端·javascript
伊玛目的门徒4 小时前
试用leetcode之典中典 二数之和问题
java·算法·leetcode
天疆说5 小时前
Zotero Connector 在 Edge 里找不到桌面 Zotero(Linux / Zotero 9.0.6 / Edge 150)
linux·前端·edge
李伟_Li慢慢6 小时前
02-从硬件说起WebGL
前端·three.js
kyriewen7 小时前
看了微软几万人用AI编程的数据——效率涨24%的代价没人提
前端·ai编程·claude
2601_963771377 小时前
How to Scale Your WordPress Store Traffic in 2026
前端·php·plugin
亿元程序员7 小时前
老板说我的3D箭头游戏用来做试玩太普通了,没人想玩,让我变点花样...
前端
懒鸟一枚7 小时前
深入理解 Linux 内存、Swap 交换分区与分页机制的关系
java·linux·数据库