< Home

set device usb-deployment hmac-key

Function

The set device usb-deployment hmac-key command configures an HMAC key for HMAC verification during USB-based deployment.

The undo set device usb-deployment hmac-key command deletes the HMAC key used for HMAC verification during USB-based deployment.

By default, no HMAC key is configured for HMAC verification.

Format

set device usb-deployment hmac-key hmac-key

undo set device usb-deployment hmac-key

Parameters

Parameter Description Value

hmac-key

Specifies an HMAC key for HMAC verification during USB-based deployment.

The value is a string of 32 to 64 or 68 to 108 characters.
  • A cleartext key is a string of 32 to 64 case-sensitive characters and must be a combination of at least two of the following: uppercase letters A to Z, lowercase letters a to z, digits, and special characters.
  • A ciphertext key is a string of 68 to 108 characters.
In the configuration file, a password is displayed in cipher text regardless of whether it is entered in clear text or cipher text.

Views

System view

Default Level

3: Management level

Usage Guidelines

If upgrade files include a configuration file, you can enable HMAC verification to ensure validity of the configuration file to be loaded. After the set device usb-deployment hmac command is run to enable HMAC verification for the configuration file during USB-based deployment, run the set device usb-deployment hmac-key command to configure an HMAC key for HMAC verification so that the device calculates the HMAC value of the configuration file and then compares the value with the HMAC field value in the index file. If the two values are the same, the configuration file is valid and loaded to the device for USB-based deployment. If the two values are different, the configuration file is invalid and cannot be loaded for USB-based deployment.

A user at a level lower than the management level cannot check the HMAC key configured using this command. If this user checks the configuration file, the HMAC key is displayed as ******.

Example

# Configure an HMAC key for HMAC verification during USB-based deployment.

<HUAWEI> system-view
[HUAWEI] set device usb-deployment hmac-key huawei@123456852369741236553424654643213
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >