Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 9. Managing your installation manager configurations using the Management CLI
The Management CLI enables you to manage your installation manager configuration. You can perform actions like viewing channels, subscribing, and unsubscribing from channels. For more information about managing channels on JBoss EAP 8.0 see JBoss EAP channels in the Installation guide.
9.1. Listing subscribed channels Link kopierenLink in die Zwischenablage kopiert!
The following example describes how to use the Management CLI to list all the channels you are subscribed to in a stand-alone server and managed domain.
Procedure
Launch the Management CLI:
EAP_HOME/bin/jboss-cli.sh
EAP_HOME/bin/jboss-cli.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow List subscribed channels in your JBoss EAP server:
List channels in a stand-alone server:
[standalone@localhost:9990 /] installer channel-list
[standalone@localhost:9990 /] installer channel-list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow List channels in a managed domain:
[domain@localhost:9990 /] installer channel-list --host=target-host
[domain@localhost:9990 /] installer channel-list --host=target-host
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.2. Subscribing to a channel Link kopierenLink in die Zwischenablage kopiert!
The following example describes how to use the Management CLI to subscribe to a channel in a stand-alone server and a managed domain.
Procedure
Launch the Management CLI:
EAP_HOME/bin/jboss-cli.sh
EAP_HOME/bin/jboss-cli.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Subscribe to a channel:
Subscribe to a channel in stand-alone server:
[standalone@localhost:9990 /] installer channel-add --channel-name=test-channel --manifest=org.test:test-manifest --repositories=mrrc::https://maven.repository.redhat.com
[standalone@localhost:9990 /] installer channel-add --channel-name=test-channel --manifest=org.test:test-manifest --repositories=mrrc::https://maven.repository.redhat.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Subscribe to a channel in a managed domain:
[domain@localhost:9990 /] installer channel-add --host=target-host --channel-name=test-channel --manifest=org.test:test-manifest --repositories=mrrc::https://maven.repository.redhat.com
[domain@localhost:9990 /] installer channel-add --host=target-host --channel-name=test-channel --manifest=org.test:test-manifest --repositories=mrrc::https://maven.repository.redhat.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.3. Unsubscribing from a channel Link kopierenLink in die Zwischenablage kopiert!
The following example describes how to use the Management CLI to unsubscribe from a channel in a stand-alone server and a managed domain.
Procedure
Launch the Management CLI:
EAP_HOME/bin/jboss-cli.sh
EAP_HOME/bin/jboss-cli.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Unsubscribe to a channel:
Unsubscribe to a channel in a stand-alone server:
[standalone@localhost:9990 /] installer channel-remove --channel-name=test-channel
[standalone@localhost:9990 /] installer channel-remove --channel-name=test-channel
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Unsubscribe to a channel in a managed domain:
[domain@localhost:9990 /] installer channel-remove --host=target-host --channel-name=test-channel
[domain@localhost:9990 /] installer channel-remove --host=target-host --channel-name=test-channel
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.4. Editing a channel subscription Link kopierenLink in die Zwischenablage kopiert!
The following example describes editing a channel subscription using the Management CLI.
Procedure
Launch the Management CLI:
EAP_HOME/bin/jboss-cli.sh
EAP_HOME/bin/jboss-cli.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit a channel subscription in JBoss EAP:
Edit a channel subscription in a stand-alone server:
[standalone@localhost:9990 /] installer channel-edit --channel-name=channel-name --manifest=org.new.test:org.new.test-manifest --repositories=mrrc::https://maven.repository.redhat.com ,mvncentral::https://repo.maven.apache.org/maven2/
[standalone@localhost:9990 /] installer channel-edit --channel-name=channel-name --manifest=org.new.test:org.new.test-manifest --repositories=mrrc::https://maven.repository.redhat.com ,mvncentral::https://repo.maven.apache.org/maven2/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit a channel subscription in a managed domain:
[domain@localhost:9990 /] installer channel-edit --host=target-host --channel-name=channel-name --manifest=org.new.test:org.new.test-manifest --repositories=mrrc::https://maven.repository.redhat.com ,mvncentral::https://repo.maven.apache.org/maven2/
[domain@localhost:9990 /] installer channel-edit --host=target-host --channel-name=channel-name --manifest=org.new.test:org.new.test-manifest --repositories=mrrc::https://maven.repository.redhat.com ,mvncentral::https://repo.maven.apache.org/maven2/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.5. Exporting a server snapshot Link kopierenLink in die Zwischenablage kopiert!
You can export the installation manager configuration used by your JBoss EAP server to an archive file. This file can be used to recreate the same server configuration using the jboss-eap-installation-manager
tool. This feature ensures easy replication of your server setup in other environments. For information see exporting a server snapshot using the jboss-eap-installation-manager
.
One compelling use case for this capability is when you encounter a technical issue and need to seek support from the JBoss EAP team. By sharing the exported archive file with the support team, they can recreate your server configuration precisely as it is in your environment. This ensures that the support team can replicate the issue you are facing and provide targeted assistance, ultimately expediting the resolution process. You can also provide more details about your environment by following the steps in the JDR tool documentation.
Procedure
Launch the Management CLI:
EAP_HOME/bin/jboss-cli.sh
EAP_HOME/bin/jboss-cli.sh
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Export a server snapshot:
Export a server snapshot in a stand-alone server:
standalone@localhost:9990 /] attachment save --operation=/core-service=installer:clone-export()
standalone@localhost:9990 /] attachment save --operation=/core-service=installer:clone-export()
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Export a server snapshot in a managed domain:
[domain@localhost:9990 /] attachment save --operation=/host=target-host/core-service=installer:clone-export()
[domain@localhost:9990 /] attachment save --operation=/host=target-host/core-service=installer:clone-export()
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources