cancel
Showing results for 
Search instead for 
Did you mean: 

nodeInet46AddressType return values

Highlighted
Occasional Contributor

nodeInet46AddressType return values

Name nodeInet46AddressType!@#.iso.org.dod.internet.private.enterprises.enterprises-7146.enterprises-7146-1.zxtm.nodes.nodeInet46Table.nodeInet46Entry.nodeInet46AddressType
OID .1.3.6.1.4.1.7146.1.2.4.4.1.1
MIB ZXTM-MIB-SMIv2

What are the expected return values for this OID? In testing, it returns a 1 for V4

3 REPLIES
Contributor

Re: nodeInet46AddressType return values

Testing on a system with both type of node addresses, it returns a 1 for an IPv4 and 2 for an IPv6 address.


Assumption disclaimer, given Stingray only accepts a "valid hostname or IP address" I am confident the expected values are either 1 or 2.

Occasional Contributor

Re: nodeInet46AddressType return values

That is what we found too, I would have expected a 4 or 6 to match the actual version

Occasional Contributor

Re: nodeInet46AddressType return values

The values 1 and 2 are what is required by the INET-ADDRESS-MIB:

InetAddressType ::= TEXTUAL-CONVENTION
    STATUS      current
    DESCRIPTION
        "A value that represents a type of Internet address.

         unknown(0)  An unknown address type.  This value MUST
                     be used if the value of the corresponding
                     InetAddress object is a zero-length string.
                     It may also be used to indicate an IP address
                     that is not in one of the formats defined
                     below.

         ipv4(1)     An IPv4 address as defined by the
                     InetAddressIPv4 textual convention.

         ipv6(2)     An IPv6 address as defined by the
                     InetAddressIPv6 textual convention.

[...]