For the use of the SNMP protocol, we have explained some command operations on Windows and Linux. So today we will explain the related content about the SNMP configuration command of the switch. Five tips for sending the SNMP configuration command to the vswitch: Learn the SNMP configuration command of the vswitch. There are many methods on the network. The following is a collection of methods to solve the problem. I hope it will be helpful to many enthusiasts, are common methods. Take the opportunity to provide it to you.
1) snmp-agent sys-info contact
The ID and contact method of the SNMP configuration command administrator of the vswitch. Replace it with the value you want to set. The initial value is HuaWei BeiJing China. You can use the command display current-configuration to view this item at the end of the currently executed configuration.
2) snmp-agent sys-info location
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 the SNMP configuration command information of the vswitch. 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 3rd) and 5th) commands to read the SNMP configuration command information of the switch. The settings on the old vrp system may be different. The vswitch I tested uses vrp3.10. I'm using a PHP-SNMP function to read the switch SNMP configuration command information.