Before delivery, a device can load a configuration file that contains commands for specifying file server addresses, name of an intermediate file for site deployment, and a shared key between the device and an SNMP host. After your simple login configuration, the device can automatically obtain and load correct configurations, reducing the manual operation cost.
Pre-configured devices stay in the Busy state when being deployed. You can execute only display commands, not configuration commands.
Pre-configured device deployment commands are contained in the configuration file delivered together with the device. When the device is running properly, these commands cannot be manually executed.
When the device is running properly, to start the pre-configured device deployment process, specify the configuration file for the next startup again and restart the device. The configuration file for the next startup must contain pre-configured device deployment commands.
If you do not need the pre-configured device deployment function, run undo commands to delete these configurations to prevent them from affecting other functions.
Table 1 lists the pre-configured commands in a device's configuration file.
Function |
Command |
Remarks |
---|---|---|
Enable pre-configured device deployment. |
easy-operation client ztp-with-cfg enable | By default, pre-configured device deployment is disabled. |
(Optional) Specify an intermediate file for pre-configured device deployment. |
easy-operation client netfile filename | By default, devices use the intermediate file lswnet.cfg for pre-configured device deployment. |
(Optional) Specify the VLAN used in the configured device deployment procedure. |
easy-operation client vlan vlanid | By default, the VLAN used by the device is VLAN 1. |
Configure file servers. |
Specifying IP addresses:
|
|
Specifying URLs:
|
||
Configure a shared key between the device and an SNMP host. |
easy-operation client snmp securityname cipher password |
- |
A batch of pre-configured Huawei switches needs to be deployed. The intermediate file ztpwithcfg.cfg and version files have been uploaded to the SFTP file server with IP address 10.1.1.1, user name test, and password easyoperation. The shared key between the switches and SNMP host is huawei123. The used VLAN is VLAN 100. The configuration files of the switches contain the following configurations:
# easy-operation client ztp-with-cfg enable easy-operation client netfile ztpwithcfg.cfg easy-operation client vlan 100 easy-operation client sftp-server ip-address 10.1.1.1 username test password easyoperation easy-operation client snmp securityname cipher huawei123 # return