[SNMP4J] Multiple interfaces for my Agent

Frank Fock fock at agentpp.com
Tue Mar 18 01:14:36 CET 2008


Hi Rachel,

As a workaround, you can manage additional
TransportMappings outside Snmp and still add
them to Snmp by addTransportMapping. You will
have to call listen() and cancel() on the
additional TransportMappings manually then.

I have changed MessageDispatcherImpl to support
multiple transport mappings per address class
and you check it out from the nightly build
site in about 3 hours at:
http://www.oosnmp.com/~katz/snapshot/

Best regards,
Frank

Larson, Michelle R wrote:
> Hi-
>     I'm writing an Agent and I need it to listen on multiple local UDP
> addresses and ports on a single machine.  It looks like the BaseAgent
> doesn't support that because the MessageDispatcherImpl seems to throw
> all additional UdpAddresses away.  I'm using SNMP4j-Agent version 1.1.4.
> Is there a way to add multiple addresses to the BaseAgent?  I suspect
> that I'll need to write my own MessageDispatcherImpl that doesn't throw
> away transport mappings in the add method.  Will that fix it?  Or is
> there something else I need to do?  Or is there something easier I can
> do.
> 
> Thanks!
> 
> Rachel
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

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



More information about the SNMP4J mailing list