H3C S7506E系统升级解决系统出现部分问题
haoteby 2024-12-14 11:53 13 浏览
华三的S7506系列交换机到现在还很多中小企业的核心交换机,在运行的过程中会发现很多问题。例如:RRPP 控制 VLAN ID 与路由口子接口的 ID 重复时,RRPP 不能正常工作,设备上通过 ssh2 登录服务器,设备异常重启,堆叠单板上存在业务口,出现广播风暴时,堆叠单板内存耗尽等一系列问题。而升级系统是解决问题的主要办法。下面我就通过命令行的方式进行升级。
升级前的准备需要一台笔记本电脑,下载好的系统文件、一根网线以及Console线。此外电脑还要安装好TFTP软件。
1、Console口登录交换机查看flash文件
<S7506E>dir
Directory of flash:/
0 -rw- 384 Jun 18 2008 22:46:09 manuinfo.txt
1 -rw- 19718143 Feb 16 2009 21:57:50 s7500e-cmw520-f6306l01.app
2 -rw- 19522646 Sep 10 2008 11:14:34 s7500e-cmw520-r6305.app
3 -rw- 60389 Aug 09 2011 14:20:20 startup.cfg
4 -rw- 985192 Feb 18 2009 14:45:06 et254-l01106.app
64389 KB total (25028 KB free)
flash内的剩余空间,如果不足需删除不需要的文件。
2、<S7506E>del /u s7500e-cmw520-r6305.app
删除不需要的文件,/u表示彻底删除。
The contents cannot be restored!!! Delete flash:/s7500e-cmw520-r6305.app?[Y/N]:y
确认删除。
Deleting a file permanently will take a long time. Please wait...
............................................................................................................................................................
%Delete file flash:/s7500e-cmw520-r6305.app...Done.
3、<S7506E>dir slot1#flash:/
查看Slot1槽位的flash信息,如没有则省略该步骤。
Directory of slot1#flash:/
0 -rw- 384 Jun 18 2008 23:48:14 manuinfo.txt
1 -rw- 19718143 Feb 16 2009 22:00:52 s7500e-cmw520-f6306l01.app
2 -rw- 19522646 Sep 10 2008 11:18:18 s7500e-cmw520-r6305.app
3 -rw- 60389 Aug 09 2011 14:20:34 startup.cfg
64389 KB total (25989 KB free)
<S7506E>del /u slot1#flash:/s7500e-cmw520-r6305.app
The contents cannot be restored!!! Delete slot1#flash:/s7500e-cmw520-r6305.app?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
%Delete file slot1#flash:/s7500e-cmw520-r6305.app...Done.
4、配置交换机M-Ethernet 0/0/0接口
[S7506E]inter M-Ethernet 0/0/0
进入接口
[S7506E-M-Ethernet0/0/0]ip add 10.1.1.1 255.255.255.252
配置接口IP,与电脑对应。交换机 IP地址要与下载文件所在 PC 的 IP地址在同一网段。
[S7506E-M-Ethernet0/0/0]quit
[S7506E]quit
用网线连接交换机M-Ethernet 0/0/0接口与电脑网口
<S7506E>ping 1.1.1.2
查看与电脑是否已经互通。
PING 1.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 1.1.1.2: bytes=56 Sequence=1 ttl=128 time=2 ms
Reply from 1.1.1.2: bytes=56 Sequence=2 ttl=128 time=1 ms
Reply from 1.1.1.2: bytes=56 Sequence=3 ttl=128 time=1 ms
Reply from 1.1.1.2: bytes=56 Sequence=4 ttl=128 time=1 ms
Reply from 1.1.1.2: bytes=56 Sequence=5 ttl=128 time=1 ms
--- 1.1.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/2 ms
5、通过电脑上的TFTP服务器将文件下载到交换机上。
<S7506E>tftp 1.1.1.2 get S7500E-CMW520-R6626.app
...
File will be transferred in binary mode
Downloading file from remote TFTP server, please wait...........................................................................................................................................
TFTP: 31675439 bytes received in 214 second(s)
File downloaded successfully.
从电脑tftp服务器端下载需升级的文件,电脑要启动TFTP服务,并且指定的tftp文件夹内确有升级所需的文件。
<S7506E>tftp 1.1.1.2 get S7500E-CMW520-R6626.app slot1#flash:/S7500E-CMW520-R6626.app
File will be transferred in binary mode
Downloading file from remote TFTP server, please wait...|
TFTP: 31675439 bytes received in 354 second(s)
File downloaded successfully..
同上将文件下载到主控备板上,如没有可省略该步。
<S7506E>dir
Directory of flash:/
0 -rw- 384 Jun 18 2008 22:46:09 manuinfo.txt
1 -rw- 19718143 Feb 16 2009 21:57:50 s7500e-cmw520-f6306l01.app
2 -rw- 31675439 Aug 29 2011 15:20:34 s7500e-cmw520-r6626.app
3 -rw- 60389 Aug 09 2011 14:20:20 startup.cfg
4 -rw- 985192 Feb 18 2009 14:45:06 et254-l01106.app
64389 KB total (13160 KB free)
查看是否上传成功。
<S7506E>dir slot1#flash:/
Directory of slot1#flash:/
0 -rw- 384 Jun 18 2008 23:48:14 manuinfo.txt
1 -rw- 19718143 Feb 16 2009 22:00:52 s7500e-cmw520-f6306l01.app
2 -rw- 60389 Aug 09 2011 14:20:34 startup.cfg
3-rw- 31675439 Aug 29 2011 15:20:34 s7500e-cmw520-r6626.app
64389 KB total (45055 KB free)
查看主控备板是否上传成功,如没有可省略此步。
6、指定下次启动主控板的ROM文件
<S7506E>boot-loader file S7500E-CMW520-R6626.app slo 0 main
This command will set the boot file of the specified board. Continue? [Y/N]:y
The specified file will be used as the main boot file at the next reboot!
指定下次启动主控板的ROM文件。
<S7506E>boot-loader file slot1#flash:/S7500E-CMW520-R6626.app slot 1 main
This command will set the boot file of the specified board. Continue? [Y/N]:y
The specified file will be used as the main boot file at the next reboot!
指定下次启动备板的ROM文件,如没有省略此步。
<S7506E>dis boot-loader
The primary app to boot of board 0 at this time is: flash:/s7500e-cmw520-f6306l01.app
The primary app to boot of board 0 at next time is: flash:/S7500E-CMW520-R6626.app
The slave app to boot of board 0 at next time is: flash:/s7500e-cmw520-r6305.app
The primary app to boot of board 1 at this time is: flash:/s7500e-cmw520-f6306l01.app
The primary app to boot of board 1 at next time is: flash:/S7500E-CMW520-R6626.app
The slave app to boot of board 1 at next time is: flash:/s7500e-cmw520-r6305.app
查看启动信息是否正常。
7、删除无用配置并重启交换机
<S7506E>sy
System View: return to User View with Ctrl+Z.
进入配置模式
[S7506E]inter M-Ethernet 0/0/0
[S7506E-M-Ethernet0/0/0]un ip add
删除端口IP。
[S7506E-M-Ethernet0/0/0]quit
[S7506E]quit
<S7506E>sa
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Now saving current configuration to the device.
Saving configuration flash:/startup.cfg. Please wait...
....................
Saved the current configuration to mainboard device successfully.
Saved the current configuration to slaveboard device successfully.
Configuration is saved to device successfully.
保存信息。
<S7506E>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y
重新启动系统。
注意:
使用 delete /unreserved file-url 命令删除文件,被删除的文件被彻底删除,不能再恢复。
使用 delete file-url 命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间,用undo delete file-url恢复被误删除的文件,此文件需在回收站中,如用delete /unreserved file-url删除的文件则不能恢复。
如果要彻底删除回收站中的某个废弃文件,用dir /all查看所有文件,包括回收站内的文件。在该文件的原目录下执行 reset recycle-bin 命令,才可以回收存储空间。
至此升级完成,谢谢大家观看!
相关推荐
- 别争了,Access数据库才是真正的低代码开发平台
-
Access数据库是微软公司搞出来的“奇葩”产品。...
- Access开发轻松一键将 Access 全库表格导出为 Excel
-
hi,大家好呀!在日常工作中,Access常常是我们忠实的数据管家,默默守护着项目信息、客户列表或是库存记录。它结构清晰,录入便捷,对于许多中小型应用场景来说,无疑是个得力助手。然而,当我们需要对这...
- 跟我学:从零开始用Access设计一套完整的系统(一)
-
序言:Access是一款强大而灵活的数据库软件,可以设计和开发各种类型和规模的数据库应用程序。本文旨在为您提供从零开始设计Access数据库系统的详细指导,并通过实际案例演示如何在Access中设计和...
- 问卷调查管理程序 Access数据库 功能介绍和VBA代码分享
-
o本系统包含主要功能有:问卷管理,题目管理,问卷填写,调查结果统计,数据汇总导出o数据库系统包含:表,查询,窗体,VBA代码...
- 非绑定记录窗体查看管理数据 Access数据库功能模块 VBA代码编程
-
模块Public成绩IDnumAsLong学生成绩管理PrivateSubCommand更新_Click()DoCmd.SetWarnings(False)...
- ACCESS中的DLookUp函数是如何运算的?
-
一、DLookUp函数介绍1.DLookUp函数的用途:可以用于从指定集合(一个域)中获取符合条件的特定字段的值。2.DLookUp函数的格式为:DLookUp(expr,domain,...
- Excel常用技能分享与探讨(5-宏与VBA简介 VBA之用户窗体-一)
-
用户窗体(UserForm)是VBA中创建交互式界面的核心工具,可用于数据录入、设置参数或展示信息。...
- 【每日任务计划管理系统】Access数据库管理系统 VBA代码分享
-
窗体系统主页文本框,组合框,按钮,子窗体OptionCompareDatabase...
- VBA高效开发:用用户窗体打造个性化数据录入工具
-
在日常办公中,Excel的数据录入是否总让你陷入这些困境?手动输入易错、格式混乱难追溯、重复操作耗时费力。今天,我们将突破常规,利用VBA的用户窗体(UserForm)构建一套“智能校验、流程清晰、...
- VBA编程(基于Access)第1课:VBA的作用和学习方法
-
VBA,英文全称VisualBasicforApplications,直接翻译过来叫做“可以直接使用的VB语言”。...
- Access数据库宏与VBA代码的使用(精品一)
-
Access数据库的宏相当于实现某一功能的一系列命令和操作,我们无需写代码,系统已经将主体代码集成一块,我们只需要做一些简单的操作即可,而VBA代码则是实实在在的代码写到程序里面,我们可以自己编写,也...
- 【每日任务管理系统】(2) VB 管理系统 代码 Visual Basic access数据库
-
窗体全部任务DimdhAsLong'存储高度差DimdwAsLong'存储宽度差...
- VBA连接access数据库开发软件(vba调用数据库连接)
-
VBA连接access数据库开发小软件虽然VBA(包括VB)已不再流行,但是在某些场合还是比较方便的,尤其对非编程专业人员。灵活使用VBA,可以很十分方便的处理excel,access数据,提高工作效...
- 九章云极发布全新AI智算云平台:支持秒级生成百万级Token
-
6月16日,在在九章云极智能计算科技论坛上,九章云极宣布推出全新AI智算云平台“九章智算云AlayaNeWCloud2.0”,该平台基于Serverless技术架构与强化学习技术(RL)的深度融合...
- 浅谈基于大数据技术下的“云旅游”平台运营策略研究
-
云旅游体验平台是利用大数据和虚拟技术,构建虚拟旅游环境,能够改变旅游企业的营销模式和旅游者的消费模式。本文从云旅平台多维度数据信息的获取与分析,平台体验质量反馈信息数据构建,云旅游平台服务功能设计方案...