Several methods for testing network SNMP connections (several solutions that I normally use to debug SNMP programs)

Source: Internet
Author: User
Tags snmp snmpset snmpwalk

Several methods for testing network SNMP connections (several solutions that I normally use to debug SNMP programs)

1. How to know which ports on this machine are active.
There are two tools to help you understand which ports are open in your system.
One is to enter "Netstat-an" at the command line to see which ports are active.
The other is using the FPort tool, which is also used under the command line to list the binding relationship between the current process and the active port. Administrator privileges are required. 2. How to determine if the application sent a snmptrap message.
Set 127.0.0.1 in the trap target of the SNMP servers so that the trap message will be sent to itself. Viewing the current event in SNMPC will show whether the Snmptrap message was received by the native and the application sent a snmptrap message. Download Address: AT-SNMPC V7 Chinese version
3. How to determine if the host can receive snmptrap messages.
Using ethereal, capture a packet of IP packets that may contain SNMPTRAP messages, and then analyze the packets if they are received. If you receive the message, the IP packets destined for this machine will be displayed in ethereal. Download Address: ethereal v0.99.0 4. How to determine the host's SNMP service is normal
Using the Snmpwalk application in NET-SNMP is the simplest tool to check if the SNMP extension agent is normal, and at the command line enter: "Snmpwalk-v 1-c public destdoname". NET-SNMP Download Address: net-snmp5.4

5. How to determine if read-write is normal in the host SNMP service
Using Snmpset in Net-snmp, enter "snmpset-v 1-c public destdoname xxx.yyy" at the command line

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.