Created
February 14, 2011 11:31
-
-
Save hito-asa/825753 to your computer and use it in GitHub Desktop.
How to print jvm oids
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classOf[sun.management.snmp.jvmmib.JVM_MANAGEMENT_MIBOidTable].getDeclaredField("varList") match { case f:java.lang.reflect.Field => f.setAccessible(true); f.get(null).asInstanceOf[Array[com.sun.jmx.snmp.SnmpOidRecord]].foreach(s => println(s.getName + "\t" + s.getOid))} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment