Server1:
Create the logs and qmgrs directory in the shared file system:
# mkdir logs
# mkdir data
# chown -R mqm:mqm /mqha
# chmod -R ug+rwx /mqha
Create the queue manager:
# crtmqm -ld /mqha/log/ -md /mqha/data/ TEST
WebSphere MQ queue manager created.
Directory '/mqha/data/TEST' created.
The queue manager is associated with installation 'Installation1'.
Creating or replacing default objects for queue manager 'TEST'.
Default objects statistics : 74 created. 0 replaced. 0 failed.
Completing setup.
Setup completed.
#
Copy the queuemanager configuration details from Server1:
# dspmqinf -o command TEST
Copy the output of the above command to Notepad. The output will be in the following format:
addmqinf -s QueueManager -v Name=TEST -v Directory=TEST -v Prefix=/var/mqm -v DataPath=/mqha/data/TEST
Server:2
Paste the output of the command was saved in Notepad in Step 4:
# addmqinf -s QueueManager -v Name=TEST -v Directory=TEST -v Prefix=/var/mqm -v DataPath=/mqha/data/TEST
WebSphere MQ configuration information added.
#
Start the active instance of queue manager on Server 1:
# strmqm -x TEST
WebSphere MQ queue manager 'TEST' starting.
The queue manager is associated with installation 'Installation1'.
5 log records accessed on queue manager 'TEST' during the log replay phase.
Log replay for queue manager 'TEST' complete.
Transaction manager state recovered for queue manager 'TEST'.
WebSphere MQ queue manager 'TEST' started using V7.5.0.2.
#
Start the standby instance of queue manager on Server 2:
# strmqm -x TEST
WebSphere MQ queue manager 'TEST' starting.
The queue manager is associated with installation 'Installation1'.
A standby instance of queue manager 'TEST' has been started. The active
instance is running elsewhere.
#
Verify the setup using dspmq -x:
On Server1 (stallion)
# dspmq -x
QMNAME(TEST) STATUS(Running)
INSTANCE(ausul3mq03.us.dell.com) MODE(Active)
#
On Server2 (saigon)
# dspmq -x
QMNAME(TEST) STATUS(Running as standby)
INSTANCE(ausul3mq03.us.dell.com) MODE(Active)
INSTANCE(ausul3mq04.us.dell.com) MODE(Standby)
**Testing - Creating a client auto-reconnect setup:
Create a local queue called TESTQ with defpsist(yes).
# DEF QL(TESTQ) DEFPSIST(YES)
DEF QL(TESTQ) DEFPSIST(YES)
AMQ8006: WebSphere MQ queue created.
Create a svrconn channel called TEST.SVRCONN.01.
# DEF CHL(TEST.SVRCONN.01) CHLTYPE(SVRCONN) TRPTYPE(TCP)
DEF CHL(TEST.SVRCONN.01) CHLTYPE(SVRCONN) TRPTYPE(TCP)
DEF CHL(TEST.SVRCONN.01) CHLTYPE(SVRCONN) TRPTYPE(TCP)
AMQ8014: WebSphere MQ channel created.
Create a listener TCP.LSTR with port 9898
# Def lstr(TCP.LSTR) trptype(TCP) port(9898)
Def lstr(TCP.LSTR) trptype(TCP) port(9898)
AMQ8626: WebSphere MQ listener created.
# Start lstr(TCP.LSTR)
Start lstr(TCP.LSTR)
AMQ8021: Request to start WebSphere MQ listener accepted.
**Executing the client auto-reconnect samples
ON Server 1 : Invoke the amqsphac sample program:
# amqsphac TESTQ TEST
In another window on Server 1, end the queue manager with the "-is" option so that it will switch over to a standby queue manager:
# endmqm -is TEST
Verify that a switchover has occurred: On Server2
# dspmq -x -o standby
Create the logs and qmgrs directory in the shared file system:
# mkdir logs
# mkdir data
# chown -R mqm:mqm /mqha
# chmod -R ug+rwx /mqha
Create the queue manager:
# crtmqm -ld /mqha/log/ -md /mqha/data/ TEST
WebSphere MQ queue manager created.
Directory '/mqha/data/TEST' created.
The queue manager is associated with installation 'Installation1'.
Creating or replacing default objects for queue manager 'TEST'.
Default objects statistics : 74 created. 0 replaced. 0 failed.
Completing setup.
Setup completed.
#
Copy the queuemanager configuration details from Server1:
# dspmqinf -o command TEST
Copy the output of the above command to Notepad. The output will be in the following format:
addmqinf -s QueueManager -v Name=TEST -v Directory=TEST -v Prefix=/var/mqm -v DataPath=/mqha/data/TEST
Server:2
Paste the output of the command was saved in Notepad in Step 4:
# addmqinf -s QueueManager -v Name=TEST -v Directory=TEST -v Prefix=/var/mqm -v DataPath=/mqha/data/TEST
WebSphere MQ configuration information added.
#
Start the active instance of queue manager on Server 1:
# strmqm -x TEST
WebSphere MQ queue manager 'TEST' starting.
The queue manager is associated with installation 'Installation1'.
5 log records accessed on queue manager 'TEST' during the log replay phase.
Log replay for queue manager 'TEST' complete.
Transaction manager state recovered for queue manager 'TEST'.
WebSphere MQ queue manager 'TEST' started using V7.5.0.2.
#
Start the standby instance of queue manager on Server 2:
# strmqm -x TEST
WebSphere MQ queue manager 'TEST' starting.
The queue manager is associated with installation 'Installation1'.
A standby instance of queue manager 'TEST' has been started. The active
instance is running elsewhere.
#
Verify the setup using dspmq -x:
On Server1 (stallion)
# dspmq -x
QMNAME(TEST) STATUS(Running)
INSTANCE(ausul3mq03.us.dell.com) MODE(Active)
#
On Server2 (saigon)
# dspmq -x
QMNAME(TEST) STATUS(Running as standby)
INSTANCE(ausul3mq03.us.dell.com) MODE(Active)
INSTANCE(ausul3mq04.us.dell.com) MODE(Standby)
**Testing - Creating a client auto-reconnect setup:
Create a local queue called TESTQ with defpsist(yes).
# DEF QL(TESTQ) DEFPSIST(YES)
DEF QL(TESTQ) DEFPSIST(YES)
AMQ8006: WebSphere MQ queue created.
Create a svrconn channel called TEST.SVRCONN.01.
# DEF CHL(TEST.SVRCONN.01) CHLTYPE(SVRCONN) TRPTYPE(TCP)
DEF CHL(TEST.SVRCONN.01) CHLTYPE(SVRCONN) TRPTYPE(TCP)
DEF CHL(TEST.SVRCONN.01) CHLTYPE(SVRCONN) TRPTYPE(TCP)
AMQ8014: WebSphere MQ channel created.
Create a listener TCP.LSTR with port 9898
# Def lstr(TCP.LSTR) trptype(TCP) port(9898)
Def lstr(TCP.LSTR) trptype(TCP) port(9898)
AMQ8626: WebSphere MQ listener created.
# Start lstr(TCP.LSTR)
Start lstr(TCP.LSTR)
AMQ8021: Request to start WebSphere MQ listener accepted.
**Executing the client auto-reconnect samples
ON Server 1 : Invoke the amqsphac sample program:
# amqsphac TESTQ TEST
In another window on Server 1, end the queue manager with the "-is" option so that it will switch over to a standby queue manager:
# endmqm -is TEST
Verify that a switchover has occurred: On Server2
# dspmq -x -o standby
It is good practical view, please explain to audience what what is Multi Instances and difference Single instance @ MQ 7.0 and features. This helps to understand well.
ReplyDeleteWebsphere MQ Admin Training online and class room
Websphere Application Server online and class room Training
Websphere IBM training online and class room
Read all the information that i've given in above article. It'll give u the whole idea about it.
ReplyDeletepython training in chennai
python course institute in chennai
Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
ReplyDeleteJava training in Chennai | Java training in Omr
Oracle training in Chennai
Java training in Chennai | Java training in Annanagar
Java training in Chennai | Java training institute in Chennai | Java course in Chennai
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging.
ReplyDeleteBest Devops Training in pune
excel advanced excel training in bangalore
Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
ReplyDeleteAWS Interview Questions And Answers | AWS Interviews Questions and Answers for Devops | AWS interview questions and answers for Sysops
AWS Interview questions and answers for freshers | AWS Interview Question for devops
AWS Training in Bangalore with placements | AWS Training in Bangalore cost
This comment has been removed by the author.
ReplyDeleteNice Blog....very Knowledgeable...thanks for sharing...
ReplyDeleteweb sphere tutorial
I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic also visit Tableau Training videos l page and check for training
ReplyDeleteThis is a good post. This post give truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. thank you so much. Keep up the good works. Android Training in Chennai | Certification | Mobile App Development Training Online | Android Training in Bangalore | Certification | Mobile App Development Training Online | Android Training in Hyderabad | Certification | Mobile App Development Training Online | Android Training in Coimbatore | Certification | Mobile App Development Training Online | Android Training in Online | Certification | Mobile App Development Training Online
ReplyDeleteThe information is worth thinking over. I am really thankful to you for posting this blog.
ReplyDeletehadoop training in chennai
hadoop training in annanagar
salesforce training in chennai
salesforce training in annanagar
c and c plus plus course in chennai
c and c plus plus course in annanagar
machine learning training in chennai
machine learning training in annanagar
Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot.
ReplyDeletehardware and networking training in chennai
hardware and networking training in omr
xamarin training in chennai
xamarin training in omr
ios training in chennai
ios training in omr
iot training in chennai
iot training in omr
Very nice post here and thanks for it .I always like and such a super contents of these post.
ReplyDeleteExcellent and very cool idea and great content of different kinds of the valuable information's.
web designing training in chennai
web designing training in tambaram
digital marketing training in chennai
digital marketing training in tambaram
rpa training in chennai
rpa training in tambaram
tally training in chennai
tally training in tambaram