Management side: 172.18.0.135 win7 system proxy: 172.18.0.212 Debian7.2Premise: 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-binarie
Snmp trap is as famous as SNMP proxy. TRAP is also a very important part of SNMP protocol applications. So let's take a look at this part. We know that TRAP is the self-trapping feature of SNM
/, and experiment with each other based on different situations)
Add the following line:
Set access permissions for all users: executable, record, and pass:
Authcommunity execute, log, net public
Set traphandle (that is, when you receive the OID information of. 1.3.6.1.4.1.2021.251.1, run test. pl)
Traphandle. 1.3.6.1.4.1.2021.251.1/home/long/test. pl
Here. 1.3.6.1.4.1.2021.251.1 is an Enterprise-OID
/Home/long/test. pl is a processing perl file:
#!/usr/bin/perluse strict;my $file="file.trap";op
. Different machines may be stored in/etc/snmp,/usr/local/share/snmp/, and experiment with each other based on different situations)
Add the following line:
Set access permissions for all users: executable, record, and pass:
authcommunityexecute,log,netpublic
Set traphandle (that is, when you receive the OID information of. 1.3.6.1.4.1.2021.251.1, run test. pl)
traphandle.1.3.6.1.4.1.2021.251.1/
In the SNMP protocol, we often apply it to the configuration of hardware. With the popularization of SNMP, SNMP is added by default to almost all devices. Today we will focus on the SNMP trap settings in Cisco devices. The following figure shows the specific settings.
1. Set
equipment log records summary, easy to manage and query, extract useful log information for network security management use, timely found about security equipment in the process of security problems, In order to better ensure the network uptime.
Comparison of acquisition techniques
Network management commonly used to collect log data, including text mode acquisition, SNMP trap mode acquisition and Syslog m
The use of SNMP has become a default project for many devices. Then, some of the module applications have become the focus of attention. This article mainly introduces the establishment of SNMP Trap. First, let's take a look at the use environment of this Protocol.
Develop Trap macro types
It should be noted that the e
SNMP Trap is a protocol function in the SNMP protocol. In many devices, we use this self-trapping function for some management. So let's talk about some SNMP Traps in Cisco today.
Configure a Cisco IOS device
In the Enable status of IOS, click config terminal to enter the global configuration status.
Enable Cdp run
from UDP port 1620 of all network interfaces on the platform. You can specify the IP address or other non-authorized port (greater than 1024) of a specific network interface as needed ).
You can use netstat to check the port status.
Configure trap Generator
Step 1,In an SNMP-enabled system or application, set the hypeic agent as the destination for receiving traps.
Step 2,Provides the
}netsnmpexampleheartbeatnotification NOTIFICATION-TYPE OBJECTS {netsnmpexampleheartbeatrate} STATUS current DESCRIPTION"An example notification, used to illustrate thedefinition and generation of trap and inform PDUs (including the use of both standard and additional VarbindsinchThe notification payload). This notification'll typically be sent every -SecondsusingThe code foundinchThe example Module Agent/mibgroup/examples/notification.c":: = {Netsnmpe
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.