Introduction to SNMP configuration commands for vswitches

Source: Internet
Author: User
Tags snmp

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.

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.