No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Basic Configuration

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring USB-based Deployment

Example for Configuring USB-based Deployment

Networking Requirements

Two devices need to be automatically upgraded, and no software engineers are available onsite. The requirements are as follows:
  • The devices need to be upgraded at 08:09:10 a.m. on October 8, 2014.
  • The devices are not managed by the NMS.
  • On RouterA, the ESN is 00080123456789, the MAC address is 0018-0303-1234, the system software name is XXX-V200R010SPC100.cc (XXX indicates the device model), and the version is V200R010. The configuration file to be loaded is system-config01.zip., the Android configuration file to be loaded is settings.zip, the resource file is resource01.zip, and the executable file is execute01.sh and needs to be executed after RouterA is upgraded successfully using a USB flash drive.HMAC check needs to be performed for all files. The authentication password for USB-based deployment is huawei123.
  • On RouterB, the ESN is 66680123456789, the MAC address is 0018-0303-5678, and the system software name is XXX-V200R010SPC100.cc, and the version is V200R010. The configuration file to be loaded is system-config02.zip, the Android configuration file to be loaded is settings.zip, the resource file is resource02.zip, and the executable file is execute02.sh and needs to be executed after RouterB is upgraded successfully using a USB flash drive.HMAC check needs to be performed for all files. The authentication password for USB-based deployment is huawei123.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Make an index file USB_AR.ini.
  2. Copy the index file USB_AR.ini and two resource files (resource01.zip and resource02.zip) to the root directory of the USB flash drive, and copy deployment files XXX-V200R010SPC100.cc, settings.zip, execute01.sh, execute02.sh, system-config01.zip, and system-config02.zip to the directory specified in the index file.
  3. Connect the USB flash drive to a USB port of each device to complete automatic software upgrade.

    Before USB-based deployment, software engineers need to make an index file, save the index file to the root directory of a USB flash drive, save deployment files to the directory specified in the index file, and then deliver the USB flash drive to hardware installation engineers. After finishing installing devices onsite, hardware installation engineers insert the USB flash drive to the device to start the deployment process.

Procedure

  1. Edit the index file USB_AR.ini.

    # Use the authentication password as the key and use a file checker to calculate an HMAC for all deployment files based on the HMAC-SHA256 algorithm. The commonly used file checker is HashCalc, which is available at the website http://hashcalc.software.informer.com/download/. The calculation results are as follows:

    • HMAC for the system software package of RouterA: 0ab30a2596bd0f6744631002d941f4218f40e784ae51447ed0bf3a2ff075939a

    • HMAC for the configuration file of RouterA: c76b15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f

    • HMAC for the Android configuration file of RouterA: c76a15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f

    • HMAC for the executable file of RouterA: c86b15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f

    • HMAC for the resource file of RouterA: 0ab50a2596bd0f6744631002d941f4218f40e784ae51447ed0bf3a2ff075939a

    • HMAC for the system software package of RouterB: 0ab30a2596bd0f6744631002d941f4218f40e784ae51447ed0bf3a2ff075939a

    • HMAC for the configuration file of RouterB: 10736ef141ab2b6f9fa60a44c515cbb48c52d1b4b2e10f64abe5f880346e3b5d

    • HMAC for the Android configuration file of RouterB: 16736ef141ab2b6f9fa60a44c515cbb48c52d1b4b2e10f64abe5f880346e3b5d

    • HMAC for the executable file of RouterB: c86b15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f

    • HMAC for the resource file of RouterB: 0ac30a2596bd0f6744631002d941f4218f40e784ae51447ed0bf3a2ff075939a

    # Create an index file and name it USB_AR.ini. Add the following content in the index file:

    BEGIN AR
    [USB CONFIG]
    SN=20141008.080910
    EMS_ONLINE_STATE=NO
    [UPGRADE INFO]
    OPTION=AUTO
    DEVICENUM=2
    [DEVICE1 DESCRIPTION]
    OPTION=OK
    ESN=00080123456789
    MAC=0018-0303-1234
    VERSION=V200R010
    DIRECTORY=DEFAULT
    FILENUM=5
    TYPE1=SYSTEM-SOFTWARE
    FILENAME1=XXX-V200R010SPC100.cc
    FILE_HMAC1=0ab30a2596bd0f6744631002d941f4218f40e784ae51447ed0bf3a2ff075939a
    TYPE2=SYSTEM-CONFIG
    FILENAME2=system-config01.zip
    FILE_HMAC2=c76b15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f
    TYPE3=SYSTEM-CONFIG
    FILENAME3=settings.zip
    FILE_HMAC3=c76a15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f
    EXECUTE_TIME1=1
    TYPE4=SYSTEM-EXECUTE
    FILENAME4=execute01.sh
    FILE_HMAC4=c86b15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f
    RESOURCE_NAME1=resource01.zip
    RESOURCE_HMAC1=0ab50a2596bd0f6744631002d941f4218f40e784ae51447ed0bf3a2ff075939a
    [DEVICE2 DESCRIPTION]
    OPTION=OK
    ESN=66680123456789
    MAC=0018-0303-5678
    VERSION=V200R010
    DIRECTORY=DEFAULT
    FILENUM=5
    TYPE1=SYSTEM-SOFTWARE
    FILENAME1=XXX-V200R010SPC100.cc
    FILE_HMAC1=0ab30a2596bd0f6744631002d941f4218f40e784ae51447ed0bf3a2ff075939a
    TYPE2=SYSTEM-CONFIG
    FILENAME2=system-config02.zip
    FILE_HMAC2=10736ef141ab2b6f9fa60a44c515cbb48c52d1b4b2e10f64abe5f880346e3b5d
    TYPE3=SYSTEM-CONFIG
    FILENAME3=settings.zip
    FILE_HMAC3=16736ef141ab2b6f9fa60a44c515cbb48c52d1b4b2e10f64abe5f880346e3b5d
    EXECUTE_TIME1=1
    TYPE4=SYSTEM-EXECUTE
    FILENAME4=execute02.sh
    FILE_HMAC4=c86b15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f
    RESOURCE_NAME1=resource02.zip
    RESOURCE_HMAC1=c86b15e47346299b4993ea34d505e19844a04436dafcafe7a79341ef90a0652f
    END AR
    

  2. Copy the index file, system software, the executable file,the Android configuration file to be loaded, the configuration file and the resource file to the root directory of the USB flash drive.
  3. Configure an authentication password for USB-based deployment on the two devices.

    # Configure RouterA.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] set usb autoupdate password huawei123

    # Configure RouterB.

    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] set usb autoupdate password huawei123

  4. Enable HMAC check on the two devices.

    # Configure RouterA.

    [RouterA] hmac enable

    # Configure RouterB.

    [RouterB] hmac enable

  5. Enable the USB-based deployment function on the two devices.

    # Configure RouterA.

    [RouterA] autoupdate enable

    # Configure RouterB.

    [RouterB] autoupdate enable

  6. Connect the USB flash drive to a device and start the upgrade process. (Connect the USB flash drive to the other device after completing the upgrade of the first device.)
  7. Observe the indicator on the USB flash drive to monitor the deployment state.

    • If the deployment files do not exist, the indicator is off.

    • If the deployment files exist but are invalid, USB-based deployment fails and the indicator is steady red.

    • If valid deployment files exist but cannot be executed, USB-based deployment fails and the indicator is steady red.

    • If valid deployment files exist and can be executed, USB-based deployment starts and the indicator blinks green.

      During the deployment, the system obtains the required files according to content in the index file (USB_AR.ini) and saves the files in the default storage medium. Then the device specifies the new system software and configuration file as the files for next startup, and restarts.

  8. Verify the configuration.

    # After the device restarts, the system checks the deployment state. If the deployment indicator is steady green, USB-based deployment succeeds.

    After the USB-based deployment succeeds, remove the USB flash drive.

    Run the display usb usb-id autoupdate state command to check the progress of USB-based deployment.

    <RouterA> display usb 1 autoupdate state
    Info: Deployment using the USB flash drive is completed successfully.
    <RouterB> display usb 1 autoupdate state
    Info: Deployment using the USB flash drive is completed successfully.

Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100034066

Views: 89425

Downloads: 487

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next