From agrawaln at us.ibm.com Mon May 5 07:12:30 2008 From: agrawaln at us.ibm.com (Nitin Agrawal) Date: Mon, 5 May 2008 19:42:30 +0530 Subject: jmx-dev Query: IPv6 Support in JMX SNMP APIs Message-ID: 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/20080505/762e2ec3/attachment.html From Daniel.Fuchs at Sun.COM Mon May 5 09:27:28 2008 From: Daniel.Fuchs at Sun.COM (Daniel Fuchs) Date: Mon, 05 May 2008 18:27:28 +0200 Subject: jmx-dev Query: IPv6 Support in JMX SNMP APIs In-Reply-To: References: Message-ID: <481F3570.3060003@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 /jre/lib/management/snmp.acl.template and /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 > From agrawaln at us.ibm.com Tue May 6 07:37:48 2008 From: agrawaln at us.ibm.com (Nitin Agrawal) Date: Tue, 6 May 2008 08:37:48 -0600 Subject: jmx-dev Query: IPv6 Support in JMX SNMP APIs In-Reply-To: <481F3570.3060003@sun.com> References: <481F3570.3060003@sun.com> Message-ID: 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 To Sent by: Nitin Agrawal/San Daniel.Fuchs at Sun. Francisco/Contr/IBM at IBMUS COM cc jmx-dev , 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 /jre/lib/management/snmp.acl.template and /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 From Daniel.Fuchs at Sun.COM Tue May 6 09:09:26 2008 From: Daniel.Fuchs at Sun.COM (Daniel Fuchs) Date: Tue, 06 May 2008 18:09:26 +0200 Subject: jmx-dev Query: IPv6 Support in JMX SNMP APIs In-Reply-To: References: <481F3570.3060003@sun.com> Message-ID: <482082B6.7040309@sun.com> Hi Nitin, all, Nitin Agrawal wrote: > We are using javax.management.snmp APIs. The javax.management.snmp package is an old deprecated package name. The SNMP APIs where candidate for inclusion in JMX, but they never made it to the final JMX specification. Since then the javax.management.snmp packages have been renamed into com.sun.management.snmp, which is provided by JDMK 5.1 or OpenDMK. > 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. SnmpIpAddress corresponds to the IpAddress syntax defined in RFC 1155. ftp://ftp.rfc-editor.org/in-notes/rfc1155.txt It is a 4 byte Octet String and can only be used to transport IPv4 address. An object using the IpAddress syntax cannot be used to hold an IPv6 address. > 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. It can't. This is not a limitation of the API - it's a limitation of of the SNMP definitions in your MIB. > Are you aware of any implementation of such APIs which has got IPv6 > support ? You need to upgrade your MIB and use an object based on one of the textual conventions defined in the INET-ADDRESS-MIB (RFC 4001) ftp://ftp.rfc-editor.org/in-notes/rfc4001.txt > 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. Not at all. As explained these APIs are exported by Java DMK 5.1 and OpenDMK. They re not part of the Java platform. See here for more details: http://blogs.sun.com/jmxetc/entry/what_is_the_jvm_snmp Hope this helps, -- daniel http://blogs.sun.com/jmxetc > > Regards > -Nitin > > > > > Inactive hide details for Daniel Fuchs ---05/05/2008 10:12:58 > PM---Hi,Daniel Fuchs ---05/05/2008 10:12:58 PM---Hi, > > *Daniel Fuchs * > Sent by: Daniel.Fuchs at Sun.COM > > 05/05/2008 09:57 PM > Please respond to > Daniel.Fuchs at Sun.COM > > > > To > > Nitin Agrawal/San Francisco/Contr/IBM at IBMUS > > cc > > jmx-dev , Ken Ellinwood/Los Angeles/IBM at IBMUS > > Subject > > Re: jmx-dev Query: IPv6 Support in JMX SNMP APIs > > > > > 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 /jre/lib/management/snmp.acl.template > and /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 > > > > From agrawaln at us.ibm.com Wed May 7 05:43:09 2008 From: agrawaln at us.ibm.com (Nitin Agrawal) Date: Wed, 7 May 2008 18:13:09 +0530 Subject: jmx-dev Query: IPv6 Support in JMX SNMP APIs In-Reply-To: <482082B6.7040309@sun.com> References: <481F3570.3060003@sun.com> <482082B6.7040309@sun.com> Message-ID: Thanks Daniel It certainly has helped me. Clarified many things. :-) Thanks for your clarifications. Regards -Nitin Daniel Fuchs To Sent by: Nitin Agrawal/San Daniel.Fuchs at Sun. Francisco/Contr/IBM at IBMUS COM cc jmx-dev , Ken Ellinwood/Los Angeles/IBM at IBMUS 05/06/2008 09:39 Subject PM Re: jmx-dev Query: IPv6 Support in JMX SNMP APIs Please respond to Daniel.Fuchs at Sun. COM Hi Nitin, all, Nitin Agrawal wrote: > We are using javax.management.snmp APIs. The javax.management.snmp package is an old deprecated package name. The SNMP APIs where candidate for inclusion in JMX, but they never made it to the final JMX specification. Since then the javax.management.snmp packages have been renamed into com.sun.management.snmp, which is provided by JDMK 5.1 or OpenDMK. > 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. SnmpIpAddress corresponds to the IpAddress syntax defined in RFC 1155. ftp://ftp.rfc-editor.org/in-notes/rfc1155.txt It is a 4 byte Octet String and can only be used to transport IPv4 address. An object using the IpAddress syntax cannot be used to hold an IPv6 address. > 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. It can't. This is not a limitation of the API - it's a limitation of of the SNMP definitions in your MIB. > Are you aware of any implementation of such APIs which has got IPv6 > support ? You need to upgrade your MIB and use an object based on one of the textual conventions defined in the INET-ADDRESS-MIB (RFC 4001) ftp://ftp.rfc-editor.org/in-notes/rfc4001.txt > 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. Not at all. As explained these APIs are exported by Java DMK 5.1 and OpenDMK. They re not part of the Java platform. See here for more details: http://blogs.sun.com/jmxetc/entry/what_is_the_jvm_snmp Hope this helps, -- daniel http://blogs.sun.com/jmxetc > > Regards > -Nitin > > > > > Inactive hide details for Daniel Fuchs ---05/05/2008 10:12:58 > PM---Hi,Daniel Fuchs ---05/05/2008 10:12:58 PM---Hi, > > *Daniel Fuchs * > Sent by: Daniel.Fuchs at Sun.COM > > 05/05/2008 09:57 PM > Please respond to > Daniel.Fuchs at Sun.COM > > > > To > > Nitin Agrawal/San Francisco/Contr/IBM at IBMUS > > cc > > jmx-dev , Ken Ellinwood/Los Angeles/IBM at IBMUS > > Subject > > Re: jmx-dev Query: IPv6 Support in JMX SNMP APIs > > > > > 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 /jre/lib/management/snmp.acl.template > and /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/20080507/f55be179/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/20080507/f55be179/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: pic02660.gif Type: image/gif Size: 1255 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080507/f55be179/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/20080507/f55be179/attachment-0002.gif From Eamonn.McManus at Sun.COM Thu May 15 02:59:57 2008 From: Eamonn.McManus at Sun.COM (Eamonn McManus) Date: Thu, 15 May 2008 11:59:57 +0200 Subject: jmx-dev hg: jdk7/tl/jdk: 6701459: Synchronization bug pattern found in javax.management.relation.RelationService Message-ID: <482C099D.4010106@sun.com> An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080515/f131591b/attachment.html From Daniel.Fuchs at Sun.COM Thu May 29 08:49:40 2008 From: Daniel.Fuchs at Sun.COM (Daniel Fuchs) Date: Thu, 29 May 2008 17:49:40 +0200 Subject: jmx-dev Review requested: 6592586: RequiredModelMBean prints a WARNING message when calling getAttributes() for a non-existing attr Message-ID: <483ED094.1020805@sun.com> Also fixed several occurrences of the WARNING level.... -- daniel http://blogs.sun.com/jmxetc -------------- next part -------------- A non-text attachment was scrubbed... Name: jdk.patch Type: text/x-patch Size: 3654 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080529/522580d4/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: webrev.zip Type: application/zip Size: 130448 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/jmx-dev/attachments/20080529/522580d4/attachment.zip From Eamonn.McManus at Sun.COM Fri May 30 04:02:05 2008 From: Eamonn.McManus at Sun.COM (Eamonn McManus) Date: Fri, 30 May 2008 13:02:05 +0200 Subject: jmx-dev Review requested: 6592586: RequiredModelMBean prints a WARNING message when calling getAttributes() for a non-existing attr In-Reply-To: <483ED094.1020805@sun.com> References: <483ED094.1020805@sun.com> Message-ID: <483FDEAD.3090702@sun.com> Reviewed OK. Level.FINE might be more appropriate than Level.FINER for exceptions from writeToLog. ?amonn McManus JMX Spec Lead http://weblogs.java.net/blog/emcmanus/ Daniel Fuchs wrote: > Also fixed several occurrences of the WARNING level.... > > -- daniel > http://blogs.sun.com/jmxetc > > The attachment(s) "" has been removed from this email because it > contained a type of attachment known to carry viruses and other > harmful software. The attachment has been removed for your protection, > as well as that of Sun's network. > If you know the sender and were expecting the attachment, please > contact the sender and have them re-send the file using the .zip > format. If the sender is unknown or if the email looks unusual or is > unexpected, please delete it now. > Additional information: http://antivirus.central.sun.com/ From Daniel.Fuchs at Sun.COM Fri May 30 05:14:44 2008 From: Daniel.Fuchs at Sun.COM (Daniel Fuchs) Date: Fri, 30 May 2008 14:14:44 +0200 Subject: jmx-dev Review requested: 6592586: RequiredModelMBean prints a WARNING message when calling getAttributes() for a non-existing attr In-Reply-To: <483FDEAD.3090702@sun.com> References: <483ED094.1020805@sun.com> <483FDEAD.3090702@sun.com> Message-ID: <483FEFB4.3020409@sun.com> Eamonn McManus wrote: > Reviewed OK. Level.FINE might be more appropriate than Level.FINER for > exceptions from writeToLog. OK, good feedback. I will make the modifications. > > ?amonn McManus JMX Spec Lead http://weblogs.java.net/blog/emcmanus/ > > > > Daniel Fuchs wrote: >> Also fixed several occurrences of the WARNING level.... >> >> -- daniel >> http://blogs.sun.com/jmxetc >> >> The attachment(s) "" has been removed from this email because it >> contained a type of attachment known to carry viruses and other >> harmful software. The attachment has been removed for your protection, >> as well as that of Sun's network. >> If you know the sender and were expecting the attachment, please >> contact the sender and have them re-send the file using the .zip >> format. If the sender is unknown or if the email looks unusual or is >> unexpected, please delete it now. >> Additional information: http://antivirus.central.sun.com/ >