< Home

configuration copy file to running

Function

The configuration copy file to running command executes commands in a specified configuration file.

Format

configuration copy file file-name to running

Parameters

Parameter Description Value
file-name Specifies the name of a configuration file to be executed. The value is a string of 4 to 160 characters in the [ drive ] [ path ] file-name format. The file name extension must be .cfg or .zip.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To execute an existing configuration file, run the configuration copy file to running command. All the commands in the specified configuration file are executed at one time.

Precautions

Only one user can execute the configuration copy file to running command at one time.

If configuration restoration occurs or a batch backup operation is performed, the configuration copy file to running command ends.

If a command fails during the execution of the configuration copy file to running command, the system skips it and executes the next command.

If the configuration file to be executed contains a restart command, the device will restart when the restart command is executed. Therefore, exercise caution when executing the configuration file.

Example

# Execute the commands in the huawei.cfg file.

<HUAWEI> configuration copy file huawei.cfg to running
Warning: This operation may take a long time, press CTRL+C to break. Continue?[Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >