WildFly CLI - Manipulating System Properties: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * WildFly CLI Operations")
 
No edit summary
Line 2: Line 2:


* [[WildFly CLI Operations#Subjects|WildFly CLI Operations]]
* [[WildFly CLI Operations#Subjects|WildFly CLI Operations]]
=Standalone Mode=
==Add a System Property in Standalone Mode==
<pre>
/system-property=foo:add(value=bar)
/system-property=foo:read-resource
</pre>
==Remove a System Property in Standalone Mode==
<pre>
/system-property=foo:remove
</pre>
=Domain Mode=
For domain mode, properties can be added globally, per host and per server instance.
==Adding a System Property Globally==
<pre>
/system-property=foo:add(value=bar)
/system-property=foo:read-resource
</pre>
==Removing a System Property Globally==
<pre>
/system-property=foo:remove
</pre>
Host and its server instances
[domain@IP_ADDRESS:9999 /] /host=master/system-property=foo:add(value=bar)
[domain@IP_ADDRESS:9999 /] /host=master/system-property=foo:read-resource
[domain@IP_ADDRESS:9999 /] /host=master/system-property=foo:remove
Just one server instance
[domain@IP_ADDRESS:9999 /] /host=master/server-config=server-one/system-property=foo:add(value=bar)
[domain@IP_ADDRESS:9999 /] /host=master/server-config=server-one/system-property=foo:read-resource
[domain@IP_ADDRESS:9999 /] /host=master/server-config=server-one/system-property=foo:remove
Overview of all system properties
Overview of all system properties in WildFly 8 including OS system properties and properties specified on command line using -D, -P or --properties arguments.
Standalone
[standalone@IP_ADDRESS:9999 /] /core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
Domain
[domain@IP_ADDRESS:9999 /] /host=master/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
[domain@IP_ADDRESS:9999 /] /host=master/server=server-one/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)

Revision as of 06:30, 24 February 2016

Internal

Standalone Mode

Add a System Property in Standalone Mode

/system-property=foo:add(value=bar)
/system-property=foo:read-resource

Remove a System Property in Standalone Mode

/system-property=foo:remove

Domain Mode

For domain mode, properties can be added globally, per host and per server instance.

Adding a System Property Globally

/system-property=foo:add(value=bar)
/system-property=foo:read-resource

Removing a System Property Globally

/system-property=foo:remove

Host and its server instances

[domain@IP_ADDRESS:9999 /] /host=master/system-property=foo:add(value=bar) [domain@IP_ADDRESS:9999 /] /host=master/system-property=foo:read-resource [domain@IP_ADDRESS:9999 /] /host=master/system-property=foo:remove Just one server instance

[domain@IP_ADDRESS:9999 /] /host=master/server-config=server-one/system-property=foo:add(value=bar) [domain@IP_ADDRESS:9999 /] /host=master/server-config=server-one/system-property=foo:read-resource [domain@IP_ADDRESS:9999 /] /host=master/server-config=server-one/system-property=foo:remove Overview of all system properties Overview of all system properties in WildFly 8 including OS system properties and properties specified on command line using -D, -P or --properties arguments.

Standalone

[standalone@IP_ADDRESS:9999 /] /core-service=platform-mbean/type=runtime:read-attribute(name=system-properties) Domain

[domain@IP_ADDRESS:9999 /] /host=master/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties) [domain@IP_ADDRESS:9999 /] /host=master/server=server-one/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)