The first thing we need to check is that the Queue Managers are running. We then need to check the Listeners and Channels. Let's look at a unidirectional setup as an example. There are a number of WebSphere MQ, operating system, and DB2 commands that can be issued on each system to check the status of the various components, as shown in the following diagram:
Note that points (d) and (e) are really in the Q replication layer, but are shown here for completeness.
Use the following DSPMQ
MQ command to display the status of a Queue Manager:
$ dspmq
We will see the following message:
QMNAME(QMA) STATUS(Running)
If we see the following message:
QMNAME(QMA) STATUS(Ended unexpectedly)
Then the Queue Manager is not active and we need to start it using the STRMQM
command, as described in the Create/start/stop a Queue Manager—Starting a Queue Manager section of Chapter 4, WebSphere MQ for the DBA.