Author |
Message
|
jstefano |
Posted: Tue May 09, 2006 1:41 pm Post subject: |
|
|
Apprentice
Joined: 13 Apr 2006 Posts: 48
|
So you need to type the "CONNAME" line on the same line as the "DEFINE CHANNEL" line.
But you'll probably want to "delete channel(TO.LONDON)" first.[/quote]
Hey, are you an MQ guru or what??? IT WORKED!!! Please accept my
deapest THANK YOU for your hint! I put all that crap in one line like this:
delete channel(TO.LONDON)
3 : delete channel(TO.LONDON)
AMQ8015: WebSphere MQ channel deleted.
DEFINE CHANNEL(TO.LONDON) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY)
6 : DEFINE CHANNEL(TO.LONDON) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY)
AMQ8014: WebSphere MQ channel created.
Million thanks!!!!
Jan |
|
Back to top |
|
 |
jstefano |
Posted: Tue May 09, 2006 1:42 pm Post subject: |
|
|
Apprentice
Joined: 13 Apr 2006 Posts: 48
|
Hi Kevin
yes, it did created a channel, but I was not able to specify CONNAME
Still fighting.... grrrrrrrrrrrrrr
Million thanks for your help!
Jan
kevinf2349 wrote: |
I do believe there is an entire manual on this named MQSC Commands....but it looks like the channel is already there anyway.
Quote: |
AMQ8226: WebSphere MQ channel already exists. |
is the clue. |
|
|
Back to top |
|
 |
Vitor |
Posted: Tue May 09, 2006 10:37 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
jstefano wrote: |
$ runmqsc LONDON
5724-B41 (C) Copyright IBM Corp. 1994, 2002. ALL RIGHTS RESERVED.
Starting MQSC for queue manager LONDON.
DEFINE CHANNEL(TO.LONDON) CHLTYPE(CLUSRCVR) TRPTYPE(TCP)
1 : DEFINE CHANNEL(TO.LONDON) CHLTYPE(CLUSRCVR) TRPTYPE(TCP)
AMQ8226: WebSphere MQ channel already exists.
CONNAME('cc2tws001') CLUSTER(INVENTORY)
2 : CONNAME('cc2tws001') CLUSTER(INVENTORY)
AMQ8405: Syntax error detected at or near end of command segment below:-
CONNAME
|
Observe how the 2 lines have been taken as 2 separate commands, hence CONNAME is not a valid command exactly as it says!
Look up the MQSC Commands manual to see how to split a single command over 2 lines. Then read the rest of the manuals before you try anything else so you don't make such basic errors - this sort of thing is sub-jeevan!!!
At least read the command output before you post here. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
preetipadma |
Posted: Tue May 09, 2006 10:57 pm Post subject: Set Up Complete but Not able see the Sample Prog Working |
|
|
Novice
Joined: 05 Apr 2006 Posts: 22
|
Hi,
I am now using 2 Windows Machine for Setting up my clusters.
Once I am successful I will come back to Linux.
Now my scenario is I have created everything CLSSDR & CLSRCVR and Queues as well. All of them are up n running.
But the Sample program given in the document is not working.
When I type the command dis chstatus(*) I can see my channels running.
My Problem is, in the definition of my sender channels I had given some conname say (xxx.xx.xx.xx) but what I see in my status display is - xxx.xx.yy.yy.
Will this create any problem in clustering?
For everybody's information I have a DUAL IP SETUP in both my Windows machine.
Again I have other channels running. Should I stop them?
Pls. help.
Thanks in Advance |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 09, 2006 11:02 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Quote: |
Sample program is not working |
You want to give us some clues? Error codes, messages not getting to their intended destination, what?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
preetipadma |
Posted: Tue May 09, 2006 11:22 pm Post subject: No Error Codes |
|
|
Novice
Joined: 05 Apr 2006 Posts: 22
|
I am not getting any error codes.
I have even check the Log Files and Error files for both my QMs.
The messaging as expected in Clustering is not happening.
If I Put my message as this
amqsput CLS359_Q1 QM_669
Sample AMQSPUT0 start
target queue is CLS359_Q1
Just Hello
And when I try to Get the message I get the following messages
amqsget CLS359_Q1 QM_359
Sample AMQSGET0 start
no more messages
Sample AMQSGET0 end
Sending you my definitions also. I might have gone wrong somewhere while defining.
Queue Manager - QM_669
-------------------------------
alter qmgr repos(cluster)
define channel(CLSSDR_669) chltype(CLUSSDR) trptype(TCP) conname(<xxx.xx.xx.xx>) cluster(cluster)
define channel(CLSSDR_359) chltype(CLUSRCVR) trptype(TCP) cluster(cluster)
define qlocal(CLS359_Q1) cluster(cluster)
Queue Manager - QM_359
-------------------------------
alter qmgr repos(cluster)
define channel(CLSSDR_359) chltype(CLUSSDR) trptype(TCP) conname(<xxx.xx.yy.yy>) cluster(cluster)
define channel(CLSSDR_669) chltype(CLUSRCVR) trptype(TCP) cluster(cluster)
define qlocal(CLS359_Q1) cluster(cluster)
Are my definitions okay?
Thanks In Advance |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 09, 2006 11:40 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
preetipadma,
Aside from any of the other interesting features in your definition, you're putting a message on a queue CLS359_Q1 on QM_669, defined locally on that queue manager. You're then trying to read it off QM_359. Why would you expect it to be there? Why would the message move from a local queue?
Read the clustering manual. Grasp the concept. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
preetipadma |
Posted: Tue May 09, 2006 11:49 pm Post subject: Tried this earlier |
|
|
Novice
Joined: 05 Apr 2006 Posts: 22
|
Vitor wrote: |
you're putting a message on a queue CLS359_Q1 on QM_669
|
I had first tried this -
amqsput CLS359_Q1
But I got this message
Sample AMQSPUT0 start
MQCONN ended with reason code 2059
Is there is something wrong in my definitions?
Forgot to mention, the listener is running.
I am clueless.
Pls. help |
|
Back to top |
|
 |
preetipadma |
Posted: Tue May 09, 2006 11:56 pm Post subject: Am I Correct? |
|
|
Novice
Joined: 05 Apr 2006 Posts: 22
|
Vitor wrote: |
Grasp the concept. |
Should I send a message to the Queue CLUS359_Q1 from a third QM ?
Just trying to think aloud.
Thanks in Advance |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 09, 2006 11:57 pm Post subject: Re: Tried this earlier |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
preetipadma wrote: |
I am clueless.
Pls. help |
Well you said it!
What do you think clustering does? What is it's place in the Websphere MQ product? More importantly, what are you trying to achieve with it? Why are you not using point-to-point?
Think through these questions and grasp these concepts. Once you understand what clustering is doing you'll see why it's doing what it's doing. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 09, 2006 11:59 pm Post subject: Re: Am I Correct? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
preetipadma wrote: |
Should I send a message to the Queue CLUS359_Q1 from a third QM ?
|
Why? What would this achieve? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
preetipadma |
Posted: Wed May 10, 2006 7:36 am Post subject: Re: Am I Correct? |
|
|
Novice
Joined: 05 Apr 2006 Posts: 22
|
Vitor wrote: |
Why? What would this achieve? |
That is my Objective Only.
When I send a message to a cluster, it should not matter to me which of the QM is down and Meassage should be delivered.
I want to "achieve" high availaibility.
Anyways I got to know that if I have Dual IPs, which is what I had mentioned in my Query, I should mention my M/Cs name instead of the IP Address in CONNAME.
Lets hope this change works out.
This was just a "post" incase anybody having a problem with Dual IP Set Up in their M\Cs
Regards |
|
Back to top |
|
 |
Vitor |
Posted: Wed May 10, 2006 10:44 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Just as an aside, you should always use machine names in channels. Network admins are strange people, with DMZs, firewalls, and all sorts of strange technologies. Better to speak the name you want and let their magic resolve the name!
Onto your specific issue. Have a look through the forum, there's been a LOT of discussion about clustering as high availability. IMHO it's not a viable alternative. As you've observed, in your version of MQ messages always go to the local instance of a cluster queue. Even if you fix this by using a gateway queue manager there's a serious chance that in the event of failure messages will get stranded on the downed queue manager, unable to be processed until it's back. You can mitigate this with some of the new clustering parameters in 6.0 but not remove it completely.
And then of course, some chimp programmer codes BIND_ON_OPEN and ruins your whole scheme!
Clusters are good at what they're good at - easing administration in large farms and doing workload balancing for well behaved applications. They're not good at providing high availablility solutions unless you can afford to have some messages in limbo, and of course some scenarios can.
Just my 2 cents. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jstefano |
Posted: Thu May 11, 2006 11:06 am Post subject: |
|
|
Apprentice
Joined: 13 Apr 2006 Posts: 48
|
Hi Jeff!
sorry to bother you again, but I still can't make this cluster work...
I created LONDON and NEWYORK on the same UNIX box, listeners are up (1414 and 1415), createed channells following the documents, but something is not right... Could you be so kind and check the output from command dis chstatus(*) ?
This is what bothers me: STATUS(RETRYING)...
Here are screen shots from both MQ managers
entered from LONDON:
dis chstatus(*)
3 : dis chstatus(*)
AMQ8417: Display Channel Status details.
CHANNEL(TO.NEWYORK) XMITQ(SYSTEM.CLUSTER.TRANSMIT.QUEUE)
CONNAME(CC2TWS001.CA.HSBC) CURRENT
CHLTYPE(CLUSSDR) STATUS(RETRYING)
RQMNAME()
AMQ8417: Display Channel Status details.
CHANNEL(TO.LONDON) XMITQ( )
CONNAME(333.4.138.222) CURRENT
CHLTYPE(CLUSRCVR) STATUS(RUNNING)
RQMNAME(NEWYORK)
3 MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
----------------------------------------------------------------------
entered from NEWYORK:
is chstatus(*)
3 : dis chstatus(*)
AMQ8417: Display Channel Status details.
CHANNEL(TO.LONDON) XMITQ(SYSTEM.CLUSTER.TRANSMIT.QUEUE)
CONNAME(CC2TWS001.CA.HSBC) CURRENT
CHLTYPE(CLUSSDR) STATUS(RUNNING)
RQMNAME(LONDON)
------------------------------------------------------------------------
Here is how I created channells:
LONDON:
DEFINE CHANNEL(TO.LONDON) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY) DESCR('TCP Cluster-receiver channel for queue manager LONDON')
6 : DEFINE CHANNEL(TO.LONDON) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY)
AMQ8014: WebSphere MQ channel created.
DEFINE CHANNEL(TO.NEWYORK) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY) DESCR('TCP Cluster-sender channel from LONDON to repository at NEWYORK')
10 : DEFINE CHANNEL(TO.NEWYORK) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY) DESCR('TCP Cluster-sender channel from LONDON to repository at NEWYORK')
AMQ8014: WebSphere MQ channel created.
NEWYORK:
DEFINE CHANNEL(TO.NEWYORK) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY) DESCR('TCP Cluster-receiver channel for queue manager NEWYORK')
5 : DEFINE CHANNEL(TO.NEWYORK) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY) DESCR('TCP Cluster-receiver channel for queue manager NEWYORK')
AMQ8014: WebSphere MQ channel created.
DEFINE CHANNEL(TO.LONDON) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY) DESCR('TCP Cluster-sender channel from NEWYORK to repository at LONDON')
6 : DEFINE CHANNEL(TO.LONDON) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME(cc2tws001.ca.hsbc) CLUSTER(INVENTORY) DESCR('TCP Cluster-sender channel from NEWYORK to repository at LONDON')
AMQ8014: WebSphere MQ channel created.
DEFINE QLOCAL(INVENTQ) CLUSTER(INVENTORY)
7 : DEFINE QLOCAL(INVENTQ) CLUSTER(INVENTORY)
AMQ8006: WebSphere MQ queue created.
---------------------------------------------------------
Here is the output from dis clusqmgr(*)
LONDON:
dis clusqmgr(*)
2 : dis clusqmgr(*)
AMQ8441: Display Cluster Queue Manager details.
CLUSQMGR(LONDON) CLUSTER(INVENTORY)
CHANNEL(TO.LONDON)
AMQ8441: Display Cluster Queue Manager details.
CLUSQMGR(NEWYORK) CLUSTER(INVENTORY)
CHANNEL(TO.NEWYORK)
NEWYORK:
dis clusqmgr(*)
2 : dis clusqmgr(*)
AMQ8441: Display Cluster Queue Manager details.
CLUSQMGR(NEWYORK) CLUSTER(INVENTORY)
CHANNEL(TO.NEWYORK)
AMQ8441: Display Cluster Queue Manager details.
CLUSQMGR(SYSTEM.TEMPQMGR.CC2TWS001.CA.HSBC)
CLUSTER(INVENTORY) CHANNEL(TO.LONDON)
-----------------------------------------------------------------------------
Listeners are running:
$ ps -aef|grep runmqlsr
hfe2srv 36778 48502 0 12:12:49 pts/0 0:00 runmqlsr -t tcp -p 1415 -m NEWYORK
hfe2srv 38322 48502 0 13:20:18 pts/0 0:00 runmqlsr -t tcp -p 1414 -m LONDON
--------------------------------------------------------------------------------
So, is my problem that both MQM are on the same machine?
Should I create a channells with specifying a port as well?
Any help will be greatly appriciated!!!!!!!!!!!
Jan_the_MQ_newbie |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 11, 2006 11:16 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Who?
jstefano wrote: |
So, is my problem that both MQM are on the same machine? |
NO.
jstefano wrote: |
Should I create a channells with specifying a port as well? |
Only if you want it to work.
jstefano wrote: |
Jan_the_MQ_newbie |
CLUSTERING is NOT for NEWBIES. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|