General commands
The following commands can be used to gather system information and set specific server properties:
- Show environment information:
version
- Show the JNDI context:
/subsystem=naming:jndi-view
- Show the XML server configuration:
:read-config-as-xml
- Show the services registered in the container and their statuses:
/core-service=service-container:dump-services
- Set a system property:
/system-property=property1:add(value="value")
- Show a system property:
/system-property=property1:read-resource
- Show all system properties:
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
- Remove a system property:
/system-property=property1:remove
- Change a socket binding port (for example, the
http
port):/socket-binding-group=standard-sockets/socket-binding=http:write-attribute(name="port", value="8090")
- Show the IP address of the public interface:
/interface=public:read-attribute(name=resolved-address)