If you are not sure what an MQ queue manager is, check out our Getting Started tutorial. These examples are based on Linux.
Start the MQSC utility for the queue manager that you want to display the current connections. In this example, MANAGER01 is the name of the queue manager. If you are not sure the name of the queue manager, use the dspmq command to display the queue managers. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.
Get the connection ID number using the display conn command. End the connection.
echo "stop conn (connection_ID_number)" | runmqsc MANAGER01
Following is an example of what will be displayed.
18 : stop conn (3944303409348938434)
AMQ8457I: IBM MQ connection stopped.