WildFly CLI - Manipulating System Properties

From NovaOrdis Knowledge Base
Revision as of 06:32, 24 February 2016 by Ovidiu (talk | contribs) (→‎Domain Mode)
Jump to navigation Jump to search

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)