配置智能升级功能升级设备示例
操作步骤
- 在SwitchA配置SSL策略并绑定CA证书。SwitchB、SwitchC的配置与SwitchA类似,不再赘述。
<HUAWEI> system-view [HUAWEI] ssl policy houp [HUAWEI-ssl-policy-houp] trusted-ca load pem-ca houp_root.cer [HUAWEI-ssl-policy-houp] quit
- 在SwitchA配置智能升级功能。SwitchB、SwitchC的配置与SwitchA类似,不再赘述。
[HUAWEI] smart-upgrade ssl-policy houp //智能升级绑定SSL策略。 [HUAWEI] smart-upgrade enable //使能智能升级功能。 [HUAWEI] smart-upgrade information telephone 111111111 email abcd@huawei.com //设置智能升级联系电话和邮箱命令。
- 检查交换机版本状态和网络的连通性。
# 查看交换机与HOUP平台的连通性和交换机当前版本状态。
[HUAWEI] display smart-upgrade information Info: Loading the information, please wait . Configuration: URL : houp.huawei.com HTTPS port : 443 Bind SSL policy : houp Verify HTTPS server : true Telephone : 1****1111 Email : ****@huawei.com Version information: Refresh time : 2019-01-23 12:24:06 Check version result : needUpdate //交换机版本非最优版本,建议升级。(如果与HOUP平台网络不通,显示netError) Recommended software version : V200R019C10 Recommended patch version : V200R019SPH001 Upgrade description : Firmware and Patch Description in English:1)description:2)CC+SPH Software package name : S600-V200R019C10.cc Software package size(B) : 120101636 Patch package name : S600-V200R019SPH001.pat Patch package size(B) : 14910 Upgrade information: Upgrade Time : 2019-01-23 11:13 Upgrade status : success Cancellation status : - Software download time : - Software download progress(%): - Software download speed(KB/s): - Patch download time : - Patch download progress(%) : - Patch download speed(KB/s) : - Last upgrade time : 2019-01-23 11:13 Last upgrade result : success Local information: Device name : S628X-PWR-E ESN : 2102351XFR12xxxxxxxx Software version : V200R019C10 Patch version : V200R019SPH
- 触发设备智能升级。SwitchB、SwitchC的配置与SwitchA类似,不再赘述。
[HUAWEI] smart-upgrade right-now Info: Getting version information from houp, please wait ... Info: If you want to stop the upgrade, please press CTRL + C. Info: Downloading file basic-soft.cc ... Info: The file already exists, check whether it can be resumed from the breakpoint. Info: Resume from the 15728640 bytes breakpoint. Info: Current percent is 100%. Info: 104372996 byte(s) received in 197.329 second(s) 516.53 Kbyte(s)/sec. Info: Downloading file basic-soft.cc.asc ... Info: Current percent is 100%. Info: 490 byte(s) received in 0.201 second(s) 2.38 Kbyte(s)/sec. Info: Downloading file basic-patch.pat ... Info: The file already exists, check whether it can be resumed from the breakpoint. Info: The file size is OK and the content is consistent. Info: Downloading file basic-patch.pat.asc ... Info: The file already exists, check whether it can be resumed from the breakpoint. Info: The file size is OK and the content is consistent. Info: Start verifying signature ... Info: Signature verification passed. Info: Set next startup patch basic-patch.pat successfully. Info: Start set next startup file, please wait... Info: Set next startup file basic-soft.cc successfully. Info: System will rebooting for upgrade...
- 查看升级后的软件版本。
<HUAWEI> display version Huawei Versatile Routing Platform Software VRP (R) software, Version 5.170 (S600 V200R019C10) Copyright (C) 2000-2018 HUAWEI TECH Co., Ltd. HUAWEI S628X-PWR-E Routing Switch uptime is 0 week, 0 day, 13 hours, 49 minutes ES5D2S52C004 1(Master) : uptime is 0 week, 0 day, 13 hours, 47 minutes DDR Memory Size : 4096 M bytes FLASH Total Memory Size : 1024 M bytes FLASH Available Memory Size : 842 M bytes SSD Memory Size : 223 G bytes Pcb Version : VER.A BootROM Version : 020d.0000 BootLoad Version : 020d.0000 CPLD Version : 0102 Software Version : VRP (R) Software, Version 5.170 (V200R019C10) //设备当前的软件版本。 FLASH Version : 0000 CARD1 information Pcb Version : ES5D21X08T00 VER.C CPLD Version : 010c PWR1 information Pcb Version : PWR VER.A FAN1 information Pcb Version : NA
配置文件
- SwitchA的配置文件
# smart-upgrade ssl-policy houp smart-upgrade enable smart-upgrade information telephone %^%#io6P(j9(U;):/}VIw8@T}G4/4{`@TX{' email %^%#r~|i3Gp6U2k)YHDat=l1}G4/4{`@TX{'{'<tO+P<g"%^%# # ssl policy houp trusted-ca load pem-ca houp_root.cer ssl minimum version tls1.2 // ssl policy自动生成 #