(1)
SNMP-Agent sys-Info contact <string>
Set the Administrator's ID and contact method. Replace it with the value you want to set, the same below. This value is initially Huawei Beijing China, with instructions
Display current-Configuration
You can see this item at the end of the currently executed configuration.
(2)
SNMP-Agent sys-Info location <string>
Set the location information of the vswitch.
(3)
SNMP-Agent Community read public
Set an SNMP community. When using this community to connect to a vswitch, you can only read its SNMP information. You can replace the public in the command with the string you want.
(4)
SNMP-Agent community write private
Set an SNMP community. When using this community to connect to a vswitch, you can not only read the SNMP information, but also write the value to the snmp mib object to configure the device. You can replace private in the instruction with the desired string.
(5)
SNMP-Agent sys-Info version all
Set the SNMP protocols supported by the vswitch, including V1, v2c, and V3. If you are not sure about the three versions, it is best to set it to all, and the three Protocols will be supported at the same time. Initially only V3 is supported on the S3050C-0025, and if you do not set it correctly, some reading software such as mibbrower may not be able to read the information.
Generally, you only need to set the commands (3) and (5) to read the SNMP information of the switch. The settings on the old VRP system may be different. The vswitch I tested uses vrp3.10.
I am using the PHP-SNMP function to read the SNMP information of the switch.