set ztp pre-configuration

Function

The set ztp pre-configuration command loads a pre-configuration file (in python format).

The reset ztp pre-configuration command clears pre-configuration files on the device.

By default, no pre-configuration files exist on a device.

Format

set ztp pre-configuration file-name

reset ztp pre-configuration

Parameters

Parameter Description Value
file-name

Specifies the name of a pre-configuration file. The file name must be suffixed with .py.

The value is a string of 1 to 65 case-sensitive characters which can be a combination of digits, letters, and underscores (_). It cannot contain spaces. The file name must not start with a digit or contain other special characters. A pre-configuration script can be named as preconfig.py for example.

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ztp write

Usage Guidelines

Usage Scenario

If you want the device to execute the ZTP process to load a pre-configuration file, you can run the set ztp pre-configuration command to load or modify the pre-configuration file.

Example

# Set the default configuration file to ztp_default.py.
<HUAWEI> set ztp pre-configuration ztp_default.py
# Clear pre-configuration files on a device.
<HUAWEI> reset ztp pre-configuration
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >