您在这里:

目录

博科交换机系统升级以及配置备份还原

1、准备FTP

升级过程中的镜像以及配置文件的上传下载,都需要配合FTP服务器记进行,所以在操作之前需要部署好FTP服务器。
准备FTP服务器安装文件,安装过程中采取默认选项。
https://filezilla-project.org/download.php?type=server

2、升级步骤

3、配置备份

在博科交换机中使用configupload,将配置文件备份。

FCSW4:admin> configupload
Protocol (scp, ftp, sftp, local) [ftp]:        ##选择文件传输协议
Server Name or IP Address [host]: 10.244.84.100        ##FTP服务器地址
User Name [user]: demo        ##FTP服务器用户名
Path/Filename [<home dir>/config.txt]:        ##指定配置文件保存到FTP服务器上的文件名
Section (all|chassis|switch [all]): switch        ##保留的配置文件级别
Password:        ##FTP服务器的密码

configUpload complete: All selected config parameters are uploaded

4、升级博科交换机

4.1、升级路径

5.0.1d -> 5.2.3 -> 5.3.2c -> 6.0.1a -> 6.1.2c -> 6.2.2g -> 6.3.2e -> 6.4.3h > 7.0.2e > 7.1.2b > 7.2.1g > 7.3.2a > 7.4.1d > 7.4.1e > 7.4.2d > 8.0.2

4.2、确认升级版本

查看当前博科交换机版本,并确定升级后的目标版本。

FCSW4:admin> firmwareshow
Appl     Primary/Secondary Versions
------------------------------------------
FOS      v6.4.1b
         v6.4.1b

4.3、准备升级镜像

把下载好的升级包解压到FTP根目录下面,类似v7.0.1b

4.4、升级开始

保证FTP服务器和交换机管理网络的连通性,然后使用firmwaredownload进行镜像升级。

FCSW4:admin> firmwaredownload
Server Name or IP Address: 10.244.84.100        ##输入FTP服务器地址
User Name: demo        ##FTP服务器的用户名
File Name: /v7.0.1b        ##升级镜像的文件夹名称
Network Protocol(1-auto-select, 2-FTP, 3-SCP) [1]: 2        ##升级过程中文件传输协议
Password:        ##输入FTP服务器的密码
Server IP: 10.244.84.100, Protocol IPv4
Checking system settings for firmwaredownload...
System settings check passed.

You can run firmwaredownloadstatus to get the status
of this command.

This command will cause a warm/non-disruptive boot but will
require that existing telnet, secure telnet or SSH sessions
be restarted.

Do you want to continue (Y/N) [Y]: y        ##输入yes开始镜像升级
Firmware is being downloaded to the switch. This step may take up to 30 minutes.
Preparing for firmwaredownload...
2022/01/29-22:54:33, [SULB-1001], 15, CHASSIS, WARNING, Brocade300, Firmwaredownload command has started.
2022/01/29-22:54:33, [SULB-1036], 16, CHASSIS, INFO, Brocade300, The current Version: Fabric OS v6.4.1b
Start to install packages...

上面升级过程中,交换机会自动重启。

4.5、确认升级状况

等待交换机升级完成,并确认升级状况。

FCSW4:admin> firmwareshow
Appl     Primary/Secondary Versions
------------------------------------------
FOS      v7.0.1b
         v6.4.1b        ##升级后Primary/Secondary版本会在后台自动同步,等版本显示为一样的时候说明升级成功

5、交换机配置还原

5.1、禁用交换机

FCSW4:admin> switchdisable

5.2、导入交换机配置

通过configdownload命令还原交换机配置

FCSW4:admin> configdownload
Protocol (scp, ftp, sftp, local) [ftp]: 2022/01/29-23:10:23, [FW-1424], 31, FID 128, WARNING, FCSW4, Switch status changed from HEALTHY to MARGINAL.
2022/01/29-23:10:23, [FW-1439], 32, FID 128, WARNING, FCSW4, Switch status change contributing factor Switch offline.

Server Name or IP Address [host]: 10.244.84.100        ##指定FTP服务器名称
User Name [user]: demo        ##指定FTP服务器用户名
Path/Filename [<home dir>/config.txt]:        ##指定配置文件名称
Section (all|chassis|switch [all]): switch        ##指定还原的配置级别

                         *** CAUTION ***

  This command is used to download a backed-up configuration
  for a specific switch.  If using a file  from a  different
  switch, this file's configuration  settings will  override
  any current switch settings.   Downloading a configuration
  file, which was uploaded  from a different type of switch,
  may cause this switch to fail.

  A switch reboot is required for some parameter changes to
  take effect.

  configDownload operation may take several minutes
  to complete for large files.

  Do you want to continue [y/n]: y        ##输入“y”开始还原
Password:        ##指定FTP服务器的密码

Doing configDownload on switch ...

Activating configDownload: Switch is disabled

5.3、启用交换机

FCSW4:admin> cfgsave
FCSW4:admin> cfgenable "CFG"        ##这边指定交换机的配置名称
FCSW4:admin> switchenable

6、确认交换机配置

可以通过cfgshow命令确认交换机配置是否正常导入,确认ok之后交换机升级到此完成

FCSW4:admin> cfgshow

发表回复

你的电子邮件地址不会被公开 * 为必填字段

提交评论

FLOWEVER

相关文章

双认证加持!江苏川流信息以国际标准引领IT服务新标杆

我们怀着无比自豪的心情向您宣布,江苏川流信息技术有限公司正式通过ISO20000信息技术服务管理体系认证和ISO27001信息安全管理体系认证!这两项国际权威认证的获得,不仅是对我们专业能力的认可,更标志着我们在IT服务集成领域的信息安全和服务管理水平已跻身行业先进行列!

当好看门狗

防火墙作为网络边界的第一道防线,扮演着至关重要的角色,特别是近两年随着AI技术的广泛应用,为生活带来了便利同时,也让网络攻击变的更容易,新型威胁迭代更迅速、智能化、隐蔽化。

远亲不如近邻

在芯片的世界里,数据的处理和存储就像是一场紧张刺激的接力赛。传统的数据处理模式下,数据在存储器和处理器之间的传输,就如同接力选手在赛道上绕了一个大圈,耗时又费力,极大地影响了数据处理的效率。

真香定律

如今,企业数字化转型就像一场冒险,IT 基础设施得稳得强,深信服超融合这个国产品牌,正成为众多企业的“秘密武器”,凭啥?