< Home

easy-operation shared-key

Function

The easy-operation shared-key command configures a shared key for the Commander or a client.

The undo easy-operation shared-key command deletes the configured shared key of the Commander or client.

By default, no shared key is configured on a Commander or client.

Format

easy-operation shared-key cipher key-string

undo easy-operation shared-key

Parameters

Parameter Description Value

cipher

Configures a shared key in cipher text.

-

key-string

Specifies a shared key.

The value is a string of case-sensitive characters without spaces. A plain text key contains 1 to 64 characters, and a cipher text key contains 48 to 108 characters.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In batch upgrade and configuration scenarios, to enhance security for communication between the Commander and clients and prevent a bogus Commander from controlling clients, run the easy-operation shared-key command to configure the same shared key for the Commander and clients.

Precautions

  • The same shared key must be configured on the Commander and clients simultaneously.
  • If a shared key has been configured on the Commander, the Commander cannot manage clients running versions earlier than V200R008C00 and clients that have no shared key configured.
  • The shared key configuration does not affect zero touch device deployment.
  • After DTLS encryption is enabled, the shared key configured using the easy-operation shared-key command does not take effect.

Example

# Configure a shared key on the Commander.

<HUAWEI> system-view
[HUAWEI] easy-operation shared-key cipher Easy@huawei
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >