-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat Fuse
Chapter 5. Managing SwitchYard with JBoss Management CLI
5.1. About the Management Command Line Interface (CLI)
5.2. Launch the Management CLI
Procedure 5.1. Launch CLI in Linux or Microsoft Windows Server
Launch the CLI in Linux
Run theEAP_HOME/bin/jboss-cli.sh
file by entering the following at a command line:$ EAP_HOME/bin/jboss-cli.sh
Launch the CLI in Microsoft Windows Server
Run theEAP_HOME\bin\jboss-cli.bat
file by double-clicking it, or by entering the following at a command line:C:\>EAP_HOME\bin\jboss-cli.bat
5.3. Quit the Management CLI
quit
command:
[domain@localhost:9999 /] quit
5.4. Connect to a Managed Server Instance Using the Management CLI
Prerequisites
Procedure 5.2. Connect to a Managed Server Instance
Run the
connect
commandFrom the Management CLI, enter theconnect
command:[disconnected /]
connect
Connected to domain controller at localhost:9999- Alternatively, to connect to a managed server when starting the Management CLI on a Linux system, use the
--connect
parameter:$
EAP_HOME/bin/jboss-cli.sh --connect
- The
--connect
parameter can be used to specify the host and port of the server. To connect to the address192.168.0.1
with the port value9999
the following would apply:$
EAP_HOME/bin/jboss-cli.sh --connect --controller=192.168.0.1:9999
5.5. Deploy an Application in a Standalone Server Using the Management CLI
Prerequisites
Procedure 5.3. Deploy an Application in a Standalone Server
Run the
deploy
commandFrom the Management CLI, enter thedeploy
command with the path to the application deployment.[standalone@localhost:9999 /]
deploy /path/to/test-application.war
Note that a successful deploy does not produce any output to the CLI.
The specified application is now deployed in the standalone server.
5.6. Undeploy an Application in a Standalone Server Using the Management CLI
Prerequisites
Procedure 5.4. Undeploy an Application in a Standalone Server
undeploy
command will undeploy and delete the deployment content from a standalone instance of JBoss EAP. To retain the deployment content, add the parameter --keep-content
.
Run the
undeploy
commandTo undeploy the application and delete the deployment content, enter the Management CLIundeploy
command with the filename of the application deployment.[standalone@localhost:9999 /]
undeploy test-application.war
To undeploy the application, but retain the deployment content, enter the Management CLIundeploy
command with the filename of the application deployment and the parameter--keep-content
.[standalone@localhost:9999 /]
undeploy test-application.war
--keep-content
The specified application is now undeployed. Note that the undeploy
command does not produce any output to the Management CLI if it is successful.
5.7. Management CLI commands for SwitchYard
Prerequisites
Note
- By completing partially entered commands if there is enough entered for it to be unique.
- By presenting a list of options if a unique result cannot be found, or if the command is missing.
[standalone@localhost:9999 /] /subsystem=switchyard:
Table 5.1. JBoss EAP Management CLI operations available for SwitchYard subsystem
Operation Name | Function |
---|---|
get-version
|
This will show the version of SwitchYard currently running on the JBoss EAP instance.
|
list-applications
|
This shows a list of the SwitchYard applications currently running on the JBoss EAP instance.
|
list-references
|
Lists the references used for SwitchYard applications currently running on the JBoss EAP instance.
|
read-application
|
This lists the details for SwitchYard applications running on the JBoss EAP instance.
|
read-references
|
Lists the references used by SwitchYard applications running on the JBoss EAP instance.
|
read-service
|
Lists the services and details used by SwitchYard applications running on the JBoss EAP instance.
|
reset-metrics
|
Reset the message metrics for the SwitchYard subsystem.
|
show-metrics
|
List the message metrics for the SwitchYard subsystem.
|
start-gateway
|
Start the gateway for a SwitchYard service.
|
stop-gateway
|
Stop the gateway for a SwitchYard service.
|
update-throttling
|
Update message throttling for a SwitchYard service.
|
stop-gateway
|
Stop the gateway for a SwitchYard service.
|
uses-artifacts
|
Lists the artifacts used throughout the SwitchYard subsystem.
|
[standalone@localhost:9999 /] /subsystem=switchyard:
operation-name
Note