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

Zack Little <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>

 

> > When I do an snmpwalk (via IPv4) against snmpd some of the items I get back
> > are IPv6 items, which is great. For example, I get back the IPv6 address my
> > box is configured for. I just assumed that because IPv6 worked with snmpwalk
> > that all other areas I'm using would support IPv6 as well. I've been having
> > trouble trying to figure this out though.
> 
> This could be an extremely large and false assumption.
 
So I am discovering.  :-)

> > The first problem is that I return a custom MIB using a pass-through script.
> > I'd like to return an IPv6 address. 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, but in looking at
> > pass_persist.c that doesn't appear to be the case.
> 
> Can you please provide examples of the failing snmptrap commands,
> or trivial examples of code that failed via passthrough for you? Also,
> noting the version of net-snmp, the OS version, etc would be extremely
> helpful.

Well, my question was meant as more of a "how do you do this?" instead of a "this is failing."  Both pass-through scripts and snmptrap have command line arguments that let you pass in an ASCII string representation of an IP address, such as "127.0.0.1".  All I'm wanting to do is the same thing, but with an IPv6 address as an argument (so passing in "::1", for example).
 
As for an example of a failing snmptrap command, if you pass it an IPv6 address agrument with a type of "a" then it returns "Bad value notation (::1)".  From what I've learned this is expected because the type of "a" is only for IPv4.
 
I'm using net-snmp version 5.5, soon to change to 5.5.1.

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev

_______________________________________________
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.