Analysis of SNMP-agent methods in snmp of Switches

Source: Internet
Author: User
Tags snmp



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.




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.