[SNMP4J] Local port in tcp

Frank Fock fock at agentpp.com
Fri Sep 10 00:17:28 CEST 2010


Hi,

The local address will not help. The recommended
solution is using a dedicated TransportMapping
for incoming messages.

Best regards,
Frank

On 09.09.2010 14:49, Rodrigues, Rui 1. (NSN - PT/Amadora) wrote:
> Hello,
>
> We're using snmp4j in a manager. The manager can connect to several
> agent simultaneously using TCP. To receive notifications (traps) from
> the agents, we need to register in the agent stating the local port
> where to send the notifications. The problem is that info is not
> available in the API.
> We're using new DefaultTcpTransportMapping() to create the tcpTransport.
> We use the same to connect to all the agents.
>
> We checked that the list of sockets is available in the
> DefaultTcpTransportMapping class as private Map sockets = new
> Hashtable();. But since its private we can't access it to read the local
> address for a connection to a specific agent.
>
> What would you recommend to overcome this issue? Would it be possible to
> add a way to know the local address used to connect to a specific agent?
>
> Best Regards,
> RAR
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list