Hi,
Can SNMP4j be configured to process traps from an input stream rather than from a listener on a port? I would like to use an external upstream listener and stream the traps to SNMP4j for processing.
Thanks, Todd
Hi,
Can SNMP4j be configured to process traps from an input stream rather than from a listener on a port? I would like to use an external upstream listener and stream the traps to SNMP4j for processing.
Thanks, Todd
Yes, sure. The DummyTransport
is probably a good starting point for your own “StreamTransportMapping
”.
There is no ready-to-use implementation available, but it should not be a big deal to create such a transport mapping. The DefaultTcpTransportMapping
, for example, actually processes messages from a TCP stream and need to detect SNMP headers in the stream.
Hope this helps anyway?