Creating a queue manager

How you create a queue manager, using the crtmqm command. You can use IBM® MQ Explorer to perform this task.

Before you begin

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(9.1.0.9) 
QMNAME(QMMIG)                                 STATUS(Running) INSTNAME(Installation1)    
  INSTPATH(C:\Program Files\IBM\WebSphere MQ) INSTVER(9.1.0.9) 

About this task

You 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

  1. 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 9.1.
  2. Run the setmqenv command or the batch file you might have created, set-mq-930.
    In either case, you see Version 9.3.0.0
  3. Issue the following command, C:\> crtmqm -u SYSTEM.DEAD.LETTER.QUEUE QM930
    You see the following output:
    IBM MQ queue manager created. 
    Directory 'C:\ProgramData\IBM\MQ\qmgrs\QM930' created. 
    The queue manager is associated with installation 'Installation2'. 
    Creating or replacing default objects for queue manager 'QM930'. 
    Default objects statistics : 87 created. 0 replaced. 0 failed. 
    Completing setup. 
    Setup completed. 
  4. Issue the following command to start the queue manager C:\> strmqm QM930
    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 'QM930' starting. 
    The queue manager is associated with installation 'Installation2'. 
    5 log records accessed on queue manager 'QM930' during the log replay phase. 
    Log replay for queue manager 'QM930' complete. 
    Transaction manager state recovered for queue manager 'QM910'. 
    IBM MQ queue manager 'QM930' started using V9.3.0.0. 
  5. 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(9.1.0.9) 
    QMNAME(QMMIG)                                 STATUS(Running) INSTNAME(Installation1)    
      INSTPATH(C:\Program Files\IBM\WebSphere MQ) INSTVER(9.1.0.9) 
    QMNAME(QM910)                                 STATUS(Running) INSTNAME(Installation2) 
      INSTPATH(C:\Program Files\IBM\MQ) INSTVER(9.3.0.0)
    ++ Cannot use MQ 9.3.0 administrative commands to run an MQ 9.1 queue manager  
    Important: You cannot use administrative commands on a different IBM MQ version from the one you are on.

    If you attempt to do so you receive message AMQ5691E: Queue manager <qmname> is associated with a different installation (<installation name>).