< Home

Deploying a Pre-configured Device

Context

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.

Related Commands

Table 1 lists the pre-configured commands in a device's configuration file.

Table 1 Pre-configured commands

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:

  • easy-operation client ftp-server ipaddress &<1-4> [ username username [ password password ] ]
  • easy-operation client sftp-server ipaddress &<1-4> [ username username [ password password ] ]
  • easy-operation client tftp-server ip-address ipaddress &<1-4>
  • Only one type of file server can be specified.

  • A file server can be specified using either an IP address or URL.

  • If a user name and a password have been set on an SFTP or FTP server, the device must have the same user name and password configured.

  • FTP and TFTP have security risks. Using an SFTP file server is recommended.

Specifying URLs:

  • easy-operation client ftp-server-url ipaddress [ username username [ password password ] ]
  • easy-operation client sftp-server-url ipaddress [ username username [ password password ] ]
  • easy-operation client tftp-server-url ip-address ipaddress

Configure a shared key between the device and an SNMP host.

easy-operation client snmp securityname cipher password

-

Configuration File Example

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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic