The snmp-agent sys-info command sets SNMP system information and an SNMP version.
The undo snmp-agent sys-info command cancels the current setting.
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, with spaces supported. |
| location location | Indicates the location of a device. | The value is a string of 1 to 255 case-sensitive characters, with spaces supported. |
| version | Sets the SNMP version number used by the system. | - |
| v2c | Specifies SNMPv2c. | - |
| v3 | Specifies SNMPv3. | - |
| all | Specifies SNMPv2c and SNMPv3. | - |
By default, the system maintenance information is " R&D, Huawei Technologies Co.,Ltd.": the system location is " China" and the version is SNMPv3.
Usage Scenario
When information about devices (such as system maintenance information, physical location information about a node of a device or the current SNMP version information) is changed, run the snmp-agent sys-info command to configure information about devices.SNMPv2c is not secure enough.
After information about devices is configured using the snmp-agent sys-info command, you can run the display snmp-agent sys-info command to view information about devices.
Precautions
SNMPv2c have security risks. Using SNMPv3 is recommended.
If a fault occurs on a device, device maintenance engineers can contact the device vendor based on system maintenance contact information.