SNMP traps - UI displays IP address varbinds in hex?

Hi all,

We are running OpenNMS 24.1.0 (docker) and receiving SNMP traps from Juniper device.
It seems that IP address based vardinds are not converted from hex to ip string when the OpenNMS event is created. EG: Bgp Backward Transition remote address and BFD remote address.

Is there a way to flag parm[#x] to convert hex to ip string?

Thanks in advance.

Olaf

Hi all,

just following up as I am unable to find any solid info on the wiki, Am I experiencing a bug with Juniper events where peer address are displayed in Hex?

It seems I am able to work around this for bgp4 events using part[name-#4.4:4] expression but unable to do this with BFD traps because the peer address is only available as a trap value in hex format.

jnxBgpM2PeerLocalAddrType 1; unknown(0) ipv4(1) ipv6(2) dns(16)
jnxBgpM2PeerLocalAddr 0xc0a8fa14;
jnxBgpM2PeerRemoteAddrType 1; unknown(0) ipv4(1) ipv6(2) dns(16)
jnxBgpM2PeerRemoteAddr 0xc0a8fa15;

Please see eventd debug below

2019-06-26 11:38:04,722 INFO [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: Received event: UEI=uei.opennms.org/vendor/Juniper/traps/jnxBgpM2BackwardTransition, src=trapd, iface=192.168.250.20, svc=null, time=2019-06-26T11:38:03.876+0100, parms=[.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.6.0.1.192.168.250.20.1.192.168.250.21=1, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.7.0.1.192.168.250.20.1.192.168.250.21=wKj6FA==, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.10.0.1.192.168.250.20.1.192.168.250.21=1, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.11.0.1.192.168.250.20.1.192.168.250.21=wKj6FQ==, .1.3.6.1.4.1.2636.5.1.1.2.2.1.1.1.0.1.192.168.250.20.1.192.168.250.21=Bgc=, .1.3.6.1.4.1.2636.5.1.1.2.2.1.1.5.0.1.192.168.250.20.1.192.168.250.21=, .1.3.6.1.4.1.2636.5.1.1.2.1.1.1.2.0.1.192.168.250.20.1.192.168.250.21=1]
2019-06-26 11:38:04,722 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: Event {
2019-06-26 11:38:04,722 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: uuid =
2019-06-26 11:38:04,722 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: uei = uei.opennms.org/vendor/Juniper/traps/jnxBgpM2BackwardTransition
2019-06-26 11:38:04,723 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: src = trapd
2019-06-26 11:38:04,723 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: iface = 192.168.250.20
2019-06-26 11:38:04,723 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: svc = null
2019-06-26 11:38:04,723 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: time = 2019-06-26T11:38:03.876+0100
2019-06-26 11:38:04,723 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: parms {
2019-06-26 11:38:04,723 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: (.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.6.0.1.192.168.250.20.1.192.168.250.21, 1)
2019-06-26 11:38:04,723 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: (.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.7.0.1.192.168.250.20.1.192.168.250.21, wKj6FA==)
2019-06-26 11:38:04,724 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: (.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.10.0.1.192.168.250.20.1.192.168.250.21, 1)
2019-06-26 11:38:04,724 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: (.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.11.0.1.192.168.250.20.1.192.168.250.21, wKj6FQ==)
2019-06-26 11:38:04,724 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: (.1.3.6.1.4.1.2636.5.1.1.2.2.1.1.1.0.1.192.168.250.20.1.192.168.250.21, Bgc=)
2019-06-26 11:38:04,724 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: (.1.3.6.1.4.1.2636.5.1.1.2.2.1.1.5.0.1.192.168.250.20.1.192.168.250.21, )
2019-06-26 11:38:04,724 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: (.1.3.6.1.4.1.2636.5.1.1.2.1.1.1.2.0.1.192.168.250.20.1.192.168.250.21, 1)
2019-06-26 11:38:04,724 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: }
2019-06-26 11:38:04,724 DEBUG [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: }
2019-06-26 11:38:04,724 INFO [AggregatorFlush-Trap] o.o.n.e.DefaultEventHandlerImpl: Rec