< Home

snmp-agent sys-info

Function

The snmp-agent sys-info command sets the SNMP system information.

The undo snmp-agent sys-info command restores the default setting.

By default, the system maintenance information is " R&D Beijing, Huawei Technologies Co., Ltd.", the system location is "Beijing China", and the version is SNMPv3.

Format

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

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

Parameters

Parameter Description Value
contact contact Indicates contact information of system maintenance. The value is a string of 1 to 225 case-sensitive characters that can contain spaces.
location location Indicates the location of a device. The value is a string of 1 to 255 case-sensitive characters that can contain spaces.
version { { v1 | v2c | v3 } * | all } Indicates the SNMP version.
  • v1: SNMPv1 is enabled.
  • v2c: SNMPv2c is enabled.
  • v3: SNMPv3 is enabled.
  • all: SNMPv1, SNMPv2c, and SNMPv3 are enabled.
NOTE:

This parameter can be repeatedly configured. If a device runs multiple SNMP versions, the NMS can use any one of them to manage the device.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To configure the contact information for the managed node, you can run the snmp-agent sys-info contact command in the system. If a device fails, maintenance personnel can contact the vendor for device maintenance.

To configure the physical location of the node, you can run the snmp-agent sys-info location command in the system.

To configure features in a specified version, you can run the snmp-agent sys-info version command to set the corresponding SNMP version in the system. SNMPv1 or SNMPv2c is not secure enough. Using SNMPv3 is recommended.

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

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

Precautions

A lack of authentication capabilities in SNMPv1 and SNMPv2c results in vulnerability to security threats, so SNMPv3 is recommended.

Example

# Set the contact information of the system maintenance as "call Operator at 010-12345678".

<HUAWEI> system-view
[HUAWEI] snmp-agent sys-info contact call Operator at 010-12345678

# Set the location of a device as "shanghai China".

<HUAWEI> system-view
[HUAWEI] snmp-agent sys-info location shanghai China

# Set the current SNMP version used by the system to v2c.

<HUAWEI> system-view
[HUAWEI] snmp-agent sys-info version v2c
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >