Samuel, I took a look at opennms-config-model/src/main/java/org/opennms/netmgt/eventd/datablock/EventUtil.java which is used to decode the %..% strings inside the event text message. Unfortunately, I don't see an easy way to get an IP address out of the hex string. My suggestion is that you open an issue on http://issues.opennms.org/ asking for an enhancement for this.
What would be nice in the template engine is a way to convert the value from one format to another. So you could take the base64 text value and display it as an IPv4 or IPv6 address. There have been times I've found when editing a notification that it would have been nice to have a access to the java objects used instead of being limited by what the template engine allows via the %..% strings. Ron -----Original Message----- From: Samuel Mutel [mailto:smu...@monitoring-fr.org] Sent: Wednesday, May 22, 2013 8:55 AM To: OpenNMS Code Development and Bugs Subject: [opennms-devel] Fwd: [opennms-discuss] OctetString base64 in trap Hello, Any idea ? Regards, Samuel Mutel. ----- Mail transféré ----- De: "Samuel Mutel" <smu...@monitoring-fr.org> À: "General OpenNMS Discussion" <opennms-disc...@lists.sourceforge.net> Envoyé: Mardi 21 Mai 2013 13:48:01 Objet: [opennms-discuss] OctetString base64 in trap Hello, I receive a SNMP trap from a CISCO equipment. In this trap I have a parameter. In the database this parameter is stored as UF6yJA%61%61(OctetString,base64). In the web interface, I see cikePeerLocalAddr 0x505eb224; However cikePeerLocalAddr seems to be an IP address. How can I see the IP address in a "clear" syntax ? Regards, Samuel Mutel. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ 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 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel