prepareha (prepare appliance for HA group)
Prepares an appliance to be part of an HA group that uses a unique, generated key for communication between appliances.
Purpose
You use the prepareha command to prepare an appliance to be part of an HA group that uses a new, generated key for communication. You run it on the appliance that you do not run crthagrp on.
Syntax
Parameters
- -a IPAddress
- Specifies the IP address of the HA group primary interface on other appliance in the group.
You must specify the IP address using ip v4 dotted decimal notation (for example,
192.0.2.8
). - -s SecretText
- Specifies a string that is used to generate a short-lived password. The password is used to
set up the unique key for the two appliances. After prepareha is run,
crthagrp must be run first on the other appliance in the HA group,
specifying the same
-s SecretText
argument. - -t timeout
- Specifies the time period in seconds that you have to run the crthagrp command on the other appliance in the group. It defaults to 600 (that is, ten minutes).
Usage Notes
- This command must be run from the IBM® MQ administration mode. If the system is in the IBM MQ administration mode the prompt includes
mqa(mqcli)#
. To enter the IBM MQ administration mode, entermqcli
on the command line. To exit the IBM MQ administration mode, enterexit
on the command line. - The appliances must be connected to each other with cables inserted in the correct ports. For more information about configuring the appliance hardware for HA, see Configuring the hardware for high availability.
Examples
- The following example shows the creation of an HA group for appliances
appl1
andappl2
where a new, unique key is generated for communication between the appliances. The HA group primary interface ofappl2
has the IP address192.0.2.8
, the HA group primary interface ofappl1
has the IP address192.0.2.7
.The following command is run from
appl1
:prepareha -s AGEW1823510HH -a 192.0.2.8
The following command is run from
appl2
:crthagrp -s AGEW1823510HH -a 192.0.2.7