[SNMP4J] Unsupported address class (transport mapping)
Carlos Vicente
carlos.vicente at edisoft.pt
Mon Jun 19 10:33:28 CEST 2006
Hi Frank,
The only thing I can really say for this lack of attention is
"Ooops"!
Thanks a lot frank. Guess I was just on a hurry to leave for the
holiday on Thursday.
Best regards,
Carlos Vicente
-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com]
Sent: quarta-feira, 14 de Junho de 2006 22:50
To: Carlos Vicente
Cc: snmp4j at agentpp.org
Subject: Re: [SNMP4J] Unsupported address class (transport mapping)
Hi Carlos,
If you use a UDP transport mapping with your Snmp class
then you only can use UpdAddress instances for your
target.
Best regards,
Frank
Carlos Vicente wrote:
> Greetings,
>
>
>
> I've just recently started my way into SNMP protocol (newbie as a
newbie
> can get :-P). After some reading, I created a MIB file, and had a
quick
> look through libsmi library (since the agents will be implemented in C
> or C++).
>
> Since my main task is to create a JAVA manager, I got started with
> SNMP4J, and I'm already having some problems.
>
>
>
> After calling ():
>
>
>
> Snmp snmp = new Snmp(new DefaultUdpTransportMapping());
>
>
>
> --> ResponseEvent response = snmp.send(pdu, target); <--
>
>
>
> The following exception is thrown:
>
>
>
> org.snmp4j.transport.UnsupportedAddressClassException: Unsupported
> address class (transport mapping): org.snmp4j.smi.TcpAddress
>
>
>
>
>
> I'm using TcpAddress class to resolve a DN. After the name is resolved
I
> just pass the IP address to the CommunityTarget instance through
> setAddress. I've also tried to use IpAddress, with the same result
> (can't add a port number with this class but just wanted to check the
> results).
>
>
>
> This is probably too obvious for you guys, but I would appreciate any
> help on the subject.
>
>
>
> Thanks in advance,
>
>
>
> Carlos Vicente
>
>
>
>
>
> _______________________________________________
> 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