MQ

 View Only
  • 1.  Is it okay to restore queue manager configuration in changed queue manager name

    Posted Thu November 07, 2024 12:48 PM

    Hello All,

    is it okay to restore queue manager configuration in changed queue manager name? I need to move queue manager to newly build host. 

    Thanks

    Priyanka



    ------------------------------
    Kumari Priyanka
    ------------------------------


  • 2.  RE: Is it okay to restore queue manager configuration in changed queue manager name

    Posted Fri November 08, 2024 02:05 AM

    Hi Kumari

    I'm no mq expert, but there are a couple of things in your mq config that you need to be mindful off.

    Some of your authrec's might contains information related to your host. Example:

    SET AUTHREC +
       PROFILE('@CLASS') +
       PRINCIPAL('mquser@MYHOSTNAME') +
       OBJTYPE(QUEUE) +
       AUTHADD(NONE)

    SET AUTHREC +
       PROFILE('SYSTEM.AMQP.COMMAND.QUEUE') +
       GROUP('mqm@MYHOSTNAME') +
       OBJTYPE(QUEUE) +
       AUTHADD(BROWSE,CHG,CLR,DLT,DSP,GET,INQ,PUT,PASSALL,PASSID,SET,SETALL,SETID)

    You  might have references to your old qmgr in your config, maybe in a channel name

    DEFINE CHANNEL('TO.QM1') +
       CHLTYPE(CLUSRCVR) +
    *  ALTDATE(2023-05-24) +
    *  ALTTIME(10.52.15) +
       CLUSTER('C1') +
       CONNAME('MYHOSTNAME(1415)') +
       MCATYPE(THREAD) +
       TRPTYPE(TCP)

    If you use SSL keys, might need to look at that as well

       SSLKEYR('C:\ProgramData\IBM\MQ\qmgrs\QM1\ssl\key') 

    You can definitely clone the qmgr, but have a look at the dumped config and change these settings first.



    ------------------------------
    Regards
    Matthias Blomme
    Integration Specialt
    Integration Designers
    Turnhout
    ------------------------------



  • 3.  RE: Is it okay to restore queue manager configuration in changed queue manager name

    Posted Fri November 08, 2024 07:51 AM
    Edited by bruce2359 Fri November 08, 2024 08:26 AM

    "is it okay to restore queue manager configuration in changed queue manager name? I need to move queue manager to newly build host. "

    Yes, IBM's recommended procedure for moving a queue manager follows:

    IBM MQ offers you a variety of tools (control commands, MQSC commands, IBM MQ Explorer, etc.) to save objects and their attribute values, and then restore them to a newly created queue manager.  There is also a control program to save messages in queues to a file, then restore the file to the newly created queue managers queues.



    ------------------------------
    bruce2359
    Consultant/trainer
    CTTECH - Computer & Telecommunications Technology
    West Coast, almost
    000-000-0000
    ------------------------------



  • 4.  RE: Is it okay to restore queue manager configuration in changed queue manager name

    Posted 28 days ago

    Hello!
    To add to this thread: the following tutorial shows all the steps:
    .
    https://www.ibm.com/support/pages/node/738087
    Steps to export the object definitions and messages from one MQ queue manager in host-1 and import them in another queue manager in host-2? (dmpmqcfg, saveqmgr)
    Using MQ utility dmpmqcfg and dmpmqmsg.
    .
    Thanks!
    Angel Rivera
    IBM MQ Support



    ------------------------------
    Angel Rivera
    IBM MQ Support
    Research Triangle Park
    ------------------------------



  • 5.  RE: Is it okay to restore queue manager configuration in changed queue manager name

    Posted 27 days ago

    dmpmqcfg -m xxxx > /tmp/xxx.txt

    xxxx is your MQ Queue Manager and file will be saved on your tmp folder. 

    Now modify the HOSTNAME where ever required.



    ------------------------------
    VijayaBhaskar p
    ------------------------------