Create a queue manager in IBM MQ Version 9.1
How you create a queue manager, using the crtmqm command. We can use IBM MQ Explorer to perform this task.
Before starting
Use the dspmq command with the -o installation and -s parameters to show the installation name and status of the current queue managers.C:\> dspmq -o installation -s QMNAME(QM80) STATUS(Running) INSTNAME(Installation1) INSTPATH(C:\Program Files\IBM\WebSphere MQ) INSTVER(8.0.0.9) QMNAME(QMMIG) STATUS(Running) INSTNAME(Installation1) INSTPATH(C:\Program Files\IBM\WebSphere MQ) INSTVER(8.0.0.9)
About this task
We must open a Windows command prompt and set yourself up as an Administrator to carry out the following process. If you try and issue the crtmqm command without using the command prompt, you receive message AMQ7077: You are not authorized to perform the requested operation.
Procedure
- Select Start > Windows System > Command Prompt > More > Run as administrator The title for the window created is Administrator: Command Prompt.Note: The version of IBM MQ in the command prompt is IBM MQ Version 8.0.
- Run the setmqenv command or the batch file you might have created, set-mq-910. See Use the setmqenv command to run with both versions of IBM MQ for details.In either case, you see Version 9.1.0.0
- Issue the following command, C:\> crtmqm -u SYSTEM.DEAD.LETTER.QUEUE QM910 You see the following output:
IBM MQ queue manager created. Directory 'C:\ProgramData\IBM\MQ\qmgrs\QM910' created. The queue manager is associated with installation 'Installation2'. Creating or replacing default objects for queue manager 'QM910'. Default objects statistics : 87 created. 0 replaced. 0 failed. Completing setup. Setup completed.- Issue the following command to start the queue manager C:\> strmqm QM910 You see the following output. Note the lines that indicate the installation and the version under which the queue manager is running:
IBM MQ queue manager 'QM910' starting. The queue manager is associated with installation 'Installation2'. 5 log records accessed on queue manager 'QM910' during the log replay phase. Log replay for queue manager 'QM910' complete. Transaction manager state recovered for queue manager 'QM910'. IBM MQ queue manager 'QM910' started using V9.1.0.0.- Issue the command C:\> dspmq -o installation -s again to display the installed queue managers:
C:\> dspmq -o installation -s QMNAME(QM80) STATUS(Running) INSTNAME(Installation1) INSTPATH(C:\Program Files\IBM\WebSphere MQ) INSTVER(8.0.0.9) QMNAME(QMMIG) STATUS(Running) INSTNAME(Installation1) INSTPATH(C:\Program Files\IBM\WebSphere MQ) INSTVER(8.0.0.9) QMNAME(QM910) STATUS(Running) INSTNAME(Installation2) INSTPATH(C:\Program Files\IBM\MQ) INSTVER(9.1.0.0) ++ Cannot use MQ 9.1.0 administrative commands to run an MQ 8.0 queue managerImportant: We cannot use administrative commands on a different IBM MQ version from the one we are on.If you attempt to do so you receive message AMQ5691E: Queue manager <qmname> is associated with a different installation (<installation name>).
Parent topic: Installing a later version of IBM MQ to coexist with an earlier version on Windows Previous topic: Use the setmqenv command to run with both versions of IBM MQ Next topic: Migrating a queue manager to a later version of IBM MQ