anytime we learn some fun cli command that works?
On 10/20/2011 10:36 AM, Brian Stansberry wrote:
Remove "/server=server-one" from the address.
On 10/20/11 2:38 AM, Rostislav Svoboda wrote:
> For server instance in domain I can use
/host=master/server=server-one/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
>
> Is there way how to receive system-properties just for DC process and not for server
instance?
>
> Thanks.
> Rosta
>
>
> ----- Original Message -----
>> The platform-mbean RuntimeMBean resource exposes all system
>> properties:
>>
>> [standalone@localhost:9999 /]
>> /core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
>> {
>> "outcome" => "success",
>> "result" => {
>> "java.vm.version" => "20.1-b02-384",
>> "java.vendor.url" =>
"http://www.apple.com/",
>> "sun.jnu.encoding" => "MacRoman",
>> "java.vm.info" => "mixed mode",
>> "jboss.server.name" => "pingguo",
>> "user.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/bin",
>> "java.awt.headless" => "true",
>> "logging.configuration" =>
>>
"file:/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/configuration/logging.properties",
>> "sun.cpu.isalist" => "",
>> "java.awt.graphicsenv" =>
"apple.awt.CGraphicsEnvironment",
>> "sun.os.patch.level" => "unknown",
>> "org.omg.CORBA.ORBSingletonClass" =>
>> "org.jacorb.orb.ORBSingleton",
>> "javax.xml.datatype.DatatypeFactory" =>
>> "__redirected.__DatatypeFactory",
>> "jboss.server.base.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone",
>> "java.io.tmpdir" =>
>> "/var/folders/IO/IOJd+-FEG0uH-mrEv+tGRk+++TI/-Tmp-/",
>> "user.home" => "/Users/bstansberry",
>> "java.awt.printerjob" =>
"apple.awt.CPrinterJob",
>> "jboss.server.deploy.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/data/content",
>> "java.version" => "1.6.0_26",
>> "file.encoding.pkg" => "sun.io",
>> "javax.xml.parsers.SAXParserFactory" =>
>> "__redirected.__SAXParserFactory",
>> "org.jboss.boot.log.file" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/log/boot.log",
>> "javax.xml.stream.XMLInputFactory" =>
>> "__redirected.__XMLInputFactory",
>> "jboss.server.config.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/configuration",
>> "java.vendor.url.bug" =>
"http://bugreport.apple.com/",
>> "mrj.build" => "10M3425",
>> "file.encoding" => "MacRoman",
>> "line.separator" => "
>> ",
>> "sun.java.command" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/jboss-modules.jar
>> -mp
>>
/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/modules
>> -logmodule org.jboss.logmanager -jaxpmodule javax.xml.jaxp-provider
>> org.jboss.as.standalone
>>
-Djboss.home.dir=/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT",
>> "sun.rmi.dgc.client.gcInterval" =>
"3600000",
>> "module.path" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/modules",
>> "org.omg.CORBA.ORBClass" =>
"org.jacorb.orb.ORB",
>> "java.vm.specification.vendor" => "Sun
Microsystems Inc.",
>> "javax.xml.transform.TransformerFactory" =>
>> "__redirected.__TransformerFactory",
>>
>> "javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema"
>> =>
>> "__redirected.__SchemaFactory",
>> "java.util.logging.manager" =>
>> "org.jboss.logmanager.LogManager",
>> "jboss.node.name" => "pingguo",
>> "catalina.home" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/tmp",
>> "java.vm.vendor" => "Apple Inc.",
>> "jboss.host.name" => "pingguo",
>> "java.class.path" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/jboss-modules.jar",
>> "awt.nativeDoubleBuffering" => "true",
>> "sun.io.unicode.encoding" =>
"UnicodeLittle",
>> "os.arch" => "x86_64",
>> "user.language" => "en",
>> "user.name" => "bstansberry",
>> "java.runtime.version" =>
"1.6.0_26-b03-384-10M3425",
>> "sun.boot.class.path" =>
>>
"/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar",
>>
>> "javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom"
=>
>> "__redirected.__XPathFactory",
>> "gopherProxySet" => "false",
>> "org.xml.sax.driver" =>
"__redirected.__XMLReaderFactory",
>> "jboss.server.log.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/log",
>> "sun.cpu.endian" => "little",
>> "jboss.modules.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/modules",
>> "ftp.nonProxyHosts" =>
>> "local|*.local|169.254/16|*.169.254/16",
>> "awt.toolkit" => "apple.awt.CToolkit",
>> "sun.boot.library.path" =>
>>
"/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries",
>> "java.vm.name" => "Java HotSpot(TM) 64-Bit Server
VM",
>> "jboss.server.data.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/data",
>> "sun.rmi.dgc.server.gcInterval" =>
"3600000",
>> "java.home" =>
>> "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home",
>> "java.endorsed.dirs" =>
>>
"/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed",
>> "javax.xml.parsers.DocumentBuilderFactory" =>
>> "__redirected.__DocumentBuilderFactory",
>> "jboss.modules.system.pkgs" =>
"org.jboss.byteman",
>> "java.net.preferIPv4Stack" => "true",
>> "jboss.qualified.host.name" =>
"pingguo.local",
>> "sun.management.compiler" => "HotSpot 64-Bit
Tiered
>> Compilers",
>> "java.runtime.name" => "Java(TM) SE Runtime
Environment",
>> "java.library.path" =>
>>
".:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java",
>> "file.separator" => "/",
>> "jboss.home.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT",
>> "javax.xml.stream.XMLOutputFactory" =>
>> "__redirected.__XMLOutputFactory",
>> "java.specification.vendor" => "Sun Microsystems
Inc.",
>> "java.vm.specification.version" => "1.0",
>> "org.jboss.resolver.warning" => "true",
>> "sun.java.launcher" => "SUN_STANDARD",
>> "user.timezone" => "America/Chicago",
>> "http.nonProxyHosts" =>
>> "local|*.local|169.254/16|*.169.254/16",
>> "os.name" => "Mac OS X",
>> "path.separator" => ":",
>> "java.ext.dirs" =>
>>
"/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext",
>> "jboss.server.temp.dir" =>
>>
"/Users/bstansberry/dev/jbossas/bootstrap/jboss-as/build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/tmp",
>> "sun.arch.data.model" => "64",
>> "org.osgi.vendor.framework" =>
"org.jboss.osgi.framework",
>> "java.specification.name" => "Java Platform API
>> Specification",
>> "os.version" => "10.6.8",
>> "mrj.version" => "1060.1.6.0_26-384",
>> "java.class.version" => "50.0",
>> "user.country" => "US",
>> "socksNonProxyHosts" =>
>> "local|*.local|169.254/16|*.169.254/16",
>> "java.vendor" => "Apple Inc.",
>> "javax.xml.stream.XMLEventFactory" =>
>> "__redirected.__XMLEventFactory",
>> "java.rmi.server.hostname" => "127.0.0.1",
>> "java.vm.specification.name" => "Java Virtual
Machine
>> Specification",
>> "java.specification.version" => "1.6",
>> "java.naming.factory.url.pkgs" =>
>> "org.jboss.as.naming.interfaces:org.jboss.ejb.client.naming"
>> }
>> }
>>
>> On 10/19/11 8:01 AM, Rostislav Svoboda wrote:
>>> Hi.
>>>
>>> CLI and web console shows only properties defined in .xml
>>> configuration files. System properties propagated from command
>>> line using -D, -P or --properties args should be visible too. It
>>> would be useful for administrators when searching for possible
>>> problems, the same applies to devels. For domain I'd like to see
>>> sysprops on each instance and separate overview for DC.
>>>
>>> Previous versions of AS/EAP provided such overview in
>>> /web-console/SysProperties.jsp. JVM based properties like
>>> java.vendor etc. would be beneficial too.
>>>
>>>
>>> What do you think about it? Especially Alexey, Brian and Heiko.
>>> There is JIRA for it, see
https://issues.jboss.org/browse/AS7-2162
>>>
>>> Thanks for comments.
>>> Rosta
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> jboss-as7-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>