WildFly CLI - Manipulating System Properties: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 22: Line 22:
For domain mode, properties can be added globally, per host and per server instance.
For domain mode, properties can be added globally, per host and per server instance.


==Adding a System Property Globally==
==Global System Property==
 
===Adding a System Property Globally===


<pre>
<pre>
Line 29: Line 31:
</pre>
</pre>


==Removing a System Property Globally==
===Removing a System Property Globally===


<pre>
<pre>
Line 35: Line 37:
</pre>
</pre>


Host and its server instances
==Per-Host System Property==
 
===Adding a per-Host Property===
 
<pre>
/host=master/system-property=foo:add(value=bar)
/host=master/system-property=foo:read-resource
</pre>
 
===Removing a per-Host Property===
 
<pre>
/host=master/system-property=foo:remove
</pre>
 
 


[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
Just one server instance



Revision as of 06:32, 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.

Global System Property

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

Per-Host System Property

Adding a per-Host Property

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

Removing a per-Host Property

 
/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)