Java Reference
In-Depth Information
./jboss-cli.sh
Once the CLI has started, you can connect to the managed server instance using the
connect command, which by default connects to localhost and the 9999 port:
[disconnected /] connect
Connected to domain controller at localhost:9999
If you want to connect to another address or port, you can simply pass it to the con-
nect command shown as follows:
[disconnected /] connect 192.168.1.1
Connected to domain controller at
192.168.1.1:9999
It is also possible to launch the CLI in the connected mode, which allows it to connect
automatically, and possibly to specify commands to execute. For example, the fol-
lowing shell command automatically connects to an AS 7 instance and issues a
shutdown command:
jboss-cli.bat --connect command=:shutdown
Connecting from remote hosts
Starting from the 7.1.0 Beta release of the application server, security is enabled by
default on the AS management interfaces to prevent unauthorized remote access to
the application server. Although local clients of the application server are still allowed
to access the management interfaces without any authentication, remote clients
need to enter a username/password pair to access the CLI. Here's an example ses-
sion that successfully connects to a remote host with the IP address, 10.13.2.255 :
[disconnected /] connect 10.13.2.255
Authenticating against security realm:
ManagementRealm
Username: administrator
Search WWH ::




Custom Search