Use the mqsimode command to configure and retrieve operation mode information.
Use the mqsimode command to change the operation mode of a broker, or to retrieve information about the mode in which the broker is currently working.
>>-mqsimode--| brokerSpec |--+---------------------+------------> '- -o --operationMode-' >--+-------------------+--+---------------------+---------------> '- -w --timeoutSecs-' '- -v --traceFileName-' >--+----------------------+------------------------------------>< '- -x --modeExtensions-' brokerSpec |--+- brokerName ----------------+------------------------------| +- -n --brokerFileName--------+ | .-------------------------. | | V | | '-----+- -i --ipAddress-+---+-' +- -p --port------+ '- -q --qMgr------'
Use this option if multiple users want to connect to the same broker, or if you are using advanced connection parameters such as SSL.
To create this file, right-click the broker in the IBM® Integration Explorer and select Export *.broker file. When prompted, navigate to the location in which you want to save the file and enter the file name; the extension .broker is appended automatically when you click Save. Include the location (path) and file name when you specify this parameter. You must ensure that the location is accessible when you run this command.
If you want to run a command that uses SSL to administer a remote broker over a secured channel, you must specify the keystore and truststore password for the connection using the IBM_JAVA_OPTIONS environment variable. See Resolving problems when running commands for further information.
Use this option for connections to remote brokers that do not require advanced connection parameters.
If you choose this option, you must specify at least one of these three parameters; the order in which you specify them is insignificant. You cannot specify each parameter more than once.
Parameters that you omit assume default values:
If you have purchased a license for the Standard Edition, you are entitled to run your brokers in either standard or scale mode.
If the mode extension is DecisionServices, you do not need to specify the broker name. If you do specify a broker name, it is ignored.
If you try to connect to a remote broker by specifying the i, p, and q parameters, or by using a connection parameter file (.broker), the command attempts to use WebSphere® MQ Java™ client code. This option is not supported on z/OS, and returns the following error:
BIP1046E: Unable to connect with the broker (name)
The reported reason code is MQRC_ENVIRONMENT_ERROR. You must specify a local queue manager.
Running the mqsimode command specifying the -o parameter
When you run the mqsimode command for broker BROKER1, and specify the -o parameter, the mode is updated, and you receive a report about all errors. For example, if you run the following mqsimode command to change your broker to the Remote Adapter Deployment mode, and your broker is in the following state:mqsimode BROKER1 –o adapter
You receive
the following messages:BIP1044: Connecting to the broker's queue manager...
BIP1045: Connecting to the broker...
BIP1805: The mode for broker 'Broker_Name1' has been changed to 'adapter'.
BIP1823: WARNING: Broker 'Broker_Name1' has a message flow called 'Message_Flow'
in integration server 'Execution_Group', which contains one or more nodes that are not
valid in this mode: Node_Type.
BIP8229: The command completed with the following number of warnings: 1.
Running the mqsimode command without the -o parameter
When you run the mqsimode command without the -o parameter, you receive a report about the mode being used by your broker, a report about all mode violations, and a report for any mode extensions that are required and not set. For example, if you run the following mqsimode command, and your broker is in the following state:mqsimode Broker_Name
You
receive the following messages:BIP1044: Connecting to the broker's queue manager...
BIP1807: Discovering mode information from broker 'Broker_Name'...
BIP1802: Broker 'Broker_Name' is in 'standard' mode.
BIP8071: Successful command completion.
Switching off all mode extensions
To switch off all mode extensions, run the mqsimode command with the -x parameter:mqsimode Broker_Name –x
where Broker_Name is
the name of your broker.