控制器通过cpboot升级

控制器告警:

 Ancillary files are not present
*********************************************************************
* WARNING: An additional image upgrade is required to complete the *
* installation of the AP and WebUI files. Please upgrade the boot *
* partition again and reload the controller. *
*********************************************************************

此告警表示系统镜像有问题,需要重新升级。虽然可以通过如下命令升级:

copy ftp: x.x.x.x lab ArubaOS_70xx_xxxx_86211 system: partition 0

但是错误的文件包还会占用系统flash。多次这样会导致系统flash空间不足,同时也不能通过dir查看到无用文件。最好通过cpboot格式化flash,重新升级。(如果遇到其他情况导致flash不足,可以联系TAC处理,或者也可以通过format flash来处理)

控制器进入cpboot方法:

出现如下提示,按 Ctrl+x 中断启动
Hit Ctrl + X keys to stop autoboot:  0 
第一中断进入cpxload,输入cpboo后回车
cpxload# cpboot
CPBoot image is signed
Verifying CPBoot checksum...
CPBoot check passed
Signer Cert OK
.....

再次出现如下提示,按 Ctrl+x 中断启动,此时进入cpboot
Hit Ctrl + X keys to stop autoboot:  0 
cpboot>

格式化flash命令如下。一般情况可以先格式化0:1,从分区0启动系统,进入系统后升级分区1。然后格式化0:0,从分区1启动,再升级分区0。这样有web或者配置接口等操作比较方便,已有配置也能无缝过度。

cpboot> format 0:0或0:1
Format will erase everything on eUSB flash's partition 0
#Are you sure you want to continue (y/n)?y
一堆#####提示符之后即完成

cpboot> format 0:2可以清除系统配置分区,但是不删除镜像。
cpboot> format 不加参数将格式化一切

如果系统没有镜像,或者同时format 0:0以及 0:1,只能通过cpboot升级镜像。过程如下:

设置控制器IP等信息,serverip为下载镜像文件的TFTP服务器IP。

cpboot> setenv ipadddr <ipaddr>
cpboot> setenv netmask <netmask>
cpboot> setenv gatewayip <gateway>
cpboot> setenv serverip <serverIP>

默认接口ge-0/0/0,如果要修改,输入以下命令:

cpboot>setenv ethact ge-0
ge-0对应0/0/0口,ge-1对应0/0/1口,以此类推。
如果采用其他口可能提示没有mac地址:
*** ERROR: `eth4addr' not set
通过命令添加mac地址即可。
cpboot>setenv eth4addr 00:0b:86:b8:cc:eb(只用修改最后一位,默认0口地址可以用printenv查看)

如果做完以上配置,不能ping通TFTP服务器,在控制器链接的交换机或其他设备查看端口是否up,如果接口down状态,对于有ETH/SFP的设备可能需要以下命令:

cpboot>pfe mgmt

升级系统:

cpboot> upgrade 0或1 ArubaOS_70xx_10.3.1.4_86211

AOS Upgrades with Ancillary Files images from cpboot will cause
partition 0 and 1 to both contain the new AOS version.
Do you wish to continue? (y or n): y

启动

cpboot> purgeenv 
Un-Protected 1 sectors
Erasing Flash...
. done
Writing to Flash... done
Protected 1 sectors
cpboot> reset

This Post Has 11 Comments

  1. format 不加参数将格式化一切之后,再加载镜像会有啥影响吗

      1. 采用此方式进行升级后启动界面会出现下面的报错,升级后依旧无法打开web界面

        [16:20:13]:Installing ancillary FS [ FAIL : Ancillary files are not present]
        Extracting Webui files..cd: 269: can’t cd to /flash/img0/mswitch/
        tar: webui.tgz: No such file or directory
        /tmp
        chown: /mswitch/webui/*: No such file or directory
        chmod: /mswitch/webui/wms/wms.cgi: No such file or directory

        [16:20:15]:Reboot Cause: Power Cycle (Intent:cause:register ee:ee:0:8060)
        [16:20:15]:Starting syslog service [ OK ]
        chmod: /mswitch/webui/wms/wms.cgi: No such file or directory
        cp: /mswitch/webui/wmsi/gc_email_template.xml: No such file or directory
        cp: /mswitch/webui/wmsi/gc_page_design.xml: No such file or directory
        cp: /mswitch/webui/wmsi/gc_field_attrs.xml: No such file or directory
        chmod: /flash/upload/guestconnect/*: No such file or directory
        [16:20:17]:Restoring the database [ OK ]
        [16:20:18]:Generating SSH keys [ OK ]
        [16:20:27]:Initializing TPM and certificates [ FAIL ]
        ====================== E R R O R =======================
        TPM Initialization or Certificate Initialization failed.
        For debug information see /tmp/deviceCertLib.log.
        If this message appears even after rebooting the device
        couple of times, please contact Aruba Networks.
        ========================================================
        [16:20:34]:Checking for configuration upgrade [ FAIL ]
        [16:20:35]:rcS Done(75 sec)

            1. 我也出现了同样的错误,请问这个错误最后怎么能解决?
              <<<<>>>>

              [18:50:22]:Probing for EEPROM devices [ OK ]
              [18:50:22]:Probing for real-time clock [ OK ]
              [18:50:22]:Uncompressing core image files [ OK ]
              [18:51:12]:Extracting corefs [ OK ]

              [18:51:16]:Enabling watchdog [ OK ]
              [18:51:16]:Starting device manager

              Performing eUSB Flash fast test… [ DONE ]
              [ OK ]
              [18:51:18]:Mounting flash [ OK ]
              [18:51:18]:Initializing 511MB as swap on zRam0 [ OK ]
              [18:51:20]:Turning swap ON on zRAM0 [ OK ]
              [18:51:20]:Checking system inventory [ OK ]
              [18:51:20]:Installing ancillary FS [ FAIL : Ancillary files are not present]
              Extracting Webui files..cd: 269: can’t cd to /flash/img0/mswitch/
              tar: webui.tgz: No such file or directory
              /tmp
              chown: /mswitch/webui/*: No such file or directory
              chmod: /mswitch/webui/wms/wms.cgi: No such file or directory

              [18:51:22]:Reboot Cause: User reboot (Intent:cause:register 78:86:0:2c)
              [18:51:22]:Starting syslog service [ OK ]
              chmod: /mswitch/webui/wms/wms.cgi: No such file or directory
              cp: /mswitch/webui/wmsi/gc_email_template.xml: No such file or directory
              cp: /mswitch/webui/wmsi/gc_page_design.xml: No such file or directory
              cp: /mswitch/webui/wmsi/gc_field_attrs.xml: No such file or directory
              chmod: /flash/upload/guestconnect/*: No such file or directory
              [18:51:23]:Restoring the database [ OK ]
              [18:51:27]:Generating SSH keys [ OK ]
              [18:51:27]:Initializing TPM and certificates [ FAIL ]
              ====================== E R R O R =======================
              TPM Initialization or Certificate Initialization failed.
              For debug information see /tmp/deviceCertLib.log.
              If this message appears even after rebooting the device
              couple of times, please contact Aruba Networks.

  2. 3200控制器 cpboot> setenv ipadddr (setenv ipaddr)升级成功!

  3. setenv ipadddr/ge-0/0/0 之后我记得接口指示灯也不会亮,只有在传输景象文件过程中才会亮

请登录评论。