Use the mqsistopmsgflow command to stop message flows.
Stop a single message flow, or all message flows in an execution group, on a specified broker. You must have previously deployed the message flows to the broker in a BAR file.
If you do not specify the -e and -m flags, all message flows on the broker are stopped.
You can specify only one message flow in a single command. However, if you do not specify this parameter, all message flows on the execution group or broker are stopped.
If you specify this flag you must also specify the -e flag.
If you do not supply the -i, -p, and -q parameters, you must specify the -n parameter.
On all platforms, the user ID used to run this command must have sufficient authority defined in the access control list defined to the Configuration Manager. The permissions required are the same as the permission required to do the equivalent function in the Message Brokers Toolkit
Stops all message flows on execution group default on broker B1, which is controlled by the Configuration Manager whose connection details are described in cm1.configmgr. Control is returned to the caller when all message flows in the execution group are reported as stopped, or the default time of one minute elapses, whichever is sooner.
mqsistopmsgflow –n cm1.configmgr –b B1 -e default
Stops the message flow flow1 on execution group default on broker B1, which is controlled by the Configuration Manager whose connection details are described in cm1.configmgr. Control is returned to the caller when the message flow is reported as stopped, or the default time of one minute elapses, whichever is sooner.
mqsistopmsgflow –n cm1.configmgr –b B1 -e default -m flow1
Enter mqsistopmsgflow to display usage information:
> mqsistopmsgflow BIP1025I: Stops message flows. > Syntax: mqsistopmsgflow (-n cfgParameterFileName | ([-i ipAddress] [-p port] [-q qMgr])) -b brokerName [-e executionGroupName [-m flowName]] [-w timeoutValue] [-v traceFileName] Command Options: '-n cfgParameterFileName' Configuration Manager connection file (.configmgr) '-i ipAddress' IP address or host name of the Configuration Manager '-p port' port number of the Configuration Manager '-q qMgr' queue manager of the Configuration Manager '-b brokerName' name of the broker on which to stop message flows '-e executionGroupName' name of the execution group on which to stop message flows. If this is not specified, all message flows on the broker will be stopped. '-m flowName' name of the message flow to start. If this is not specified, all message flows on the execution group will be stopped. '-w timeoutValue' time to wait (in seconds) for message flows to stop (Default=60) '-v traceFileName' send verbose internal trace to the specified file.