Analyze the SNMP-agent method in the snmp of the switch. Let's talk about how to configure the snmp of the switch with specific code. The snmp-agent methods of the following switches are carefully selected and answered by professionals after tests, make sure you understand the usage of the snmp-agent method in the snmp of the switch.
◆ 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. The initial value is BeiJing China. You can use the command display current-configuration to view this item at the end of the currently executed configuration.
◆ Snmp-agent sys-info location <string>
Set the location information of the vswitch.
◆ Snmp-agent community read public
When a switch snmp Community is set up to connect to the switch, only the snmp information of the switch can be read. You can replace the public in the command with the string you want.
◆ Snmp-agent community write private
Set a switch snmp Community. When using this Community to connect to the switch, you can not only read the snmp information of the switch, but also write the value to the MIB object of the snmp of the switch, configure the device. You can replace private in the instruction with the desired string.
◆ Snmp-agent sys-info version all
Set the snmp protocol supported by the vswitch to 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 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 switch snmp information of the switch.