WildFly CLI - Manipulating System Properties: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 2: | Line 2: | ||
* [[WildFly CLI Operations#Subjects|WildFly CLI Operations]] | * [[WildFly CLI Operations#Subjects|WildFly CLI Operations]] | ||
=Read all System Properties= | |||
These commands list all application server and OS system properties, including the properties specified on command line using -D, -P or --properties arguments. | |||
==Standalone== | |||
<pre> | |||
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties) | |||
<pre> | |||
==Domain== | |||
===Per-Host=== | |||
<pre> | |||
/host=master/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties) | |||
</pre> | |||
===Per Server=== | |||
<pre> | |||
/host=master/server=server-one/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties) | |||
</pre> | |||
=Add/Remove a System Property in Standalone Mode= | =Add/Remove a System Property in Standalone Mode= |
Revision as of 06:37, 24 February 2016
Internal
Read all System Properties
These commands list all application server and OS system properties, including the properties specified on command line using -D, -P or --properties arguments.
Standalone
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties) <pre> ==Domain== ===Per-Host=== <pre> /host=master/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
Per Server
/host=master/server=server-one/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
Add/Remove a System Property in Standalone Mode
/system-property=foo:add(value=bar) /system-property=foo:read-resource
/system-property=foo:remove
Domain Mode
For domain mode, properties can be added globally, per host and per server instance.
Add/Remove a Global System Property
/system-property=foo:add(value=bar) /system-property=foo:read-resource
/system-property=foo:remove
Add/Remove a per-Host System Property
/host=master/system-property=foo:add(value=bar) /host=master/system-property=foo:read-resource
/host=master/system-property=foo:remove
Add/Remove a per-Server System Property
/host=master/server-config=server-one/system-property=foo:add(value=bar) /host=master/server-config=server-one/system-property=foo:read-resource
/host=master/server-config=server-one/system-property=foo:remove