Managing the command server for remote administration on IBM i
Use this information to learn about the remote administration of IBM® MQ for IBM i command server.
Each queue manager can have a command server associated with it. A command server processes any incoming commands from remote queue managers, or PCF commands from applications. It presents the commands to the queue manager for processing and returns a completion code or operator message depending on the origin of the command.
A command server is mandatory for all administration involving PCFs, the MQAI, and also for remote administration.
There are separate control commands for starting and stopping the command server. You can perform the operations described in the following sections using the IBM MQ Explorer.
Starting and stopping the command server
To start the command server, use this CL command:
STRMQMCSVR MQMNAME('saturn.queue.manager')
where
saturn.queue.manager
is the queue manager for which the command server is being
started. -
to perform a controlled stop, whereENDMQMCSVR MQMNAME('saturn.queue.manager') OPTION(*CNTRLD)
saturn.queue.manager
is the queue manager for which the command server is being stopped. This is the default option, which means that theOPTION(*CNTRLD)
can be omitted. -
to perform an immediate stop, whereENDMQMCSVR MQMNAME('saturn.queue.manager') OPTION(*IMMED)
saturn.queue.manager
is the queue manager for which the command server is being stopped.
Displaying the status of the command server
For remote administration, ensure that the command server on the target queue manager is running.
If it is not running, remote commands cannot be processed. Any messages containing commands are
queued in the target queue manager's command queue SYSTEM.ADMIN.COMMAND.QUEUE
.
saturn.queue.manager
, the CL command is:
DSPMQMCSVR MQMNAME('saturn.queue.manager')