Editing an Intermediate File
Context
An intermediate file is saved on a file server to specify information about an SNMP host's IP address and 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 device to be deployed 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. Alarms generated by a pre-configured device can be sent to an SNMP host with a specified address.
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. Perform the following steps to edit an intermediate file:
Create a text file with a name extension .cfg.
Edit the file.
For example, assume that a device's MAC address is 0018-82C5-AA89, ESN is 93000701xxxxxxxx, Model is S628 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. The SNMP host's IP address is 192.168.1.1. Set the port number used to receive trap messages to 1000. (This configuration is optional. If the port number is not specified, the default port number 162 is used.) Write the following content in the intermediate file (fields in the intermediate file must be in lowercase):
snmphostv4=192.168.1.1;snmphostport=1000; 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 port number used to receive trap messages, the paths of the system software, patch file, web page file, and configuration file in the intermediate file. In the following file, auto is the folder that saves the files on the file server.
snmphostv4=192.168.1.1;snmphostport=1000;mac=0018-82C5-AA89;vrpfile=auto_V200R019C10SPC200.cc;vrpver=V200R019C10SPC200;patchfile=auto_V200R019C10.pat;cfgfile=auto_V200R019C10.cfg;webfile=auto_V200R019C10.web.7z;
- The file path specified in the intermediate file contains a maximum of 48 characters.