Author |
Message
|
navjotkaur78 |
Posted: Wed Apr 05, 2006 11:24 pm Post subject: connecting to Remote QM via WMQTool |
|
|
Apprentice
Joined: 09 Feb 2006 Posts: 31
|
i'm using Websphere MQ 6.0 on windows machine and trying to connect to MQ 5.3 on AIX machine using the utility tool "WMQTool 6.1". I'm getting the rc: 2059 i.e Queue Manager Not avaialable. The QM on AIX is also up. Are there any constraints in connecting in this manner?
I tried connecting to a remote QM on MQ 5.3 on Windows machine. Its working fine.
Thanx in Advance |
|
Back to top |
|
 |
mvic |
Posted: Thu Apr 06, 2006 12:30 am Post subject: Re: connecting to Remote QM via WMQTool |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
Is there a listener running on the AIX machine? To make sure, try connecting (use the telnet program on the client if you like) from the client to the port on the server you expect to be in use by the listener. This should show for sure whether the port is indeed open, and therefore available for client connections.
When using this method of debugging you will probably cause FDC files to be written in /var/mqm/errors on the server. |
|
Back to top |
|
 |
mq2004 |
Posted: Thu Apr 06, 2006 12:31 am Post subject: |
|
|
Newbie
Joined: 24 Feb 2006 Posts: 3
|
is your listner is up on aix qmgr ?
is your command server is running on aix ? |
|
Back to top |
|
 |
mvic |
Posted: Thu Apr 06, 2006 12:40 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
mq2004 wrote: |
is your command server is running on aix ? |
Why run a command server? |
|
Back to top |
|
 |
navjotkaur78 |
Posted: Thu Apr 06, 2006 1:16 am Post subject: |
|
|
Apprentice
Joined: 09 Feb 2006 Posts: 31
|
Could u pls tell me the command to check the LISTENER Status on AIX? On windows we do "DISPLAY LSSTATUS". This option is not available on AIX.
Thanx in advance |
|
Back to top |
|
 |
wschutz |
Posted: Thu Apr 06, 2006 1:44 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
navjotkaur78 wrote: |
Could u pls tell me the command to check the LISTENER Status on AIX? On windows we do "DISPLAY LSSTATUS". This option is not available on AIX.
Thanx in advance |
That option is only available on V6 qmgrs, you must have a v5.3 qmgr on AIX.
Try ps:
Quote: |
$ ps -ef | grep runmqlsr
wschutz 15738 14706 0 Sep 07 - 0:00 /usr/mqm/bin/runmqlsr -r -m TEST -t TCP -p 1414
wschutz 17418 16544 0 05:46:11 pts/0 0:00 grep runmqlsr
$
|
As you see, I've had a listener running on 1414 there for a spell.... _________________ -wayne |
|
Back to top |
|
 |
navjotkaur78 |
Posted: Thu Apr 06, 2006 2:09 am Post subject: |
|
|
Apprentice
Joined: 09 Feb 2006 Posts: 31
|
when i run the command i get the following output.
$ ps -ef | grep runmqlsr
navjot 229460 790632 0 10:04:57 pts/1 0:00 grep runmqlsr
$
this meand that the listener is not running. right?
now when i try to start the LISTENER by:
$ runmqlsr -t tcp -p 1414 -m A25SOD14
5724-B41 (C) Copyright IBM Corp. 1994, 2002. ALL RIGHTS RESERVED.
04/06/06 10:07:25 AMQ9218: The TCP/IP listener program could not bind to port number 1414.
that means the listener is not listening on port 1414. But how to find out on which port it should be listening?
i'm sorry for these silly qustions, but i'm new to AIX..
Thanx |
|
Back to top |
|
 |
Vitor |
Posted: Thu Apr 06, 2006 2:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
navjotkaur78 wrote: |
now when i try to start the LISTENER by:
$ runmqlsr -t tcp -p 1414 -m A25SOD14
5724-B41 (C) Copyright IBM Corp. 1994, 2002. ALL RIGHTS RESERVED.
04/06/06 10:07:25 AMQ9218: The TCP/IP listener program could not bind to port number 1414.
that means the listener is not listening on port 1414. But how to find out on which port it should be listening?
i'm sorry for these silly qustions, but i'm new to AIX..
Thanx |
I think an interesting question is why the listener couldn't bind to 1414 - it implies a program is already using it. Which is odd if it's allocated for your use on MQSeries. Consider using netstat (or similar) to find out what's using it or try a different port number _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
navjotkaur78 |
Posted: Thu Apr 06, 2006 2:19 am Post subject: |
|
|
Apprentice
Joined: 09 Feb 2006 Posts: 31
|
i just found out that the listener will be listening on port 1414 itself. I think problem is something else.. its not starting... |
|
Back to top |
|
 |
wschutz |
Posted: Thu Apr 06, 2006 2:21 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Use netstat:
Quote: |
netstat -an | grep 1414 |
I'd bet that inetd is listening on that port..... _________________ -wayne |
|
Back to top |
|
 |
navjotkaur78 |
Posted: Thu Apr 06, 2006 2:43 am Post subject: |
|
|
Apprentice
Joined: 09 Feb 2006 Posts: 31
|
when i issue the "netstat" command, the output was:
$ netstat -an | grep 1414
tcp4 0 492 9.23.236.106.57926 9.23.237.49.1414 ESTABLISHED
tcp4 0 0 9.23.236.106.57927 9.23.237.49.1414 ESTABLISHED
tcp4 0 0 9.23.236.106.57928 9.23.237.49.1414 ESTABLISHED
tcp4 0 0 9.23.236.106.57929 9.23.237.49.1414 ESTABLISHED
tcp4 0 0 9.23.236.106.57930 9.23.237.49.1414 ESTABLISHED
tcp4 0 492 9.23.236.106.57931 9.23.237.49.1414 ESTABLISHED
tcp4 0 0 9.23.236.106.57932 9.23.237.49.1414 ESTABLISHED
tcp4 0 492 9.23.236.106.57933 9.23.237.49.1414 ESTABLISHED
tcp4 0 0 9.23.236.106.57935 9.23.237.49.1414 ESTABLISHED
tcp4 0 492 9.23.236.106.57936 9.23.237.49.1414 ESTABLISHED
tcp4 0 0 *.1414 *.* LISTEN
This shows that the port 1414 is in use. This is the server m/c and 1414 is specifically for MQ purpose.
How to find out, which application is using that port? |
|
Back to top |
|
 |
vennela |
Posted: Thu Apr 06, 2006 2:46 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Ask Unix Admin
If you are pretty good with UNIX you can try
lsof
rmsock
or view /etc/inetd.conf and /etc/services |
|
Back to top |
|
 |
wschutz |
Posted: Thu Apr 06, 2006 2:48 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Have a look at /etc/services and /etc/inetd.conf, I bet you'll find MQ entries there.
In which case, from the machine where MQTool is, try:
telnet xxxx 1414
where xxxx is you AIX host, if the telnet sorta hangs, then the problem lies on your definitions on the WMQTool machine. If it immediately says it can't establish a connection, there there is another problem. _________________ -wayne |
|
Back to top |
|
 |
navjotkaur78 |
Posted: Thu Apr 06, 2006 3:16 am Post subject: |
|
|
Apprentice
Joined: 09 Feb 2006 Posts: 31
|
when i tried opening the file /etc/services and /etc/inetd.conf, i could find the MQ enteries there. but when i try to connect to the remote system through telnet <host name> 1414. it does not connect due to security i think.
I use "putty" to connect to remote AIX system, which uses SSH protocol. when in that i gave my host and port 1414, it refused the connection. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Apr 06, 2006 3:49 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
if telnet can't get thru due to "security", then neither can MQ. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|