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.
Issuing the endmqm command will effect any client application connected through a server-connection channel. The effect varies depending on the parameter used, but it is as though a STOP CHANNEL command was issued in one of the three possible modes. See WebSphere MQ Clients, for information on the effects of STOP CHANNEL modes on server-connection channels. The endmqm optional parameter descriptions state which STOP CHANNEL mode they will be equivalent to.
.- -c -. >>-endmqm--+------+--+------+--QMgrName------------------------>< +- -w -+ '- -z -' +- -i -+ '- -p -'
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.
The effect on any client applications connected through a server-connection channel is equivalent to a STOP CHANNEL command issued in QUIESCE mode.
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.
The effect on any client applications connected through a server-connection channel is equivalent to a STOP CHANNEL command issued in QUIESCE mode.
Control is returned after the queue manager has ended.
The effect on any client applications connected through a server-connection channel is equivalent to a STOP CHANNEL command issued in FORCE mode.
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 might stop without waiting for applications to disconnect or for MQI calls to complete. This can give unpredictable results for WebSphere MQ applications. The shutdown mode is set to immediate shutdown. If the queue manager has not stopped after a few seconds, the shutdown mode is escalated, and all remaining queue manager processes are stopped.
The effect on any client applications connected through a server-connection channel is equivalent to a STOP CHANNEL command issued in TERMINATE mode.
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
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
zendqm |