display snmp-agent community

Function

The display snmp-agent community command displays the configured community information.

Format

display snmp-agent community [ read | write ]

Parameters

Parameter Description Value
read

Displays the name, group name, and storage type of a read-only community. The parameter is specified using the snmp-agent community command.

-

write

Displays the name, group name, and storage type of a read-write community. The parameter is specified using the snmp-agent community command.

-

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
snmp read

Usage Guidelines

Usage Scenario

To display information about an existing agent community, run the display snmp-agent community command. The command output contains the following information:

  • Community name: encrypted text
  • Group name: encrypted text
  • Storage type
  • ACL

Prerequisites

A community name has been configured using the snmp-agent community command.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about an existing community.
<HUAWEI> display snmp-agent community
2021-07-31 14:57:10.634
   Community name: %^%#m$w|K7,.13{0,p~(y_U#qIr$U4JBC$TW5jHd[l6LKz'C"$T.^/y<l&/|BQ*(/8Qj(_HIq2M#U5<4&_p!%^%#
       Group name: %^%#m$w|K7,.13{0,p~(y_U#qIr$U4JBC$TW5jHd[l6LKz'C"$T.^/y<l&/|BQ*(/8Qj(_HIq2M#U5<4&_p!%^%#
       Acl: 2000
       Alias name: public123A
       Storage-type: nonVolatile
Table 1 Description of the display snmp-agent community command output
Item Description
Community name

Encrypted community name.

Group name

Name of a group.

Alias name

Community alias.

You can run the snmp-agent community command to configure an SNMPv1/SNMPv2c community alias.

Acl

ACL number or name.

Storage-type

Standard type of saving a row to memory:

  • other (1).
  • volatile (2): A row is saved to volatile memory. The row will be lost once the device is restarted. If the storage type of a row is set to volatile (2), you cannot change it to permanent (4) or readOnly (5).
  • nonVolatile (3): A row is saved to non-volatile memory, such as Non Volatile Random Access Memory (NVRAM). The row can be restored after the device is restarted. If the storage type of a row is set to nonVolatile (3), you cannot change it to permanent (4) or readOnly (5).
  • permanent (4): A permanent row is saved to non-volatile memory, such as Read-only Memory (ROM). If the storage type of a row is permanent (4), you cannot change it to other storage types.
  • readOnly (5): A read-only row is saved to non-volatile memory, such as ROM. If the storage type of a row is readOnly (5), you cannot change it to other storage type. In addition, you cannot delete the row.

    Only nonVolatile (3) is available.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >