The use of the
SNMP protocol in switches I'm sure you're not unfamiliar, so let's go over 5 basic switch SNMP configuration commands in detail. The completion of the switch SNMP configuration commands is a common problem, how to complete the switch SNMP configuration commands, it also has any related password and so on, all will be comprehensively solved in this article.
Switch SNMP configuration command (1): snmp-agent sys-info Contact
To set the administrator's identity and contacts, please replace the value you want to set, the same below. This value is initially the BeiJing of Current-configuration, which can be seen at the end of the currently executing configuration with the command display. The
Switch SNMP configuration command (2): snmp-agent sys-info Location
Sets the location information for the switch, which is not initially set.
Switch SNMP configuration command (3): snmp-agent Community Read Public
to set up an SNMP community that can only read its SNMP information when it is used to connect to the switch. You can change the public in the instruction to the string you want.
Switch SNMP configuration command (4): snmp-agent Community Write Private
to set up an SNMP community, when the community is used to connect the switch, Not only can the SNMP information be read, but the value can be written to the SNMP MiB object to complete the configuration of the equipment. You can change the private in the command to the string you want.
Switch SNMP configuration command (5): snmp-agent sys-info version All
sets the SNMP protocol supported by the switch, there are v1,v2c,v3 these 3 versions, if you are unsure, it is best to set to all, The 3 agreements will be supported at the same time. The initial s3050c-0025 on the V3 version is only supported, and if you do not set it correctly, some reading software such as mibbrower may not be able to read the information.
generally only need to set the first (3) and (5) instructions to read to the switch SNMP configuration command information. The settings on the old VRP system may be different, and the switches that I tested use the vrp3.10 version. I'm using a PHP-SNMP function to read the SNMP information of the switch.Of