ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ 5.1 listener problem on AIX

Post new topic  Reply to topic
 MQ 5.1 listener problem on AIX « View previous topic :: View next topic » 
Author Message
roni
PostPosted: Wed Jan 23, 2002 2:46 pm    Post subject: Reply with quote

Newbie

Joined: 22 Jan 2002
Posts: 8

I can successfully start a listener with:
runmqlsr -t tcp -p 1415 -m [qmgr name]

I cannot start the listener by using /etc/inetd.conf & /etc/services. I ran "refresh -s inetd" after the file changes.
/etc/inetd.conf:
MQSeries stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta

/etc/services:
MQSeries 1415/tcp

I also checked that I did not have the wrong directory in /etc/inetd.conf:
lrwxrwxrwx 1 root system 24 Jan 30 2001 /usr/mqm/bin/amqcrsta -> /usr/mqm/bin/amqcrsta_nd

Am I overlooking a typo or is this a known problem?

Thanks.

Back to top
View user's profile Send private message
StefanSievert
PostPosted: Wed Jan 23, 2002 3:26 pm    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Hi Roni,
this is taken from the MQSeries Intercommunication Guide:

MQSeries stream tcp nowait root /usr/mqm/bin/amqcrsta amqcrsta

You did specify 'mqm' as the user.
Hope that helps,
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
tony@work
PostPosted: Wed Jan 23, 2002 3:29 pm    Post subject: Reply with quote

Newbie

Joined: 12 Nov 2001
Posts: 9
Location: Australia


It looks to me like you are making configuration entries for a second QMGR on the AIX System, indicated by the 1415 port. If this is so, then I believe that you entry into the /etc/inetd.conf file is missing the QMGR name. Without the QMGR name it will associate the process with the 'default' QMGR.

ie/
you have:
MQSeries stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta

you should have:
MQSeries stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta -m <QMGR-Name>

Back to top
View user's profile Send private message
roni
PostPosted: Thu Jan 24, 2002 7:39 am    Post subject: Reply with quote

Newbie

Joined: 22 Jan 2002
Posts: 8

Thank you for the hints. I have tried both:

MQSeries stream tcp nowait root /usr/mqm/bin/amqcrsta amqcrsta -m qmgrname

and then did a "refresh -s inetd". Unfortunately my port is still not listening. I had forgotten to mention originally that I only have one queue manager running and it is set to be the default. I have also looked through all the versions of the MQSeries Intercommunication manual located at
http://www-4.ibm.com/software/ts/mqseries/library/manualsa/manuals/crossprev.html
and
http://www-4.ibm.com/software/ts/mqseries/library/manualsa/manuals/crosslatest.html
and they all list the instruction as:

2. Add a line in the inetd.conf file to call the program amqcrsta:
| MQSeries stream tcp nowait mqm /mqmtop/bin/amqcrsta amqcrsta
| [-m Queue_Man_Name]

Thanks again for your help.
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Thu Jan 24, 2002 11:43 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Roni,
back to your original question, what exactly do you mean when you say you can't start the listener? I just want to make sure that you understand that in your configuration inetd is the 'listener' and you have to test it by trying to start a channel targeting this machine and port. This should then cause inetd to spawn a new amqcrsta process, which you should be able to see using the 'ps -ef | grep amq' command.
Just a shot in the dark, following a gut feeling...
Cheers,
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
roni
PostPosted: Thu Jan 24, 2002 11:59 am    Post subject: Reply with quote

Newbie

Joined: 22 Jan 2002
Posts: 8

I believe you're right. I was probably checking incorrectly to see if it was working. If I do a remote connect with MQSeries Explorer to the port I've listed in /etc/services -- will that also test that it's working? That is what I have been trying as a quick test -- and the MQSeries Explorer cannot connect. It will connect if I do runmqlsr with that port.

Thanks for your help.

Roni
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Thu Jan 24, 2002 1:19 pm    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Roni,
hmm, that's strange. Do you get any error messages on the server side (AMQERR01.LOG)? What return code do you get from MQExplorer?
If you do a netstat -a on the unix side, do you see an entry for port 1415 with the status 'LISTENING'?
In your /etc/services file, is the entry MQSeries tcp/1415 the last line in the file or did you put it somewhere in the middle (try creating an empty line after it, if it is the last line)?
Anyway, you should get some return codes either on the sending side (NT Event Viewer or AMQERR01.LOG) or on the receiving i.e. Unix side (AMQERR01.LOG, inetd log??).
Can you check for any of these error messages?
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
roni
PostPosted: Wed Jan 30, 2002 9:30 am    Post subject: Reply with quote

Newbie

Joined: 22 Jan 2002
Posts: 8

There were no messages on the server side -- either system or qmgr.
The return code from MQExplorer was that the host at the specified port was not available:
Try the connection again later. If the failure persists, record the error values and contact your systems administrator. The return code from TCP/IP is 10061 (X'274D'). The reason for the failure may be that this host cannot reach the destination host. It may also be possible that the listening program at host 'hostname(xx.xx.xx.xx) (1416)' was not running. If this is the case, perform the relevant operations to start the TCP/IP listening program, and try again.
A netstat -a didn't show the port number at all. I could see 2 other ports started with runmqlsr -- they listed "established" connections and "listening".
In /etc/services the entry is in the middle of the file and was a modified copy of an existing line in /etc/services.

Sorry it took a while to get back to your questions -- thanks alot for your help. Unfortunately, my systems haven't given any clues as to what may be wrong.

Roni
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Wed Jan 30, 2002 4:42 pm    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Roni,
if you are using inetd to start your channel programs, you should not see ANY runmqlsr processes running at all. Is it possible that you still start those runmqlsr's from a startup script?
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
roni
PostPosted: Thu Jan 31, 2002 6:44 am    Post subject: Reply with quote

Newbie

Joined: 22 Jan 2002
Posts: 8

Yes I had forgotten to take them out. I did run another test without any listeners running. When I tried to connect via MQ Explorer I got the same qmgr unavailable message. When I did a ps there were no amqcrsta. Also, just to clarify, there were no messages in the syslog output from inetd.
Back to top
View user's profile Send private message
StefanSievert
PostPosted: Thu Jan 31, 2002 11:33 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Roni,
you won't see any amqcrsta processes as output from a ps command unless a channel is actually running.
However, and I have to defer to the AIX experts here for the correct command because I can't recall, netstat -a (that's for Windows) should give you a line for your configured MQ port(s) (1414, 1415?) which shows a status of LISTENING for these ports. If they don't show up, I would suspect that your inetd configuration is not correct. This usually works without problems, so I guess we have overlooked something really obvious...
Anybody else with ideas?
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
anderson
PostPosted: Thu Feb 07, 2002 4:10 am    Post subject: Reply with quote

Newbie

Joined: 06 Feb 2002
Posts: 1

Two things you could try:--

1. To establish if the inetd.conf configuration is working try:
telnet yourhost 1415

If you get a "connected" message then your basic inetd.conf setup is OK.

2. Just a wild guess but you need to define a "SYSTEM.ADMIN.SVRCONN" channel before you can connect with MQExplorer.

Back to top
View user's profile Send private message Send e-mail
roni
PostPosted: Thu Feb 07, 2002 6:24 am    Post subject: Reply with quote

Newbie

Joined: 22 Jan 2002
Posts: 8

I've just installed a brand new server with MQSeries 5.2 and I'm having similar problems. Since noone else is on it I can do a little more experimenting.

I added 1414 to the /etc/services and the MQSeries line in /etc/inetd.conf. Did a refresh and could connect with MQ Explorer. Netstat reported it had an established connection against 1414 and was also listening.

MQSeries stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta -m MQSIHUB

MQSeries 1414/tcp # MQSeries

I copied and modified the 1414 line and ADDED 1415. Did a refresh and all I had listening (from netstat) was 1414.

MQSeries stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta -m MQSIHUB

MQSeries 1414/tcp # MQSeries
MQSeries 1415/tcp # MQSeries

Then I tried two entries:

MQSeries1 stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta -m MQSIHUB
MQSeries2 stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta -m MQSIHUB

MQSeries1 1414/tcp # MQSeries
MQSeries2 1415/tcp # MQSeries

This resulted in listening only on 1415 -- I'd lost 1414.

Maybe if you want to run more than one port for the same qmgr you have to do runmqlsr for the additional ports? I have only one qmgr running but I need multiple ports.
Back to top
View user's profile Send private message
roni
PostPosted: Thu Feb 07, 2002 8:31 am    Post subject: Reply with quote

Newbie

Joined: 22 Jan 2002
Posts: 8

After reading other posts, it looks like my best bet is to use runmqlsr anyway. But it's still annoying that it won't work with inetd.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ 5.1 listener problem on AIX
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.