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.
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 } }
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.
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. |
- |
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.
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.
# 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