Use the endmqm command to end (stop) a specified local queue manager. This command stops a queue manager in one of three modes:
The attributes of the queue manager and the objects associated with it are not affected. You can restart the queue manager using the strmqm (Start queue manager) command.
To delete a queue manager, stop it and then use the dltmqm (Delete queue manager) command.
Optional parameters
The queue manager stops, but only after all applications have disconnected. Any MQI calls currently being processed are completed.
Control is returned to you immediately and you are not notified of when the queue manager has stopped.
This type of shutdown is equivalent to a controlled shutdown except that control is returned to you only after the queue manager has stopped. You receive the message Waiting for queue manager qmName to end while shutdown progresses.
Control is returned after the queue manager has ended.
Use this type of shutdown only in exceptional circumstances. For example, when a queue manager does not stop as a result of a normal endmqm command.
The queue manager stops without waiting for applications to disconnect or for MQI calls to complete. This can give unpredictable results for WebSphere MQ applications. All processes in the queue manager that fail to stop are terminated 30 seconds after the command is issued.
0 | Queue manager ended |
3 | Queue manager being created |
16 | Queue manager does not exist |
40 | Queue manager not available |
49 | Queue manager stopping |
69 | Storage not available |
71 | Unexpected error |
72 | Queue manager name error |
The following examples show commands that stop the specified queue managers.
endmqm mercury.queue.manager
endmqm -i saturn.queue.manager
crtmqm | Create a queue manager |
strmqm | Start a queue manager |
dltmqm | Delete a queue manager |