升级FIT AP示例(通过AC的命令行)
前提条件
从官网下载升级目标版本对应的系统软件包,保存在PC本地。如果下载的文件是压缩文件,则需要解压缩出系统软件包。
AP已在WAC上线。
背景信息
升级的过程是先将系统软件包传到设备上,再将其设置为下次启动的软件包,然后重启设备。
本文以AC6508和AP7060DN的V200R010C00版本为例,介绍如何使用WAC的命令行,将AP升级到V200R019C00。WAC各版本的升级相关命令没有差异。
V200R019C10版本开始,AirEngine系列AP的系统软件包后缀名变更为.cc,升级过程仍可参考本示例。
通过WAC升级AP时有多种模式,本文以AC模式为例。
AC模式下,AP会从WAC获取其系统软件包,所以需先将AP的系统软件包上传到WAC上。升级AP数量少时可使用此方式。
FTP模式和SFTP模式下,AP会从服务器获取其系统软件包,所以需将AP的系统软件包存放在FTP或SFTP服务器上,并确保AP能够和服务器互通。推荐使用此方式,尤其是升级AP数量大时。
本文使用的升级环境如表1所示,实际操作中请根据实际情况设置。
设备 | 描述 |
---|---|
PC | 操作系统:Windows10 FTP软件:FileZilla Server FTP创建的用户名/密码:admin/admin123 FTP端口号:21 登录软件:Putty IP地址:169.254.1.100/255.255.0.0 目标版本的系统软件包:FitAP7060DN_V200R019C00SPC803.bin(需存放在FTP设置的目录) |
WAC | 版本:V200R010C00SPC700 出厂默认信息:
AP升级模式:AC模式 |
操作步骤
- 使用网线连接PC和WAC。有独立管理网口的WAC,连接其管理网口;无独立管理网口的WAC,连接其任意一个网口。
- 在PC上使用登录软件,输入设备的IP地址和端口号,进入命令行界面,输入用户名和密码登录设备。
Login authentication Username:admin Password: //为保证安全,界面不显示输入的字符 <HUAWEI> V200R019C00版本开始,使用默认用户名密码登录时,为保障设备的安全,需要修改登录密码,然后使用修改后的密码重新登录。
- WAC作为FTP客户端连接PC,获取系统软件包。
<HUAWEI> ftp 169.254.1.100 21 //连接FTP服务端 Trying 169.254.1.100 ... Press CTRL+K to abort Connected to 169.254.1.100. 220 User(169.254.1.100:(none)):admin //输入FTP的用户名 331 Password required for admin Enter password: //输入FTP的密码,为保证安全,界面不显示输入的字符 230 Logged on [HUAWEI-ftp] binary //使用二进制模式方式传输文件 200 Type set to I [HUAWEI-ftp] dir //查看FTP服务端的文件列表 200 Type set to A 200 Port command successful. 150 Opening data channel for directory listing of "/" -r--r--r-- 1 ftp ftp 37650231 Aug 04 09:48 FitAP7060DN_V200R019C00SPC803.bin 226 Successfully transferred "/" FTP: 786 byte(s) received in 0.035 second(s) 22.45Kbyte(s)/sec. 200 Type set to I. [HUAWEI-ftp] get FitAP7060DN_V200R019C00SPC803.bin //设备从FTP服务端获取文件 200 Port command successful 150 Opening data channel for file download from server of "/FitAP7060DN_V200R019C00SPC803.bin" 226 Successfully transferred "/FitAP7060DN_V200R019C00SPC803.bin" FTP: 37650231 byte(s) received in 35.475 second(s) 1061.31Kbyte(s)/sec. Now begins to save file, please wait... File has been saved successfully. [HUAWEI-ftp] quit //退出FTP视图 221 Goodbye.
- 配置AP的升级模式为AC模式并升级AP。
先选择单个AP升级,验证成功后,再选择批量AP升级。 <HUAWEI> display ap version all //查看AP版本和ID Compatible version : V200R010 ----------------------------------------------------------------------------------------------- ID Name Group Type Version PatchVersion state ----------------------------------------------------------------------------------------------- 0 4467-473f-f520 default AP7060DN V200R010C00SPCf00 - normal ----------------------------------------------------------------------------------------------- Total: 1 <HUAWEI> system-view [HUAWEI] wlan [HUAWEI-wlan-view] ap update mode ac-mode //配置升级模式为AC模式 [HUAWEI-wlan-view] display ap update configuration //检查升级配置 -------------------------------------------------------------------------------- AP update mode : AC-mode FTP configuration FTP IP : - FTP username : anonymous FTP password : ****** FTP max number : 50 SFTP configuration SFTP IP : - SFTP username : anonymous SFTP password : ****** SFTP max number : 50 -------------------------------------------------------------------------------- [HUAWEI-wlan-view] ap update load ap-id 0 update-filename FitAP7060DN_V200R019C00SPC803.bin //升级单个AP Info: Start to load the update file,please wait for several seconds. Info: Starting Single AP update. AP type AP7060DN, AP number 1. Warning: Do not power off the AP during the upgrade. [HUAWEI-wlan-view] display ap update status ap-id 0 //等待过程中可以实时查询升级进度 FT : File Type -------------------------------------------------------------------------------- ---------------------------------------------------- ID Name AP Type AP Group AP MAC FT Update Version Last Update Time Update Status -------------------------------------------------------------------------------- ---------------------------------------------------- 0 4467-473f-f520 AP7060DN default 4467-473f-f520 FIT V200R019C00SPC80 3 2020-09-23/19:38:01 downloading(progress: 93%/93%) -------------------------------------------------------------------------------- ---------------------------------------------------- Total: 1 [HUAWEI-wlan-view] //升级完成后自动显示结果 AP update result AP number : 1 Success : 1 Failure : 0 [HUAWEI-wlan-view] ap update reset ap-id 0 //重启AP Warning: Reset the AP to make the upgrade take effect. Continue? [Y/N]:y Info: Starting AP reset. AP type AP7060DN. Info: AP reset completely. Success number 1, failure number 0.
操作结果
等待数分钟后,AP重启完成重新上线,查看AP的版本为目标版本。
[HUAWEI-wlan-view] display ap version all
Compatible version : V200R009 V200R010 V200R019
-------------------------------------------------------------------------------------------
ID Name Group Type Version PatchVersion state
-------------------------------------------------------------------------------------------
0 4467-473f-f520 default AP7060DN V200R019C00SPC803 - normal
-------------------------------------------------------------------------------------------
Total: 1
后续处理
批量升级AP。如果有多种类型的AP,需要为每种类型的AP配置升级的系统软件包。
为AP配置升级的系统软件包,AP7060DN的AP类型ID是100,在ap-type后输入?可以查看AP对应的类型ID。
[HUAWEI-wlan-view] ap update update-filename FitAP7060DN_V200R019C00SPC803.bin ap-type 100
Warning: If an AP is performing the automatic upgrade, the AP will be upgraded to the latest version. Continue?[Y/N]:y
Warning: If AP update mode is AC-mode, update-file's default path is flash:/. Continue?[Y/N]:y
Info: The current upgrade mode is AC mode, which may affect performance and take a long time. The FTP or SFTP upgrade mode is recommended. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment.
done.
升级所有的AP7060DN。
[AC6508-wlan-view] ap update multi-load ap-type 100
Info: The current upgrade mode is AC mode, which may affect performance and take a long time. The FTP or SFTP upgrade mode is recommended. Continue? [Y/N]:y
Info: Start to load the update file,please wait for several seconds.
Info: Starting batch AP update. AP type AP7060DN
APs to be upgraded : 10
Warning: Do not power off the AP during the upgrade.
[AC6508-wlan-view]
AP update result
AP number : 10
Success : 10
Failure : 0
重启所有的AP7060DN。
[AC6508-wlan-view] ap update multi-reset ap-type 100
Warning: Reset the APs in batches to make the upgrade take effect. Continue? [Y/N]:y
Info: Starting AP reset.
done.
Info: AP reset completely.
Success : 10
Failure : 0
标签:ap,FTP,AC,FIT,示例,update,HUAWEI,升级,AP
From: https://blog.csdn.net/weixin_59383576/article/details/137006480