当前位置:   article > 正文

华为升级FIT AP示例(通过AC的命令行)

华为升级FIT AP示例(通过AC的命令行)

升级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所示,实际操作中请根据实际情况设置。

表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

出厂默认信息:

  • IP地址:169.254.1.1/255.255.0.0
  • 用户名和密码:您可以在《WLAN缺省帐号与密码》(企业网运营商)文档中获取各种缺省帐号与密码信息。获取该文档需要权限,如需升级权限,请查看网站帮助。
  • Stelnet端口号:22

AP升级模式:AC模式

操作步骤
  1. 使用网线连接PC和WAC。有独立管理网口的WAC,连接其管理网口;无独立管理网口的WAC,连接其任意一个网口。

  2. 在PC上使用登录软件,输入设备的IP地址和端口号,进入命令行界面,输入用户名和密码登录设备。

    1. Login authentication
    2. Username:admin
    3. Password: //为保证安全,界面不显示输入的字符
    4. <HUAWEI>
    5. V200R019C00版本开始,使用默认用户名密码登录时,为保障设备的安全,需要修改登录密码,然后使用修改后的密码重新登录。

  3. WAC作为FTP客户端连接PC,获取系统软件包。

    1. <HUAWEI> ftp 169.254.1.100 21 //连接FTP服务端
    2. Trying 169.254.1.100 ...
    3. Press CTRL+K to abort
    4. Connected to 169.254.1.100.
    5. 220
    6. User(169.254.1.100:(none)):admin //输入FTP的用户名
    7. 331 Password required for admin
    8. Enter password: //输入FTP的密码,为保证安全,界面不显示输入的字符
    9. 230 Logged on
    10. [HUAWEI-ftp] binary //使用二进制模式方式传输文件
    11. 200 Type set to I
    12. [HUAWEI-ftp] dir //查看FTP服务端的文件列表
    13. 200 Type set to A
    14. 200 Port command successful.
    15. 150 Opening data channel for directory listing of "/"
    16. -r--r--r-- 1 ftp ftp 37650231 Aug 04 09:48 FitAP7060DN_V200R019C00SPC803.bin
    17. 226 Successfully transferred "/"
    18. FTP: 786 byte(s) received in 0.035 second(s) 22.45Kbyte(s)/sec.
    19. 200 Type set to I.
    20. [HUAWEI-ftp] get FitAP7060DN_V200R019C00SPC803.bin //设备从FTP服务端获取文件
    21. 200 Port command successful
    22. 150 Opening data channel for file download from server of "/FitAP7060DN_V200R019C00SPC803.bin"
    23. 226 Successfully transferred "/FitAP7060DN_V200R019C00SPC803.bin"
    24. FTP: 37650231 byte(s) received in 35.475 second(s) 1061.31Kbyte(s)/sec.
    25. Now begins to save file, please wait...
    26. File has been saved successfully.
    27. [HUAWEI-ftp] quit //退出FTP视图
    28. 221 Goodbye.

  4. 配置AP的升级模式为AC模式并升级AP。

    1. 先选择单个AP升级,验证成功后,再选择批量AP升级。
    2. <HUAWEI> display ap version all //查看AP版本和ID
    3. Compatible version : V200R010
    4. -----------------------------------------------------------------------------------------------
    5. ID Name Group Type Version PatchVersion state
    6. -----------------------------------------------------------------------------------------------
    7. 0 4467-473f-f520 default AP7060DN V200R010C00SPCf00 - normal
    8. -----------------------------------------------------------------------------------------------
    9. Total: 1
    10. <HUAWEI> system-view
    11. [HUAWEI] wlan
    12. [HUAWEI-wlan-view] ap update mode ac-mode //配置升级模式为AC模式
    13. [HUAWEI-wlan-view] display ap update configuration //检查升级配置
    14. --------------------------------------------------------------------------------
    15. AP update mode : AC-mode
    16. FTP configuration
    17. FTP IP : -
    18. FTP username : anonymous
    19. FTP password : ******
    20. FTP max number : 50
    21. SFTP configuration
    22. SFTP IP : -
    23. SFTP username : anonymous
    24. SFTP password : ******
    25. SFTP max number : 50
    26. --------------------------------------------------------------------------------
    27. [HUAWEI-wlan-view] ap update load ap-id 0 update-filename FitAP7060DN_V200R019C00SPC803.bin //升级单个AP
    28. Info: Start to load the update file,please wait for several seconds.
    29. Info: Starting Single AP update. AP type AP7060DN, AP number 1.
    30. Warning: Do not power off the AP during the upgrade.
    31. [HUAWEI-wlan-view] display ap update status ap-id 0 //等待过程中可以实时查询升级进度
    32. FT : File Type
    33. --------------------------------------------------------------------------------
    34. ----------------------------------------------------
    35. ID Name AP Type AP Group AP MAC FT Update Version
    36. Last Update Time Update Status
    37. --------------------------------------------------------------------------------
    38. ----------------------------------------------------
    39. 0 4467-473f-f520 AP7060DN default 4467-473f-f520 FIT V200R019C00SPC80
    40. 3 2020-09-23/19:38:01 downloading(progress: 93%/93%)
    41. --------------------------------------------------------------------------------
    42. ----------------------------------------------------
    43. Total: 1
    44. [HUAWEI-wlan-view] //升级完成后自动显示结果
    45. AP update result
    46. AP number : 1
    47. Success : 1
    48. Failure : 0
    49. [HUAWEI-wlan-view] ap update reset ap-id 0 //重启AP
    50. Warning: Reset the AP to make the upgrade take effect. Continue? [Y/N]:y
    51. Info: Starting AP reset. AP type AP7060DN.
    52. Info: AP reset completely. Success number 1, failure number 0.

  1. 操作结果
  2. 等待数分钟后,AP重启完成重新上线,查看AP的版本为目标版本。
  3. [HUAWEI-wlan-view] display ap version all
  4. Compatible version : V200R009 V200R010 V200R019
  5. -------------------------------------------------------------------------------------------
  6. ID Name Group Type Version PatchVersion state
  7. -------------------------------------------------------------------------------------------
  8. 0 4467-473f-f520 default AP7060DN V200R019C00SPC803 - normal
  9. -------------------------------------------------------------------------------------------
  10. Total: 1
  11. 后续处理
  12. 批量升级AP。如果有多种类型的AP,需要为每种类型的AP配置升级的系统软件包。
  13. AP配置升级的系统软件包,AP7060DNAP类型ID100,在ap-type后输入?可以查看AP对应的类型ID
  14. [HUAWEI-wlan-view] ap update update-filename FitAP7060DN_V200R019C00SPC803.bin ap-type 100
  15. Warning: If an AP is performing the automatic upgrade, the AP will be upgraded to the latest version. Continue?[Y/N]:y
  16. Warning: If AP update mode is AC-mode, update-file's default path is flash:/. Continue?[Y/N]:y
  17. 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
  18. Info: This operation may take a few seconds. Please wait for a moment.
  19. done.
  20. 升级所有的AP7060DN。
  21. [AC6508-wlan-view] ap update multi-load ap-type 100
  22. 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
  23. Info: Start to load the update file,please wait for several seconds.
  24. Info: Starting batch AP update. AP type AP7060DN
  25. APs to be upgraded : 10
  26. Warning: Do not power off the AP during the upgrade.
  27. [AC6508-wlan-view]
  28. AP update result
  29. AP number : 10
  30. Success : 10
  31. Failure : 0
  32. 重启所有的AP7060DN。
  33. [AC6508-wlan-view] ap update multi-reset ap-type 100
  34. Warning: Reset the APs in batches to make the upgrade take effect. Continue? [Y/N]:y
  35. Info: Starting AP reset.
  36. done.
  37. Info: AP reset completely.
  38. Success : 10
  39. Failure : 0

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号