snmp-agent sys-info version

Function

The snmp-agent sys-info version command configures SNMP system information.

The undo snmp-agent sys-info version command restores the default SNMP system information.

By default, the version is SNMPv3.

Format

snmp-agent sys-info version { { v1 | v2c | v3 } * | all }

undo snmp-agent sys-info version { { v1 | v2c | v3 } * | all }

Parameters

Parameter Description Value
v1

Indicates SNMPv1.

v1

v2c

Indicates SNMPv2c.

v2c

v3

Indicates SNMPv3.

v3

all

Enables all SNMP versions, namely, SNMPv1, SNMPv2c, and SNMPv3.

all

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
snmp write

Usage Guidelines

Usage Scenario

To configure features in a specified version, run the snmp-agent sys-info version command to set an SNMP version.

SNMP of each version supports various access control functions:

SNMPv1:

  • Community-name-based access control
  • MIB-view-based access control

SNMPv2c:

  • Community-name-based access control
  • MIB-view-based access control
  • Supporting Inform messages

Besides inheriting basic SNMPv2c operations, SNMPv3 defines a management architecture, which introduces a User-based Security Model (USM) to provide users with a more secure access mechanism.

  • User group
  • Group-based access control
  • User-based access control
  • Authentication and encryption mechanisms
  • Supporting Inform messages

Run the display snmp-agent sys-info command to view system maintenance information, such as the node physical location and SNMP version.

Configuration Impact

Running the undo snmp-agent command cause configuration of all SNMP versions (SNMPv1, SNMPv2c, and SNMPv3) on the device to become invalid.

Precautions

SNMPv1 and SNMPv2c have security risks. Using SNMPv3 is recommended.

Example

# Set the current SNMP version to v3.
<HUAWEI> system-view
[~HUAWEI] snmp-agent sys-info version v3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >