Wednesday, November 12, 2008

MQ Server Queue Manager Creation and Setup

Document to Install Create Queues Channels, Clusters and Browse Queues through MQJExplorer

1. Create Queue manager
crtmqm -c "Queue Manager Name" -ll -q
2. Start Queue Manager
strmqm Queue Manager Name
3.Run MQSC to Verify Script Files for creating queue
runmqsc -v Queue Manager Name < "/usr/mqm/samp/QueueCreate.sh" > "/usr/mqm/samp/QueueCreate.out"
4. Run Mqsc to Create Queue :-
runmqsc Queue Manager Name < "/usr/mqm/samp/QueueCreate.sh" > "/usr/mqm/samp/QueueCreate.out"
5. Run MQSC to Verify Script Files for creating Channel
runmqsc -v Queue Manager Name < "/usr/mqm/samp/ChannelCreate.sh" > "/usr/mqm/samp/ChannelCreate.out"
6.run mqsc to create channel :-
runmqsc Queue Manager Name < "/usr/mqm/samp/ChannelCreate.sh" > "/usr/mqm/samp/ChannelCreate.out"

//After Creation all the Queues and Channels Alter Queue Manager
alter qmgr REPOS(DEFAULT_CLUSTER)

Connecting Queues by MQJExplorer :-
Completion Code 2, Reason 2059
1. Set the Channel by typing the Command at MQSC Command
define channel(SYSTEM.ADMIN.SVRCONN) chltype(SVRCONN) mcauser('mqm')
2. Start the Listener :-
runmqlsr -t tcp -m Q-Manager-Name -p 1415 &
endmqlsr -m Q-Manager-Name
3.Make Sure u have Started the Command Server “Use the strmqcsv command to start the command server for the specified queue manager. This enables WebSphere MQ to process commands sent to the command queue.”
strmqcsv
endmqcsv
3. Install MQJExplorer(for Accessing queues on AIX Box)
Connect by Selecting Remote Radio ButtonQueue Manager Name Machine Name
E.g. : Queue Manager Name :- Queue Manager NameMachine Name : ma-india62.asia.manh.com
Commonly Used Command
Displaying Queue/Channel Details.:-
Display queue()Display channel()
Deleting Queue/Channel :-
delete Qlocal/Qremote()delete channel()


Documents for Reference:-
1.For Referrence u can Refer MQFunctionAvaliable.doc 2. Look into script File QueueCreate.sh,ChannelCreate.sh for Creating Queues and Channels.3. amqaac04AIX (2).pdf4.mqjexplorer.zip
Useful Links:-
1.http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaf.doc/csqzaf0828.htm
2.http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaj.doc/csqzaj10.htm

No comments: