MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  runmqsc via intermediate qmanager

    Posted Thu August 10, 2023 02:03 AM

    Hello,

    MQ explorer can connect to qmanager via intermediate qmanager. Is it possible to do the same with  runmqsc ?

    mq admin machine -> qm1->qm2

    I can connect from MQ explorer running on mq admin machine to qm2 via qm1 but "runmqsc -c -w 30 -m qm1 qm2" returns an error.

    I can also run "runmqsc  -w 30 -m qm1 qm2" on qm1 machine.

    Any idea ?

    Yulia.



    ------------------------------
    Yulia Vaisman
    ------------------------------


  • 2.  RE: runmqsc via intermediate qmanager

    Posted Thu August 10, 2023 02:39 AM

    As you have discovered, you can run runmqsc in via mode by supplying the via qmgr using -m and additionally supplying a wait time with -w. You can read more about these options in IBM Docs: runmqsc.

    I think what you are asking is to combine both client mode (-c) and via mode? I don't think this can be done. I believe the queue manager that the client connection is made to is always going to be qm2 in your setup. Whereas you want to tell runmqsc to connect to qm1 via a client and then use it to get to qm2.

    You say that you received an error when you tried it - could you show us the error? I'm assuming that it was just a connectivity error when runmqsc tried to connect, as a client to qm2?

    Perhaps you can tell us a bit more about why you need to be able to do this? You may be able to find some help using other tools. MQSCX for example does allow the combination of a client connect to a via queue manager.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 3.  RE: runmqsc via intermediate qmanager

    Posted Thu August 10, 2023 02:51 AM

    Our security team prefer not to open connection to qm2 from mq admin ip address. The error I got :

    AMQ8118E: IBM MQ queue manager does not exist.



    ------------------------------
    Yulia Vaisman
    ------------------------------



  • 4.  RE: runmqsc via intermediate qmanager

    Posted Fri August 11, 2023 08:57 AM

    you get the error as i think you have not exported the MQSERVER or CHLTAB.

    AMQ8118E: IBM MQ queue manager does not exist.

    Trying the same gives me similar error.

    testmachine1(/)runmqsc -c -w 30 -m QM1 QM2
    5724-H72 (C) Copyright IBM Corp. 1994, 2023.
    Starting MQSC for queue manager QM2.
    AMQ8118E: IBM MQ queue manager does not exist.
    
    0 command responses received.
    
    

    And now when exporting MQSERVER; it works as you needed.

    testmachine1(/)export MQSERVER=CLIENT.QM2/tcp/'testmachine2(1414)'
    testmachine1(/)runmqsc -c -w 30 -m QM1 QM2
    5724-H72 (C) Copyright IBM Corp. 1994, 2023.
    Starting MQSC for queue manager QM2.
    
    
    0 command responses received.
    

    Try like this and see if it works.



    ------------------------------
    om prakash
    ------------------------------



  • 5.  RE: runmqsc via intermediate qmanager

    Posted Sat August 12, 2023 01:26 PM

    Of course I used mqserver. In your example you run the command from QM1. But the idea was to run it from PC connected via mq client to QM1. I opened a case but answer was " You cannot do it' 



    ------------------------------
    Yulia Vaisman
    ------------------------------



  • 6.  RE: runmqsc via intermediate qmanager

    Posted Sun August 13, 2023 01:30 AM
    Edited by Muneeb Pathan Mon August 21, 2023 12:30 AM

    Our security team's preference is to avoid establishing, a connection to qm2 from the MQ admin IP address. The error message I encountered is as follows:

    "AMQ8118E: IBM MQ queue manager does not exist."



    ------------------------------
    Muneeb Pathan
    ------------------------------