endmqm (end queue manager)

 

 

Purpose

Use the endmqm command to end (stop) a specified local queue manager. This command stops a queue manager in one of three modes:

  1. Controlled or quiesced shutdown
  2. Immediate shutdown
  3. Preemptive shutdown

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.

 

Syntax

           .- -c -.
>>-endmqm--+------+--+------+--queue_manager------------------------><
           +- -w -+  '- -z -'
           +- -i -+
           '- -p -'
 
 

 

Required parameters

queue_manager
The name of the message queue manager to be stopped.

 

Optional parameters

-c
Controlled (or quiesced) shutdown. This is the default.

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.

-w
Wait shutdown.

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.

-i
Immediate shutdown. The queue manager stops after it has completed all the MQI calls currently being processed. Any MQI requests issued after the command has been issued fail. Any incomplete units of work are rolled back when the queue manager is next started.

Control is returned after the queue manager has ended.

-p
Preemptive shutdown.

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.

-z
Suppresses error messages on the command.

 

Return codes


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

 

Examples

The following examples show commands that stop the specified queue managers.

  1. This command ends the queue manager named mercury.queue.manager in a controlled way. All applications currently connected are allowed to disconnect.
    endmqm mercury.queue.manager
    

  2. This command ends the queue manager named saturn.queue.manager immediately. All current MQI calls complete, but no new ones are allowed.
    endmqm -i saturn.queue.manager
    

 

Related commands


crtmqm Create a queue manager
strmqm Start a queue manager
dltmqm Delete a queue manager

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.