Author |
Message
|
samsam007 |
Posted: Sun Nov 16, 2008 2:50 pm Post subject: amqsput with error code 2058 |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
Hi,
I have setup 2 Qmgrs in a Cluster.
I tried to run the following amqsput command in the same machine where the Cluster is installed, but got error:
C:\Documents and Settings\Administrator>amqsput CLUS.TDCS.ALIAS QM.ITSMMS
Sample AMQSPUT0 start
MQCONN ended with reason code 2058
I also noticed in the Channels screen in the MQ Explorer, its "authentication of parties initiating connection" changed to Required if I used amqsput on that channel.
Your help is very much appreciated.
Thanks |
|
Back to top |
|
 |
samsam007 |
Posted: Sun Nov 16, 2008 3:15 pm Post subject: |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
Very weird now.
When I have tried few times with the amqsput TDCS.SEND.ALIAS ITSMMS,
amqsput STARTED successfully.
I don't understand.
Can anybody explain what happened??
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Sun Nov 16, 2008 3:42 pm Post subject: Re: amqsput with error code 2058 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
samsam007 wrote: |
I tried to run the following amqsput command in the same machine where the Cluster is installed |
A cluster isn't installed anywhere. One or more queue managers which participate in a cluster will be installed on that machine.
I notice from your posts that if you specify a queue manager name of QM.ITSMMS you get a 2058, but if you specify a name of ITSMMS the connection works. From this I infer that the queue manager is actually called ITSMMS, and I am forced to wonder why you're surprised you get a "queue manager not found" error when you use a different name....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
samsam007 |
Posted: Sun Nov 16, 2008 4:46 pm Post subject: Re: amqsput with error code 2058 |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
Vitor wrote: |
samsam007 wrote: |
I tried to run the following amqsput command in the same machine where the Cluster is installed |
A cluster isn't installed anywhere. One or more queue managers which participate in a cluster will be installed on that machine.
I notice from your posts that if you specify a queue manager name of QM.ITSMMS you get a 2058, but if you specify a name of ITSMMS the connection works. From this I infer that the queue manager is actually called ITSMMS, and I am forced to wonder why you're surprised you get a "queue manager not found" error when you use a different name....  |
Yeah, just realised that. That was my bad. sorry for the confuse.
With amqsput/get running locally where the cluster/Qmgers are installed, how to use amqsput and amqsget to put the message into the queue?
What I get confused with this tool is after started amqsput, in the subsequent input on the commandlines, how do I know the message I typed on the screen is sent to the MQ? How about getting it wiht amqsget?
Thanks |
|
Back to top |
|
 |
samsam007 |
Posted: Sun Nov 16, 2008 5:43 pm Post subject: |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
There may be a problem in my channel definition.
Here is the mqsc codes I used to create the cluster:
ALTER QMGR REPOS(SIG)
ALTER QLOCAL(SYSTEM.DEAD.LETTER.QUEUE) DEFPSIST(YES) MAXMSGL(104857600)
DEFINE CHANNEL(TO.ITSMMS) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME('localhost(1490)') CLUSTER(SIG) DESCR('TCP Cluster-receiver channel for queue manager ITSMMS')
DEFINE CHANNEL(TO.ITSMMS2) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME('localhost(1491)') CLUSTER(SIG) DESCR('TCP Cluster-sender channel from ITSMMS to repository at ITSMMS2')
....
Normal Channel Type for distributed server is Server-connection. Do I need that for Qmgr in a cluster, in order to accept connection from .Net client?
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Nov 16, 2008 6:15 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
samsam007 wrote: |
There may be a problem in my channel definition.
Here is the mqsc codes I used to create the cluster:
ALTER QMGR REPOS(SIG)
ALTER QLOCAL(SYSTEM.DEAD.LETTER.QUEUE) DEFPSIST(YES) MAXMSGL(104857600)
DEFINE CHANNEL(TO.ITSMMS) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME('localhost(1490)') CLUSTER(SIG) DESCR('TCP Cluster-receiver channel for queue manager ITSMMS')
DEFINE CHANNEL(TO.ITSMMS2) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME('localhost(1491)') CLUSTER(SIG) DESCR('TCP Cluster-sender channel from ITSMMS to repository at ITSMMS2')
....
Normal Channel Type for distributed server is Server-connection. Do I need that for Qmgr in a cluster, in order to accept connection from .Net client?
Thanks |
Yes you do.
The cluster type channels are only for intercluster qmgr to qmgr communications.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
samsam007 |
Posted: Sun Nov 16, 2008 7:04 pm Post subject: |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
fjb_saper wrote: |
samsam007 wrote: |
There may be a problem in my channel definition.
Here is the mqsc codes I used to create the cluster:
ALTER QMGR REPOS(SIG)
ALTER QLOCAL(SYSTEM.DEAD.LETTER.QUEUE) DEFPSIST(YES) MAXMSGL(104857600)
DEFINE CHANNEL(TO.ITSMMS) CHLTYPE(CLUSRCVR) TRPTYPE(TCP) CONNAME('localhost(1490)') CLUSTER(SIG) DESCR('TCP Cluster-receiver channel for queue manager ITSMMS')
DEFINE CHANNEL(TO.ITSMMS2) CHLTYPE(CLUSSDR) TRPTYPE(TCP) CONNAME('localhost(1491)') CLUSTER(SIG) DESCR('TCP Cluster-sender channel from ITSMMS to repository at ITSMMS2')
....
Normal Channel Type for distributed server is Server-connection. Do I need that for Qmgr in a cluster, in order to accept connection from .Net client?
Thanks |
Yes you do.
The cluster type channels are only for intercluster qmgr to qmgr communications.
Have fun  |
Does a server channel require a CONNAME?
eg.
DEFINE CHANNEL(ITSMMS_CHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP) CONNAME('localhost(1500)') MCAUSER(’ ’) DESCR(’Channel for WebSphere MQ classes for .NET’)
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Nov 16, 2008 7:53 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
The svrconn type channel does not require a conname. If you define a clntconn type you will have to define the conname. Read up in the client and intercommunications manuals  _________________ MQ & Broker admin |
|
Back to top |
|
 |
samsam007 |
Posted: Sun Nov 16, 2008 9:57 pm Post subject: |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
The server-connection channel is defined by using the following mqsc command:
DEFINE CHANNEL(ITSMMS_CHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER(’ ’) DESCR(’Channel for WebSphere MQ classes for .NET’)
After its connection status is inactive.
Rick-click on it and choose Stop option, it pops up a message screen said the queue is stop. Then I continued press OK and choose Start option. But the queue still in inactive status.
What is wrong with my configuration?
and how to resolve it?
Thanks |
|
Back to top |
|
 |
exerk |
Posted: Mon Nov 17, 2008 1:41 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
samsam007 wrote: |
After its connection status is inactive. |
And will be until something connects to it.
samsam007 wrote: |
Rick-click on it and choose Stop option, it pops up a message screen said the queue is stop. |
It looks like you are starting to become thoroughly confused between channels, queues, and queue managers.
samsam007 wrote: |
Then I continued press OK and choose Start option. But the queue still in inactive status. |
Please note my earlier comments above.
samsam007 wrote: |
What is wrong with my configuration? |
Of the channel - nothing I can see (although a blank MCAUSER is not a good idea).
samsam007 wrote: |
and how to resolve it? |
Read manuals, get training, experiment...
You are trying to use this site as a training school, and it is not geared for that. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Nov 17, 2008 3:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
exerk wrote: |
[ou are trying to use this site as a training school, and it is not geared for that. |
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
samsam007 |
Posted: Mon Nov 17, 2008 2:33 pm Post subject: |
|
|
 Centurion
Joined: 30 Oct 2008 Posts: 107
|
exerk wrote: |
samsam007 wrote: |
After its connection status is inactive. |
And will be until something connects to it.
samsam007 wrote: |
Rick-click on it and choose Stop option, it pops up a message screen said the queue is stop. |
It looks like you are starting to become thoroughly confused between channels, queues, and queue managers.
samsam007 wrote: |
Then I continued press OK and choose Start option. But the queue still in inactive status. |
Please note my earlier comments above.
samsam007 wrote: |
What is wrong with my configuration? |
Of the channel - nothing I can see (although a blank MCAUSER is not a good idea).
samsam007 wrote: |
and how to resolve it? |
Read manuals, get training, experiment...
You are trying to use this site as a training school, and it is not geared for that. |
Sorry, I *copied* the wrong message from the popup window so it makes you think I am confused with queue, channel etc.
I asked specifically, what is the problem when the channel ist *stop*, not *inactive*. I know stop means the channel goes to the Stop state; *inactive* means it goes to the state where waiting to be activated by incoming request.
But why it stopped and can't be started even when I press choose the stop and start option?
Thanks |
|
Back to top |
|
 |
SAFraser |
Posted: Mon Nov 17, 2008 3:03 pm Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
Here, guys, let me try.
exerk has answered your question already. Your svrconn channel is inactive because nothing has connected to it.
fjb_saper has advised you that conname is not necessary, and to read about this type of channel. Yet, your definition still includes conname as well as trptype.
This implies to us that you are not taking our advice about reading the manuals. Please go read specifically about svrconn channels. It has characteristics that distinguish it from other types of channels. It is behaving just as designed.
After you have done your reading, we will answer questions that make sense. But no experienced member of this forum will answer the question "why can't I start a svrconn channel?"
I respectfully call your attention to the InfoCentre button at the top of this page.  |
|
Back to top |
|
 |
|