View MQ running status

View MQ running status 
1. View queue manager running status 
For MQ 5.2 or above, execute the following command to check the running status of the queue manager: 
# dspmq In the 
display results, QMNAME indicates the name of the MQ queue manager, and STATUS indicates the current running status. 
There are several running states: 
Starting Starting 
Running Running 
Ending Stopping 
Ended normally Ended normally 
Ended immediately Ended immediately 
Ended preemtively Forced termination 
Ended unexpectively Abnormal termination 
Note: It is recommended to use the dspmq command to check whether the status is successfully closed after stopping MQ . 
Example of dspmq query results 
QMNAME (QM00) STATUS (Running) 
2. View the channel running status and start and stop channels 
$ runmqsc 
dis chl (*); View all channel definitions 
dis chs (*); View all channel status, if no channel is queried Status, or error AMQ8420: Channel Status not found, please start the channel 
dis chs (ChannelName); Check the status of the 
channel ChannelName The channel status is as follows: 
STARTING is starting
BINDING Binding 
INITIALIZING Initializing 
RUNNING Normal 
STOPPING Stopping 
RETRYING Retry 
PAUSED Waiting for 
STOPPED Stopped 
REQUESTING Request Method to 
start and stop the channel and reset the channel number: 
$ runmqsc 
 
start chl (ChannelName); start channel 
stop chl (ChannelName); stop Channel 
reset channel (ChannelName); Reset the channel number. When the channel of the local and other MQ queue managers cannot be started normally, check the log and find that the channel sequence number is inconsistent. At this time, you need to stop the sender channel first, and reset the channel count on the sender and receiver. After starting the channel, communication can be resumed. To understand why you want to reset the channel, please check this article: Websphere MQ message sequence number Message Sequence Detailed 
3. View channel monitoring status and start and stop monitoring 
$ runmqsc 
dis listner (*); View channel monitoring definition 
dis lsstatu (listnerName); View Monitoring status 
Start and stop monitoring methods: 
$ runmqsc 
start lstr (listnerName); start monitoring 
stop lstr (listnerName); stop monitoring  
4. View queue depth
If the queue depth continues to increase and does not decrease, then there may be a problem, please check and analyze the cause. 
$ runmqsc 
dis q (*); View the attributes of all types of queues 
dis qlocal (QName); View the attributes of all local queues The 
queue depth attribute is: CURDEPTH 
5. View the dead letter queue depth 
If the dead letter queue depth continues to increase, then The reasons need to be analyzed. 
$ runmqsc 
dis qlocal (DEADQName)

  

Guess you like

Origin www.cnblogs.com/dahaoran/p/12760858.html