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 number of 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.
Display the current number of connections to the queue manager.
echo "display qmstatus conns" | runmqsc MANAGER01
Following is an example of what will be displayed. In this example, there are 25 current connections to the queue manager.
3 : display qmstatus conns AMQ8705I: Display Queue Manager Status Details. QMNAME(MANAGER01) STATUS(RUNNING) CONNS(25)