11.2. Shutting Down a Broker Remotely
Abstract
Overview
- using the stop command—the stop command does not require starting an instance of the broker
- using a remote console connection—a broker's console can be used to remotely shutdown a broker on another machine
- using a fabric member's console—brokers that are part of a fabric can stop members of their fabric
- using the management console—brokers that are part of a fabric can be stopped using a management console connected to their fabricFor more information see Using the Management Console.
Using the stop command
InstallDir/bin directory. The commands syntax is shown in Example 11.2, “Stop Command Syntax”.
Example 11.2. Stop Command Syntax
stop [
-a port
] {
-h hostname
} {
-u username
} {
-p password
}
-a port- Specifies the SSH port of the remote instance. The default is 8101.
-h hostname- Specifies the hostname of the machine on which the remote instance is running.
-u username- Specifies the username used to connect to the remote broker.NoteThe default username for a broker is
karaf. -p password- Specifies the password used to connect to the remote broker.NoteThe default password for a broker is
karaf.
NEBrokerHost2.
Example 11.3. Stopping a Remote Broker
bin/stop -u karaf -p karaf -h NEBrokerHost2Using a remote console
NWBrokerHost.
Example 11.4. Shutting Down a Broker using a Remote Console Connection
JBossA-MQ:karaf@root>ssh -l username -P password 8101 HOSTNAME_ ____ __ __ ____ | | _ \ /\ | \/ |/ __ \ | | |_) | ___ ___ ___ / \ ______| \ / | | | | _ | | _ < / _ \/ __/ __| / /\ \______| |\/| | | | | | |__| | |_) | (_) \__ \__ \ / ____ \ | | | | |__| | \____/|____/ \___/|___/___/ /_/ \_\ |_| |_|\___\_\ JBoss A-MQ (6.0.0.redhat-012) http://www.redhat.com/products/jbossenterprisemiddleware/amq/ Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown JBoss A-MQ.JBossA-MQ:karaf@root>osgi:shutdownConfirm: shutdown instance root (yes/no):yesJBossA-MQ:karaf@root>JBossA-MQ:karaf@root>
Shutting down remote brokers in a fabric
fabric-broker3.
Example 11.5. Shutting Down a Broker in a Fabric
./bin/client fabric-broker3 fabric:container-stop
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.