community read cipher

Function

The community read cipher command configures an SNMP test instance to carry a read community name in NQA packets.

The undo community command restores the default configuration.

By default, an SNMP test instance carries the public read community name in NQA packets.

Format

community read cipher community-name

undo community

Parameters

Parameter Description Value
community-name

Specifies a community name.

The value is a case-sensitive string without metacharacters, such as spaces or question marks. The value ranges from 1 to 32 characters in plaintext and 32 to 168 characters in ciphertext.

The character string can contain spaces if it is enclosed with double quotation marks (" ").

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

A read community name uniquely identifies a community, a collection of the NMS and SNMP agents, and is used for communication authentication. The NMS and SNMP agents can communicate only if they have the same read community name. To configure an SNMP test instance to carry a read community name in NQA packets, run the community read cipher command.

If a target SNMP agent runs SNMPv1 or SNMPv2c, the read community name specified in the community read cipher command must be the same as the read community name configured on the SNMP agent. Otherwise, the SNMP test will fail.

Prerequisites

An SNMP test instance has been configured using the nqa and test-type commands.

Example

# Configure an SNMP test instance to carry a read community name in NQA packets.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[~HUAWEI-nqa-user-test] test-type snmp
[~HUAWEI-nqa-user-test] community read cipher Huawei-123
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >