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'
Original Message:
Sent: Fri August 11, 2023 08:56 AM
From: om prakash
Subject: runmqsc via intermediate qmanager
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 QM25724-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 QM25724-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
Original Message:
Sent: Thu August 10, 2023 02:51 AM
From: Yulia Vaisman
Subject: runmqsc via intermediate qmanager
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
Original Message:
Sent: Thu August 10, 2023 02:38 AM
From: Morag Hughson
Subject: runmqsc via intermediate qmanager
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
Original Message:
Sent: Thu August 10, 2023 02:03 AM
From: Yulia Vaisman
Subject: runmqsc via intermediate qmanager
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
------------------------------