[SNMP4J] Recovering IP-Address from Trap?

Frank Fock fock at agentpp.com
Fri Nov 12 18:21:25 CET 2004


Hi Chris,

commandResponderEvent.getPeerAddress() will give you either
a UdpAddress instance or a TcpAddress instance depending
on the transport protocol over which the trap has been received.

Best regards,
Frank

chk-world at gmx.de wrote:

>Hello SNMP4J-Experts,
>
>I was wondering if it would be possible to recover the IP-Address of the
>sender when receiving a trap (a CommandResponderEvent in my programm).
>
>Since net-snmp snmptrapd can do that, I see no reason why it should not be
>possible. I just haven't found the right place to look ;-)
>
>Any help will be appreciated.
>
>Chris
>
>  
>





More information about the SNMP4J mailing list