These examples are based on Linux. Switch to the mqm user.
su - mqm
Use the dspmq command to display the queue managers. In this example, there are 4 queue managers. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.
dspmq QMNAME(MANAGER01) STATUS(Running) QMNAME(MANAGER02) STATUS(Running as standby) QMNAME(MANAGER03) STATUS(Running elsewhere) QMNAME(MANAGER04) STATUS(Ended normally)
Include installation name/path/version
If you have more than one installation of MQ installed, you can use the -o installation option to display the installation name, path, and version. Typically, the -o status option is also included to display the status of the queue manager.
dspmq -o installation -o status QMNAME(MANAGER01) STATUS(Running) INSTNAME(Installation1) INSTPATH(/opt/mqm) INSTVER(126.96.36.199)
The strmqm command can be used to start a queue manager.
The endmqm command can be used to stop a queue manager.