MQ Command

MQ Command

=============================================================================================
Part 1: Queue Manger Command
=============================================================================================

1. Create Queue Manager
crtmqm QmgrName

2. Start Queue Manager

strmqm QmgrName

3. Run Queue Manager console
runmqsc QmgrName

4. End Queue Manager

endmqm QmgrName

endmqm –i QmgrName

endmqm –p QmgrName

5. Delete Queue Manager

dltmqm QmgrName

6. Change CCSID
ALTER QMGR CCSID(1208)

8. Display Queue Manager
dspmq QmgrName

9. Put message to Queue
amqsput QName QmgrName

10. Get message from Queue
amqsget QName QmgrName

=============================================================================================
Part 2: Queue Command
=============================================================================================

All the command are running under Queue Manager Console

1. Define Local Queue
DEFINE QLOCAL ('QUEUENAME') REPLACE


2. Define Alias Queue
DEFINE QALIAS ('QUEUENAME') TARGQ('TARGQUEUENAME')

3. Define Remote Queue

DEFINE QREMOTE ('QRNAME') RNAME('AAA') RQMNAME('QMGRNAME') XMITQ('QTNAME')

4. Define Model Queue
DEFINE QMODEL(QNAME) DEFTYPE(TEMPDYN)

5. Define transmission Queue

DEFINE QLOCAL(QTNAME) USAGE(XMITQ) DEFPSIST(YES) +
INITQ(SYSTEM.CHANNEL.INITQ)+
PROCESS(PROCESSNAME) REPLACE

6. Delete Queue
DELETE QLOCAL(QNAME)
DELETE QREMOTE(QRNAME)


7. Display queue properties
DISPLAY QUEUE(QNAME) [ALL]

DISPLAY QUEUE(QNAME) DESCR GET PUT

DISPLAY QUEUE(QNAME)MAXDEPTH CURDEPTH

8. Display queue properties

ALTER QMGR DESCR(‘NEW DESCRIPTION’)
ALTER QLOCAL(QNAME) PUT(DISABLED)
ALTER QALIAS(QNAME) TARGQ(TARGQNAME)

9. Clear All Message
CLEAR QLOCAL(QNAME)

 

 

=============================================================================================
Part 3: Channel Command
=============================================================================================

1. Define sender Channel
DEFINE CHANNEL(SDRNAME) CHLTYPE(SDR)+
CONNAME(‘100.100.100.215(1418)’) XMITQ(QTNAME) REPLACE

2. Define receiver Channel
DEFINE CHANNEL(SDR_ TEST) CHLTYPE(RCVR) REPLACE


3. Define server Channel
DEFINE CHANNEL(SVRCONNNAME) CHLTYPE(SVRCONN) REPLACE

4. Start Channel

runmqchl –c ChlName –m QmgrName


=============================================================================================
Part 4: Broker Command
=============================================================================================

1. Create Broker on the Queue Manager
mqsicreatebroker BROKERName -q QmgrName

2. Delete the broker and its associated queue manager:
mqsideletebroker BROKERName

3. Start the ESHB Broker
mqsistart BROKERName

4. Stop Broker
mqsistop BROKERName
 
5. Create the Execution Groups in ESHB Broker
mqsicreateexecutiongroup BROKERName -e EXECUTEGRPName

6. Deploy

mqsideploy  BROKERName -e EXECUTEGRPName -a  Test.bar

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值