strmqm (start queue manager)
Start a queue manager.
Purpose
You can use the strmqm command to start a queue manager.
If the queue manager is part of a high availability configuration, it might start on the other appliance if that is identified as the queue manager's preferred appliance. You can use the status command to check which is the queue manager's preferred appliance. See status.
You can use the strmqm command to start a queue manager in the primary role in a disaster recovery configuration. If you use the command to try to start a queue manager in the secondary role, you receive an error message.
Syntax
Required parameters
None.
Optional parameters
- -c
- For an HA queue manager, this option only has an effect if it is used with the -ns option.
- -d Information
- For an HA queue manager, this option only has an effect if it is used with the -ns option.
- -e CMDLEVEL=Level
- For an HA queue manager, this option only has an effect if it is used with the -ns option.
- -f
- For an HA queue manager, this option only has an effect if it is used with the -ns option.
- -ns
- Specifies that the channel initiator, the command server, the listeners, and the services are
not started automatically when the queue manager starts. Also specifies that a high availability
system does not start; you can use this option together with the
-coption to reset the HA queue manager without starting it. (If you start a queue manager that is normally part of an HA configuration, the queue manager starts on the issuing appliance, even if it is not the preferred location. If that appliance subsequently fails, the queue manager will not fail over to the other appliance in the HA group.) - QMgrName
- Specifies the name of the queue manager to start.
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, entermqclion the command line. To exit the IBM MQ administration mode, enterexiton the command line. - The strmqm command is not required to start a newly-created HA queue manager. An HA queue manager is started automatically on creation.
- The strmqm command is required to restart a stopped HA queue manager. In this case, the queue manager is started on the appliance that is the preferred location for the queue manager, regardless of which appliance the command is issued on. If the HA preferred location is not set, the queue manager starts on the same appliance that it stopped on.
- For more information about creating and activating a backup queue manager, see Backing up and restoring WebSphere MQ queue manager data in the IBM MQ documentation.
- For more information about this command in IBM MQ, see strmqm in the IBM MQ documentation.
Examples
- The following command starts the queue manager
QM1:strmqm QM1 - The following command resets the HA queue manager
HAQM1without starting it on the issuing appliance:strmqm -cns HAQM1
