SNMP: Capture Trap with NET-SNMP

Source: Internet
Author: User
Tags snmp

Management side: 172.18.0.135 win7 system proxy: 172.18.0.212 Debian7.2

Premise: SNMP is configured on the proxy side, it can realize the system Information monitoring with SNMP protocol normally.

1, the management side download net-snmp:http://jaist.dl.sourceforge.net/project/net-snmp/net-snmp%20binaries/5.6.1.1-binaries/ Net-snmp-5.6.1.1-1.x86.exe

2, Installation: Do not modify the installation path, using the default path on the line, my default is installed in the C:\usr\ path

3, enter the debug mode, print the Received trap: Enter the bin path of the NET-SNMP installation path, execute snmptrapd-f-le-d

4, from can be seen error: No configuration access control information, will receive the trap is discarded, so need to configure the snmptapd.conf file

5. Configure snmptapd.conf file: Create snmptapd.conf file under C:\usr\etc\snmp path, join:disableauthorization Yes

6, re-execute snmptrapd-f-le-d

7, the agent side to execute the test command to see if there is a print log, the default port is 162

the command line format for Snmptrap is as follows:snmptrap-v [2c|3] [COMMON OPTIONS] Uptime trap-oid [oid TYPE VALUE]

8. Check if there is a trap captured by the management side:

Here you can see that the management side can capture the trap.

SNMP: Capture Trap with NET-SNMP

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.