Create a Queue Manager
CRTMQM Qmgrname
To delete a queue Manager
DLTMQM [-Z] Qmgrname
Start the Queue Manager
STRMQM Qmgrname
Stop Queue Manager
Endmqm–i qmgrname immediately stop
Endmqm–p qmgrname Force Stop
Show Queue Manager
DSPMQ View all queues
Dspmq-m qmgrname---- show the specific queue manager
To start the agent:
Strmqbrk-m GCP_QM
Start listener
Runmqlsr-m qmgrname-p port-t TCP
Exp runmqlsr-m gcp_qm-p 1414-t TCP &
Stop listening
Endmqlsr-m Qmgrname
Select Queue Manager
RUNMQSC Qmgrname
Exit Queue Manager
End
Show queue Properties
DISPLAY qlocal (Q)
View all queues
Dis Q (*)
AIX View System version:
Lslpp-ah Mqm.server.rte
Linux viewing system version:
Rpm-qa |grep MQ
ENDMQM qmgrname controlled Stop
Endmqm–i qmgrname immediately stop
Endmqm–p qmgrname Force Stop
Dis qmgr View Queue Manager Properties
Dis q (gcp_notify_q_recol) shows all properties
Dis QS (gcp_notify_q_recol) shows the main properties
Modify Queue Properties
ALTER QMGR CCSID (1381)
Defining Queue Properties
DEFINE CHANNEL (C) chltype (SDR) CONNAME (' 127.0.0.1 (1414) ') XMITQ (XQ)
Exp Define channel (CH1) Chltype (SVRCONN) trptype (TCP) mcauser (' MQM ')
Create a local queue
Define Qlocal (QueueName)
Modify Queue Properties
Alter Qlocal (Qname) maxdepth (5)
Re-create local queue, reset property to Default
Define Qlocal (Qname) Replace
To delete a local queue
Delete Qlocal (Qname)
View the cause of the error
Log in as an MQ user to see The cause of the MQ error:
Direct MQRC 2085
View ports
by Ps-ef |grep gcp_qm
MQM 9204 1 0 May 05? 0:02 runmqlsr-m gcp_qm-t tcp-p 1417
Extend the queue depth
#su –MQM
#runmqsc P_DNMS_QM
Alter Qlocal (Q_rm_data) MAXDEPTH (100000)// increase configuration queue depth
Alter Qlocal (Q_pm_data) MAXDEPTH (100000)// increase performance Queue depth
Queue authorization:
Setmqaut-m p_dnms_qm-n q_redef_alarm-t q-g MQM +all
The core of how WebSphere MQ works is store- and-forward
To view the running status of the queue Manager:
Dspmq
to view the running status of the jmsbreak :
Dspmqbrk
Putting messages in a queue
Amqsput QName Qmgrname
Clears all messages in the queue
CLEAR qlocal(QNAME)
Create a queue manager for the GCP Unified Acquisition platform on a machine with MQ6.0 and above, and define the channel, character set, and other information. Execution of the script created by the queue MQJMS_GCP.MQSC Complete the creation of the system's required queue.
The specific operation is as follows:
1, establish gcp_qm
CRTMQM GCP_QM
2. Start gcp_qm
STRMQM GCP_QM
3, open strmqbrk Agent
Strmqbrk-m GCP_QM
4, establish some basic queue, script in the MQ installation directory under the java/bin
RUNMQSC GCP_QM < MQJMS_PSQ.MQSC
5. Select gcp_qm Queue Manager
RUNMQSC GCP_QM
6, define the pipeline ( after performing the fifth step of the console execution )
Define channel (CH1) Chltype (SVRCONN) trptype (TCP) mcauser (' MQM ')
After execution end exits
7. Defining Queues
RUNMQSC GCP_QM < MQJMS_GCP.MQSC(description mqjms_gc p.mqsc script is provided in the installation package. )
8. Start monitoring ( background boot )
Runmqlsr-m gcp_qm-t tcp-p port &
viewing ports via ps-ef |grep gcp_qm
Note: The service will useMQthe release topic, based on the different operating systems, establishes the queue managerCCSIDwill be different, under normal circumstancesCCSIDto be819to ensure that the subject is in normal use. So finally we need to check the queue Manager .CCSID. Method:RUNMQSC GCP_QMGo to the consoleDis qmgrViewCCSID, usingAlter Qmgr CCSID(819), and then restart the Queue manager for it to take effect. Stop the queue Manager usingendmqm–i GCP_QM, start the reference in front of the life
MQ Common Commands