[SNMP4J] IPv6 address in varbind is represented as 0.0.0.0 on receiver machine

Vijay Reddy (dvsreddy) dvsreddy at cisco.com
Wed Oct 28 22:52:31 CET 2009


Hi Frank,

Thanks for taking your time and helping me,

One looking at the MIB(IPv6-TC.my) definition for IPv6Address, it is
OCTET_STRING internally.

-- definition of textual conventions
        Ipv6Address ::= TEXTUAL-CONVENTION
             DISPLAY-HINT "2x:"
             STATUS       current
             DESCRIPTION
               "This data type is used to model IPv6 addresses.
                This is a binary string of 16 octets in network
                byte-order."
             SYNTAX       OCTET STRING (SIZE (16))

If I want to generate the varbind with ipv6 value, should I be using the
varbind type as OCTET_STRING for constructing
org.snmp4j.smi.VariableBinding object.



Thanks and regards,
Vijay 

-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com] 
Sent: Wednesday, October 28, 2009 10:54 AM
To: Vijay Reddy (dvsreddy)
Cc: snmp4j at agentpp.org
Subject: Re: [SNMP4J] IPv6 address in varbind is represented as 0.0.0.0
on receiver machine

Hi Vijay,


Vijay Reddy (dvsreddy) wrote:
> 
> Is it the SNMP4J stack based on the varbind type and data, it decided 
> to put 0.0.0.0?

I do not understand this question.

> 
> To support Ipv6 in varbind, do I need to pick the OID that has type 
> defined as Ipv6? Can you point me to some examples to generate ipv6 
> address in varbind?

There is no Ipv6 base type. See RFC 3419 (TRANSPORT-ADDRESS-MIB) for
alternatives.

> 
> Basic question, Does SNMP4J has list of supported mibs? 

No, because SNMP4J supports all MIBs.

Regards,
Frank

> 
> 
> Thanks and regards,
> Vijay
> 
> -----Original Message-----
> From: Frank Fock [mailto:fock at agentpp.com]
> Sent: Tuesday, October 27, 2009 3:21 PM
> To: Vijay Reddy (dvsreddy)
> Cc: snmp4j at agentpp.org
> Subject: Re: [SNMP4J] IPv6 address in varbind is represented as 
> 0.0.0.0 on receiver machine
> 
> Hi Vijay,
> 
> I do not know which type the object
> 1.3.6.1.4.1.9.2.9.3.1.1.66.1
> has by its MIB specification, however, I guess, it is IpAddress. The 
> syntax IpAddress is IPv4 *only*. If you use a IPv6 address to set it, 
> it will be undefined what address is used on the wire. Most likely, it

> is the default (0.0.0.0) or the IPv4 portion of the IPv6 address or 
> something completely different.
> 
> Regards,
> Frank
> 
> Vijay Reddy (dvsreddy) wrote:
>> Hi All,
>>  
>> Can someone pls help me with the problem am having,
>>  
>> Am trying to send ipv6 address as part of trap varbinds.  On sender 
>> machine it looks ok but on receiving machine value is represented as 
>> 0.0.0.0.
>>  
>> On further debugging with the help of wireshark, on sender machine 
>> itself it is sent as 0.0.0.0. Is there any specific reason for it.
>>  
>> Tried with latest SNMP4J version, can any one help me if am doing 
>> anything wrong.
>>  
>> On sender machine (Using SNMP4J ):
>>  
>> CommunityTarget[address=171.69.75.60/162, version=1, timeout=1000, 
>> retries=0, community=public] ****  TRAP[requestID=0, 
>> errorStatus=Success(0), errorIndex=0, VBS[1.3.6.1.2.1.1.3.0 = 
>> 0:16:40.00; 1.3.6.1.6.3.1.1.4.1.0 = 1.3.6.1.4.1.9.9.43.2.0.1;
>> 1.3.6.1.4.1.9.2.9.3.1.1.66.1 = 2001:db8:85a3:0:0:8a2e:370:7334;
>> 1.3.6.1.4.1.9.2.9.3.1.1.67.1 = 10.10.10.1]]
>>  
>> On receiver machine (Using SNMP4J ):
>>  
>> CommandResponderEvent[transportMapping=org.snmp4j.transport.DefaultUd
>> p Tr ansportMapping at 8b819fpeerAddress=30.30.30.15/34313,
>> processed=false, pdu=[TRAP[requestID=1234289308, 
>> errorStatus=Success(0), errorIndex=0, VBS[1.3.6.1.2.1.1.3.0 = 
>> 0:16:40.00; 1.3.6.1.6.3.1.1.4.1.0 = 1.3.6.1.4.1.9.9.43.2.0.1;
>> 1.3.6.1.4.1.9.2.9.3.1.1.66.1 = 0.0.0.0;
>> 1.3.6.1.4.1.9.2.9.3.1.1.67.1 = 10.10.10.1]]], securityName=public, 
>> securityModel=2, securityLevel=1]
>>
>>  
>> Thanks and regards,
>> Vijay
>> _______________________________________________
>> 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