|
From: <ola...@de...> - 2015-10-12 13:02:42
|
Hi, I've read about the scriptd configuration and got through many examples of forwarding traps but there was no solution about forwarding a (generic) SNMP v2 trap as a SNMP v1 trap and adding varbinds during that process. The description of the Class SnmpTrapHelper says that you can add varbinds in the process of creating a trap only. My skills in programming with Java and/or BeanShell are at a very low level so I'm still at that point where I could need an example. Does anyone have such a script? Olaf Kasten DB Netz AG ----- Weitergeleitet von Olaf Kasten/DB AG/DE am 07.10.2015 11:06 ----- Von: ola...@de... An: General OpenNMS Discussion <ope...@li...>, Datum: 06.10.2015 08:11 Betreff: [opennms-discuss] Antwort: Re: Problem forwarding GenericSNMPv2 traps Hi David, many thanks for that answer. But how could I change the scriptd configuration so traps will be forwarded as SNMP v1 traps. To be honest I don't have a clue about beanshell scripting. Is it possible to get an example? I didn't find a solution on the openNMS site or via Google. Kind regards Olaf Kasten DB Netz AG David S Hustace ---06.10.2015 04:13:09---> On Oct 2, 2015, at 9:07 AM, ola...@de... wrote: > Von: David S Hustace <da...@op...> An: DiscussionList List <ope...@li...>, Datum: 06.10.2015 04:13 Betreff: Re: [opennms-discuss] Problem forwarding GenericSNMPv2 traps On Oct 2, 2015, at 9:07 AM, ola...@de... wrote: Hi there, I'm having a problem in forwarding SNMP traps. The following output of a logfile from our IBM Tivoli Netcool shows the problem. This is a Generic-SNMPv2 trap with a link up event. In the logfile you'll find as 'Ipadress' the IP of the openNMS system but not the original IP of the system sending the trap. So it seems the IP address changed in the process of trap forwarding. As I read this is according to SNMP RFC. But how can I get the original sender IP address? An SNMP Trap receiver cannot “proxy forward" SNMPv2c Traps from an agent to another Trap receiver as SNMPv2c Traps without loosing the “identity" (IP address) of the sending agent. You can, however, forward the v2c Traps as a v1 Traps and retain the “identity” of the sending agent because the v1 SNMP Trap PDU has an “agent-addr” field that the SNMP v2c PDU doesn’t. David Hustace The OpenNMS Group, Inc. [Anhang "signature.asc" gelöscht von Olaf Kasten/DB AG/DE] ------------------------------------------------------------------------------ _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-discuss ------------------------------------------------------------------------------ _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-discuss |