Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 5. Managing SwitchYard with JBoss Management CLI
5.1. About the Management Command Line Interface (CLI) Link kopierenLink in die Zwischenablage kopiert!
5.2. Launch the Management CLI Link kopierenLink in die Zwischenablage kopiert!
Procedure 5.1. Launch CLI in Linux or Microsoft Windows Server
Launch the CLI in Linux
Run theEAP_HOME/bin/jboss-cli.shfile by entering the following at a command line:$ EAP_HOME/bin/jboss-cli.shLaunch the CLI in Microsoft Windows Server
Run theEAP_HOME\bin\jboss-cli.batfile 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 Link kopierenLink in die Zwischenablage kopiert!
quit command:
[domain@localhost:9999 /] quit
5.4. Connect to a Managed Server Instance Using the Management CLI Link kopierenLink in die Zwischenablage kopiert!
Prerequisites
Procedure 5.2. Connect to a Managed Server Instance
Run the
connectcommandFrom the Management CLI, enter theconnectcommand:[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
--connectparameter:$ EAP_HOME/bin/jboss-cli.sh --connect - The
--connectparameter can be used to specify the host and port of the server. To connect to the address192.168.0.1with the port value9999the 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 Link kopierenLink in die Zwischenablage kopiert!
Prerequisites
Procedure 5.3. Deploy an Application in a Standalone Server
Run the
deploycommandFrom the Management CLI, enter thedeploycommand with the path to the application deployment.[standalone@localhost:9999 /] deploy /path/to/test-application.warNote 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 Link kopierenLink in die Zwischenablage kopiert!
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
undeploycommandTo undeploy the application and delete the deployment content, enter the Management CLIundeploycommand with the filename of the application deployment.[standalone@localhost:9999 /] undeploy test-application.warTo undeploy the application, but retain the deployment content, enter the Management CLIundeploycommand 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 Link kopierenLink in die Zwischenablage kopiert!
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:
| 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