< Home

Example for Configuring USB-based Deployment

Networking Requirements

To reduce labor costs and save time in device deployment, two new devices need to be automatically upgraded and configured. Requirements for the deployment are as follows:
  • The devices need to be upgraded at 02:09 a.m. on July 28, 2013.
  • The first device S5720-EI needs to be upgraded from V200R019C10 to a later version, and its MAC address is 0018-0303-1234. This device needs to load the new system software package S5720-EI-new.CC and a user-defined file userfile.txt. After the upgrade, the old system software package needs to be deleted.
  • The second device S5720-HI needs to be upgraded from V200R019C10 to a later version, and its ESN is 020TEA10xxxxxxxx. This device needs to load the new system software package S5720-HI-new.CC, configuration file vrpcfgnew.zip, and path file patch.pat.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Make an index file smart_config.ini.
  2. Save the smart_config.ini file and upgrade files to the root directory of the USB flash drive.
  3. Connect the USB flash drive to a USB port of each device to complete automatic software upgrade.

Procedure

  1. Make an index file.

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

    BEGIN LSW
    [GLOBAL CONFIG]
    TIMESN=20130728.020900
    [DEVICE0 DESCRIPTION]
    MAC=0018-0303-1234
    AUTODELFILE=YES
    DEVICETYPE=S5720-EI
    SYSTEM-SOFTWARE=S5720-EI-new.CC
    SYSTEM-USERDEF1=userfile.txt
    [DEVICE1 DESCRIPTION]
    ESN=020TEA10xxxxxxxx
    DEVICETYPE=S5720-HI
    SYSTEM-SOFTWARE=S5720HI-new.CC
    SYSTEM-CONFIG=vrpcfgnew.zip
    SYSTEM-PAT=patch.pat
    END LSW
    

  2. Save the smart_config.ini file and upgrade files to the root directory of the USB flash drive.
  3. Connect the USB flash drive to the S5720-EI to start the deployment process. Observe the SYS indicator on the switch to monitor the deployment state.

    After the switch restarts, the system checks the deployment state. If the SYS indicator blinks yellow slowly (once every 2s), the USB-based deployment has succeeded. If the SYS indicator blinks red, the USB-based deployment has failed. View the usbload_error.txt file in the root directory of the USB flash drive to analyze why the deployment fails.

    If the USB-based deployment succeeds, remove the USB flash drive and connect it to the other device.

  4. Connect the USB flash drive to the S5720-HI to start the deployment process. Observe the USB indicator on the switch to monitor the deployment state.

    After the switch restarts, the system checks the deployment state. If the USB indicator blinks yellow slowly (once every 2s), the USB-based deployment has succeeded. If the USB indicator blinks red fast (twice every 1s), the USB-based deployment has failed. View the usbload_error.txt file in the root directory of the USB flash drive to analyze why the deployment fails.

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

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.