Check five common SNMP configuration commands for switches

Source: Internet
Author: User

We believe that the SNMP protocol is no stranger to the use of vswitches. Therefore, we will introduce five basic vswitch SNMP configuration commands. The implementation of the SNMP configuration command of a vswitch is a common problem. How to Implement the SNMP configuration command of a vswitch, And what related passwords does it have? All of these problems will be solved in this article.

SNMP configuration command 1): snmp-agent sys-info contact

Set the Administrator's ID and contact method. Replace it with the value you want to set, the same below. 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.

Switch SNMP configuration command 2): snmp-agent sys-info location

Set the location information of the vswitch.

Switch SNMP configuration command 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.

Switch SNMP configuration command 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.

Switch SNMP configuration command 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 am using the PHP-SNMP function to read the SNMP information of the switch.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.