I have been trying to find all the queue managers inside IBM MQ Server by giving server details without queue manager name.
The idea is :
- I have a properties file having server details- host, port number, channel, userid, passwrd.
- By using this info we need to connect to the server and find all the queue managers available in the server.
- I need to use IBM MQ classes in java.
As we have ways to find all the queues inside a queue manager can we do similarly to find all queue managers?
dspmqinstcommand documented here? If you have a multi-version install, this will show the IBM MQ installations on the server. Depending on the result, it should be possible to set your env and follow the approach from Mark's answer to list the Queue Managers for each install. You could run someMQSCto show the listeners for each queue manager e.g.,runmqsc QM1thenDISPLAY LISTENER(*)to show all listeners and then inspect thePORTfor each. - richc