Login into MQ server using “mqm” user Navigate to ”/usr/mqm/bin”Run the following command to create the queue manager................................ crtmqm <<QManager_name>>Run the following command to start the queue managerstrmqm <<QManager_name>>-----------------------------------------------------------------------------------------------------------------------------------Run the following command to stop the queue managerendmqm <<QManager_name>>-----------------------------------------------------------------------------------------------------------------------------------Run the following command to go into the queue managerrunmqsc <<QManager_name>>-----------------------------------------------------------------------------------------------------------------------------------Run the following command to create local queue-----------------------------------------------------------------------------------------------------------------------------------define qlocal (<<MSG.INCOMING_QUEUE_NAME)Run the following command to create transmission queuedefine qlocal (<<Transmission_Queue_Name>>) USAGE(XMITQ)Run the following command to create remote queueDEFINE QREMOTE(<<MSG.OUTGOING_QUEUE_NAME>>) REPLACE RNAME(<<REMOTE_INCOMING_LOCAL_QUEUE_NAME>>) RQMNAME(<<REMOTE_QUEUE_MANGER_NAME>>) XMITQ(<<Transmission_Queue_Name>>)-----------------------------------------------------------------------------------------------------------------------------------Incase to alter queue, Run the following commandalter qlocal(<<QUEUENAME>>) DEFPSIST(YES) MAXDEPTH(500000)-----------------------------------------------------------------------------------------------------------------------------------DEFINE CHANNEL (SYSTEM.ADMIN.SVRCONN) CHLTYPE (SVRCONN)alter listener(system.default.listener.tcp) trptype(tcp) control(QMGR) port(1414)start listener(system.default.listener.tcp)ALTER QMGR CHLAUTH(disabled)end-----------------------------------------------------------------------------------------------------------------------------------Giving permission for Queue and queue manager to root user. Run following one by one-----------------------------------------------------------------------------------------------------------------------------------./setmqaut -m <<QManager_name>> -t qmgr -p root +all./setmqaut -n <<Transmission_Queue_Name>> -m <<QManager_name>> -t queue -p root +all./setmqaut -n <<MSG.INCOMING_QUEUE_NAME>> -m <<QManager_name>> -t queue -p root +all./setmqaut -n <<MSG.OUTGOING_QUEUE_NAME>> -m <<QManager_name>> -t queue -p root +all./setmqaut -m <<QManager_name>> -t qmgr -p root +connect +inq +dsp-----------------------------------------------------------------------------------------------------------------------------------To allow the request from Current MQ server run the following command one by one -----------------------------------------------------------------------------------------------------------------------------------runmqsc <<QManager_name>>set CHLAUTH(SYSTEM.ADMIN.SVRCONN) TYPE(ADDRESSMAP) ADDRESS(<<IP_ADDR_MQSERVER>>>>) USERSRC(CHANNEL)end-----------------------------------------------------------------------------------------------------------------------------------Run the following command to create RECEIVER Channelrunmqsc <<QManager_name>>define channel (<<RECEIVER_CHANNEL_NAME>>) chltype (RCVR) trptype (TCP)Run the following command to create sender Channeldefine channel(<<SENDER_CHANNEL_NAME>>) chltype(sdr) conname('<<SENDER_QUEUE_IP(<<PORT_NO>>)') xmitq(<<Transmission_Queue_Name>>) trptype(tcp)end-----------------------------------------------------------------------------------------------------------------------------------Run the following command to display Channel,listener,queue status................runmqsc <<QUEUE_MANAGER_NAME>>display LISTENER(*)display QUEUE(*)display CHANNEL(*)end-----------------------------------------------------------------------Stop-Reset-Resolve-Start Channel................................stop channel(<<Channel_name>>)reset channel(<<Channel_name>>)resolve channel(<<Channel_name>>) action(commit)start channel(<<Channel_name>>)--------------------------------------------------------------------------Alter Channel - discint(0) means sender channel never goes inactive...................................................................runmqsc <<QUEUE_MANAGER_NAME>>ALTER channel(<<SENDER_CHANNEL_NAME>>) chltype(sdr) conname('<<SENDER_QUEUE_IP(<<PORT_NO>>)') xmitq(<<Transmission_Queue_Name>>) trptype(tcp) DISCINT(0)end----------------------------------------------------------------------------
Hi, I have written and developed this post so that most of people will be benefited. I'm committed to provide easy and in-depth tutorials on various technologies.I hope it will help you a lot.
- Raj Follow Me @
Google+
0 comments :
Post a Comment