Quantcast
Channel: Togotutor Blog » operating
Viewing all articles
Browse latest Browse all 2

Jboss Application Server Command Line Utility

$
0
0

In the previous tutorial, we discussed on how to install JbossAS version 7 on 64-bit Linux Operating System. In this blog post, we are going to discuss on how to connect to the Jboss AS via command line interface. In the previous versions, the command line utility that queried the Mbeans installed on the application server was named ‘twiddle’. From Jboss version 7 on wards, a new utility is introduced named CLI (Command Line Interface) which is located under $JBOSS_HOME/bin directory.

Go to the $JBOSS_HOME/bin directory and look for the jboss-cli.sh script. Make sure the jboss is running before executing the jboss-cli.sh script. Execute the script as follows:

jboss-cli-execute

jboss-cli-execute

As you can see the shell session has been started, but we need to connect to the running Jboss Instance. Use the following command to connect to Jboss Server.

jboss-cli-connect-jboss-instance

jboss-cli-connect-jboss-instance

You can see that the cli is now connected to the standalone Jboss instance on 192.168.1.3:9999 address.

Now, let`s use the jboss cli utility to stop the jboss server. Execute shutdown as follows:

jboss-cli-shutdown-command-jboss-instance

jboss-cli-shutdown-command-jboss-instance

Output of shutdown command within cli session.

jboss-cli-shutdown-jboss-instance

jboss-cli-shutdown-jboss-instance

Now, let`s restart the server using the jboss cli utility: Run the command as follows:

jboss-cli-reload-jboss-instance

jboss-cli-reload-jboss-instance

Output of reload command within cli session.

jboss-cli-reload-output-jboss-instance

jboss-cli-reload-output-jboss-instance

That`s it, these are some of the commands we tried out using the Jboss Cli utility. We will be re-visiting cli utility in near future for more command examples.


Viewing all articles
Browse latest Browse all 2

Trending Articles