WildFly CLI Connect to a Controller: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 26: Line 26:
./jboss-cli.sh --connect=remoting://localhost:9999
./jboss-cli.sh --connect=remoting://localhost:9999
</pre>
</pre>
<blockquote style="background-color: Gold; border: solid thin Goldenrod;">
:<br>Note this syntax does not work with the JDG CLI wrapper <tt>cli.sh</tt>.<br><br>
</blockquote>


==Connecting over the JMX Protocol==
==Connecting over the JMX Protocol==

Revision as of 20:04, 14 October 2016

Internal

Overview

Login to the controller specified in jboss-cli.xml.

jboss-cli.sh -c

For more details about configuring CLI, see CLI Configuration

To log in into a specific controller, use --connect= option immediately followed by the controller URL or the --controller option.

The client can connect over the JMX or Remoting protocols.

Connecting over Remoting Protocol

Note that remoting:// is optional

./jboss-cli.sh --connect=localhost:9999

./jboss-cli.sh --connect=remoting://localhost:9999

Note this syntax does not work with the JDG CLI wrapper cli.sh.

Connecting over the JMX Protocol

TODO, it seems that jmx:// and remoting:// does not make a difference.

--controller Option

TODO

jboss-cli.sh --connect --controller=192.168.0.1:9999 [--user=admin --password=admin123]