Author |
Message
|
4everfsu |
Posted: Wed Mar 19, 2008 6:44 am Post subject: amqsput works fine, amqsget produces a 2059 |
|
|
Apprentice
Joined: 17 Jan 2008 Posts: 34
|
I am able to do a amsqput test.que qm1 8208 0 qm2 and put 2 msgs over on the test,que on QM2 successfully.
I then try to retrive the msgs using amqsget test.que qm2 and get a 2059, test.que is a non clustered queue.
Is the format I am using amqsget incorrect or am I overlooking something?
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 19, 2008 6:47 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Do you mean amqsget or amqsgetc? I'd have expected the client versions to be throwing 2059.
Are both applications running in the same shell, with the same environment variables & configuration? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
4everfsu |
Posted: Wed Mar 19, 2008 6:57 am Post subject: |
|
|
Apprentice
Joined: 17 Jan 2008 Posts: 34
|
I am using the amqsput and amqsget program out of the /usr/mqm/samp/bin directory on the the QM1 qmanager and putting the msg to the non clustered test.que on QM2 and then trying to use the amqsget on QM1 to see if I can retrieve the msgs off QM2 if that is possible, both servers are aix platforms. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 19, 2008 6:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You can only get from the local queue manager, so an amqsget running against QM1 can't get from queues on QM2.
Run amqsget on QM2. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Mar 19, 2008 7:00 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
that is not possible.
use the MQ Client version, amqsgetc, to get messages from another server. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
4everfsu |
Posted: Wed Mar 19, 2008 7:02 am Post subject: |
|
|
Apprentice
Joined: 17 Jan 2008 Posts: 34
|
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 19, 2008 7:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
PeterPotkay wrote: |
use the MQ Client version, amqsgetc, to get messages from another server. |
Ensuring first that you have a valid client setup that allows such a connection (channel tables, environment variables and so forth). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
4everfsu |
Posted: Wed Mar 26, 2008 8:36 am Post subject: |
|
|
Apprentice
Joined: 17 Jan 2008 Posts: 34
|
I am attempting to use the amqsgetc command from the dos prompt on my laptop, putting in target q and target qmanager and getting a 2058. What is the correct format to use when attempting to do an amqsgetc from a command promt to retrieve a put msg from the client side?
I had tested putting the original msg using MO71 for the first time from one qmanager to another and I just want to see if I can retreive the msg from my laptop.
And if that is even possible. thanks |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 26, 2008 1:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
4everfsu wrote: |
I am attempting to use the amqsgetc command from the dos prompt on my laptop, putting in target q and target qmanager and getting a 2058. What is the correct format to use when attempting to do an amqsgetc from a command promt to retrieve a put msg from the client side?
|
amqsgetc <queue name> <queue manager name>
Assuming you've correctly configured the MQ client on your laptop for the queue manager in question.
The 2058 implies you haven't. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
4everfsu |
Posted: Thu Mar 27, 2008 7:47 am Post subject: |
|
|
Apprentice
Joined: 17 Jan 2008 Posts: 34
|
Ok I have made some progress but I see when I try to do an amsputc or amqsgetc from my laptop(client). The server I am trying to put or pull msgs off, has two qmanagers named xxxxxT and xxxxxX respectively. I tried doing a amqscnxc and it connects to the default qmanager on the server which in this case is the T qmanager. When I do my SET MQSERVER and plug in the xxxxxT qmanager it works fine. But when I change my SET MQSERVER to use xxxxxX qmanager I get the 2058. I have checked /etc/services and mqm is setup for port 1414 which I am using in my SET MQSERVER. Any ideal? Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 27, 2008 7:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
4everfsu wrote: |
I have checked /etc/services and mqm is setup for port 1414 which I am using in my SET MQSERVER. Any ideal? Thanks |
a) You shouldn't be using anything in /etc/services unless your version of WMQ is hideously old. Listeners have not been defined like that since version v5.2. Use runmqlsr or a queue manager object if you're on v6
b) You can't have 2 queue managers on port 1414. Each queue manager needs it's own port
c) Spend more time reading the documentation. These are basic, basic points. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 27, 2008 7:56 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You shouldn't be looking in /etc/services.
You shouldn't have anything configured in /etc/services.
Even if you are doing this, which is not best practices for MQ v6, then you would still need two entries - one for each queue manager.
Talk to your actual MQ Admin about how they have these set up, and what information you should be setting in the MQSERVER variable. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
4everfsu |
Posted: Thu Mar 27, 2008 8:11 am Post subject: |
|
|
Apprentice
Joined: 17 Jan 2008 Posts: 34
|
Correct this is MQ v6 and I got the correct port number for xxxxxX 1415 and it works now thanks |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 27, 2008 8:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
4everfsu wrote: |
Correct this is MQ v6 |
Remove the listeners from /etc/services and define queue manager objects. Now. The advantages are legion. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
4everfsu |
Posted: Fri Mar 28, 2008 6:21 am Post subject: |
|
|
Apprentice
Joined: 17 Jan 2008 Posts: 34
|
Ok I was able to successfully do an amqsputc and amqsgetc from my laptop(client mq) to any of my aix servers succesfully. So I thought let me trying putting msgs and getting msgs between my aix servers thru their command lines.
I looked at the amqsput0.c in the /usr/mqm/samp directory and used the following command on a command line to put msgs successfully from any of my aix servers to any other aix servers using the following command amqsput queue.name qmaix1 8208 0 qmaix2.
But when I attempt to do an amqsget using the format show in /usr/mqm/samp/amqsget0.c and do the following command
amqsget queue.name qmaix2 8103 0 I get a 2058.
Even if I just try
amqsget queue.name qmaix2 I still get a 2058. Again putting from one aix server to another with the amqsput command shown above works fine.
Any ideal to why the amqsget will not work would be encouraging. Again thanks for your help. |
|
Back to top |
|
 |
|