endmqlsr (end listener)

End all listener process for a queue manager.


Purpose

The endmqlsr command ends all listener processes for the specified queue manager.

You must use the endmqlsr command from the installation associated with the queue manager that you are working with. We can find out which installation a queue manager is associated with using the dspmq -o installation command.

You do not have to stop the queue manager before issuing the endmqlsr command. If any of the listeners are configured to have inbound channels running within the runmqlsr listener process, rather than within a pool process, the request to end that listener might fail if channels are still active. In this case a message is written indicating how many listeners were successfully ended and how many listeners are still running.

If the listener attribute, CONTROL, is specified as QMGR then changing the state of the listener using endmqlsr does not effect how the queue manager acts upon the CONTROL attribute at the next restart.


Syntax

endmqlsr   -w   -m QMgrName


Optional parameters

    -m QMgrName
    The name of the queue manager. If you omit this parameter, the command operates on the default queue manager.
    -w
    Wait before returning control.

    Control is returned to we only after all listeners for the specified queue manager have stopped.


Return codes

Return code Description
0 Command completed normally
10 Command completed with unexpected results
20 An error occurred during processing