< Home

set device usb-deployment config-file password

Function

The set device usb-deployment config-file password command configures an encryption password for the configuration file used in USB-based deployment.

The undo set device usb-deployment config-file password command deletes the encryption password for the configuration file used in USB-based deployment.

By default, no encryption password is configured.

If upgrade files for USB-based deployment include a configuration file, it is recommended that you run this command to configure an encryption password for the configuration file and compress the configuration file using the configured password before saving it in the USB flash drive. This configuration improves security.

Format

set device usb-deployment config-file password password

undo set device usb-deployment config-file password

Parameters

Parameter Description Value

password

Specifies the password used for encrypting the configuration file.

The value is a string of 1 to 64 characters or a string of 48 to 108 characters.
  • If the password is in plain text, it is a string of 1 to 64 case-sensitive characters and must be a combination of at least two of the following: letters, digits, and special characters.
  • If the password is in cipher text, it is a string of 48 to 108 characters.
The password is displayed in cipher text in the configuration file regardless of whether you enter it in plain or cipher text.

Views

System view

Default Level

3: Management level

Usage Guidelines

If a password is configured using the set device usb-deployment config-file password password command, you need to compress and encrypt the configuration file (if any) with this password and save the compressed file to a specified directory in the USB flash drive. The device cannot compress a .zip configuration file. If such a configuration file is used, decompress the file, use the configured password to compress it, and save it in the USB flash drive.

A user with a level lower than the management level cannot query the password configured using this command. If this user query the configuration file, the password is displayed as asterisks (******).

Example

# Set the encryption password for the configuration file used in USB-based deployment to Pwd123456.

<HUAWEI> system-view
[HUAWEI] set device usb-deployment config-file password Pwd123456
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >