These examples are based on Linux. Switch to the mqm user.
su - mqm
Use the endmqm command to stop a queue manager. In this example, MANAGER01 is stopped. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.
The dspmq command can be used to determine if the queue manager is "ended normally".
QMNAME(MANAGER01) STATUS(Ended normally)