RE: Do pass-through scripts and snmptrap support IPv6 arguments?

Zack Little <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks for the reply Dave.  I'm confused by your answers and will need some more guidance please.
 

> You don't specify which MIB objects you are querying to retrieve your
> IPv6 addresses. My guess is that you are looking at the ipAddressTable
> to get results such as
 
Initially the requirement given to me was to have our box return both the IPV6-MIB and IPV6-ICMP-MIB.  Thanks to this forum I learned that these were both obsoleted in 2006.  The people making the requirment were fine with just having IP-MIB return IPv6 information.

> > According to the man page for snmpd.conf
> > the pass-through scripts accept a type of “integer, gauge, counter,
> > timeticks, ipaddress, objectid, or string”. I crossed my fingers and hoped
> > that ipaddress would also support IPv6 addresses
> 
> No.
> IpAddress is part of the original SNMP data definitions from SNMPv2-SMI,
> and predates the concerted effort for IPv6 support. It is *purely* for IPv4
> addresses.
> Anything else (including IPv6 or "address-agnostic" values) should use
> the newer (InetAddressType,InetAddress) pairs.
 
This is the part where I get confused.  If pass-through scripts only accept types of  “integer, gauge, counter, timeticks, ipaddress, objectid, or string” then how would I use the InetAddress object binary string to return an IPv6 address in my custom MIB?  None of those types seem related to a binary string.  (I use the "string" type for returning regular ASCII string values.)

> > I'm having a similar problem with snmptrap. I'd like to send an IPv6 address
> > as an argument in a trap.
> 
> Exactly the same holds here.
> 
> > The man page says that it accepts a type of “a” to
> > signify an “IPADDRESS”. When I try to using an IPv6 address with the “a” arg
> > it also doesn't work.
> 
> No - it won't. You can't put a v6 peg into a v4 hole.
> 
> 
> 
> > Can anyone offer suggestions?
> 
> Use InetAddress objects (which are simply binary strings)

Similar confusion from me here.  The situation with snmptrap seems better because it can accept arguments with a type of "HEX STRING" or "DECIMAL STRING".  I don't know how to convert an IPv6 address into that format though.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.