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

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGaw1KsT=2cqUPuBURYcgASLPXi3o37pkEhCKjR0y4pfAQ@mail.gmail.com>
On 11 July 2011 18:38, Zack Little <[email protected]> wrote:
>         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 haven't checked the code, but it should be possible to use the 'string'
type to return a binary string value, as well as regular ASCII strings.

Try it.

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

Try querying the agent for an existing table object that shows such
an IPv6 address, and use the '-d' flag to dump the raw packets.
That will show how IPv6 addresses are represented.

Or see the description in the INET-ADDRESS-MIB

Dave

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