jmx-dev Query: IPv6 Support in JMX SNMP APIs
Nitin Agrawal
agrawaln at us.ibm.com
Tue May 6 07:37:48 PDT 2008
Thanks Daniel for your response.
It overall does not address my concerns/query. I guess I have not given
sufficient data to you in my query.
We are using javax.management.snmp APIs. In our Management application, we
want to parse the OID data (from a SNMP GET request or a trap), where in
the OID type is an IPAddress and the value can be either IPv4 or IPv6
address. To represent this we are using "?javax.management.snmp.
SnmpIpAddress" class. This supports IPv4 addresses only.
I also checked on the Open DMK site:
https://opendmk.dev.java.net/download/index.html#opendmk-1.0-b02 and
downloaded - opendmk-1.0-b02-src-dual-01-Oct-2007_19-17-46.zip
The class - OpenDMK-src\src\snmp_manager\com\sun\management\snmp
\SnmpIpAddress.java (Attached here: (See attached file:
SnmpIpAddress.java) ) does not have IPv6 support.
Are you aware of any implementation of such APIs which has got IPv6
support ?
If I see the J2SE JMX API specs @
http://java.sun.com/j2se/1.5.0/docs/guide/jmx/spec.html,
"javax.management.snmp" is not there. Looks like formal support for SNMP
APIs has been dropped by sun.
Regards
-Nitin
Daniel Fuchs
<Daniel.Fuchs at Sun
.COM> To
Sent by: Nitin Agrawal/San
Daniel.Fuchs at Sun. Francisco/Contr/IBM at IBMUS
COM cc
jmx-dev <jmx-dev at openjdk.java.net>,
Ken Ellinwood/Los Angeles/IBM at IBMUS
05/05/2008 09:57 Subject
PM Re: jmx-dev Query: IPv6 Support in
JMX SNMP APIs
Please respond to
Daniel.Fuchs at Sun.
COM
Hi,
Yes, IPv6 is supported.
You can specify IPv6 addresses in the ACL files, and you can
specify a specific interface to which to bind to (if you want
to bind to an interface which is not the default) using
the com.sun.management.snmp.interface property.
for instance, you can define:
com.sun.management.snmp.interface=::1
See <jdk-install>/jre/lib/management/snmp.acl.template
and <jdk-install>/jre/lib/management/management.properties
Hope this helps,
-- daniel
http://blogs.sun.com/jmxetc.
Nitin Agrawal wrote:
> Hi
>
> Apologies if it is a repeat question, but I could not find an answer to
> it on http://openjdk.java.net/groups/jmx/ and in the mailing list
archives.
>
> *Is IPv6 supported* in JMX SNMP APIs (javax.management and sub-packages)
> with JDK 1.5? I have searched on Sun's site and googled it, but could
> not get any lead on it.
>
> In our application, we are using these APIs which are only IPv4
> compliant. We are adding IPv6 support and hence this query.
>
> If there is already IPv6 support available for 1.5, please point me to
> it. If it is not, then:-
> - Please let me know in case if it supported in JDK 1.6 or even here
> there is no support for IPv6.
>
> If there is not support anywhere, we need to go with DIY approach and
> (re-)invent the wheel.
>
> Will appreciate any thoughts/pointers on this.
>
> Regards
> -Nitin Agrawal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080506/58081327/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080506/58081327/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic05136.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080506/58081327/attachment-0001.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080506/58081327/attachment-0002.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SnmpIpAddress.java
Type: application/octet-stream
Size: 7855 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080506/58081327/attachment.obj
More information about the jmx-dev
mailing list