< Home

Editing an Intermediate File

Context

If neither Option 148 nor Option 67 (configuration file information) is configured on the DHCP server, EasyDeploy needs to be implemented using an intermediate file.

An intermediate file is saved on a file server to specify information about files to be downloaded. Each line in an intermediate file specifies the MAC address, ESN or Model of a device and files for the device. After a zero touch device obtains the IP address of the file server, it downloads the intermediate file from the file server. After the device finds the system software name, system software version, patch file name, web page file name, and configuration file name that match its MAC address, ESN, or Model, it downloads the files from the file server.

Procedure

You can edit an intermediate file by writing MAC addresses, ESNs, or models of the devices to be configured and names of the matching system software packages, patch files, web page files, and configuration files in the intermediate file. The detailed operations are as follows:

  1. Create a text file and name it as lswnet.cfg.

  2. Edit the file.

    Assume that a device's MAC address is 0018-82C5-AA89, ESN is 93000701xxxxxxxx, model is S5730-36C-HI and the device needs to download the software package auto_V200R019C10SPC200.cc (version V200R019C10SPC200), patch file auto_V200R019C10.pat, configuration file auto_V200R019C10.cfg, and web page file auto_V200R019C10.web.7z. Write the following content in the intermediate file lswnet.cfg (fields in the intermediate file must be in lowercase):

    mac=0018-82C5-AA89;vrpfile=auto_V200R019C10SPC200.cc;vrpver=V200R019C10SPC200;patchfile=auto_V200R019C10.pat;cfgfile=auto_V200R019C10.cfg;webfile=auto_V200R019C10.web.7z;
    • To configure multiple devices, define the configuration information for a device in each line in the intermediate file. The size of the intermediate file cannot exceed 1 MB.
    • The intermediate file must contain one of the device MAC address, ESN, and model, which are prioritized in descending order. In the file, the configuration file name is mandatory, whereas the system software name, web page file name, and patch file name are optional and can be written in any sequence.
    • If the intermediate file contains the software version, the system software package name must be specified in the intermediate file, and the version of the specified system software must be the same as the software version specified in the intermediate file.
    • You can also specify the paths of the system software, patch file, web page file, and configuration file in the intermediate file, for example:
      mac=0018-82C5- AA89;vrpfile=auto/auto_V200R019C10SPC200.cc;vrpver=V200R019C10SPC200;patchfile=auto/auto_V200R019C10.pat;cfgfile=auto/auto_V200R019C10.cfg;webfile=auto/auto_V200R019C10.web.7z;

      In the preceding file, auto is the folder that saves the files on the file server.

    • The file path specified in the intermediate file contains a maximum of 48 characters.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >