Author |
Message
|
Ilya |
Posted: Thu Apr 18, 2002 4:15 am Post subject: |
|
|
Newbie
Joined: 17 Apr 2002 Posts: 5
|
I was wondering what additional configuration one has to make to have multiple qmanagers on single SUN machine. I am concerned about the entree in the /etc/inetd.conf /opt/mqm/bin/amqcrsta amqcrsta -m <1stqmanager>how do i add the second one? TIA Ilya |
|
Back to top |
|
 |
mrlinux |
Posted: Thu Apr 18, 2002 4:43 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
The line in /etc/inetd.conf contains the QMGR_NAME as a parameter so all you
do is copy that line and change the queue manager name in both places.
also in the /etc/services file you need to pick a new port number.
QMGR_NAME 1415/tcp
Also restart inetd after these changes
_________________
Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
[ This Message was edited by: mrlinux on 2002-04-18 05:44 ] |
|
Back to top |
|
 |
Ilya |
Posted: Thu Apr 18, 2002 5:49 am Post subject: |
|
|
Newbie
Joined: 17 Apr 2002 Posts: 5
|
Tnaks for a quick responce. One more question: What if I want to bind each Qmanager to a specific Virtual IP address. For example: I do not want to use different ports, rather I would listen on the same port (1414) but ont he differnt ip on the same machine. How can this be accomplished? What can I use instead of /etc/services entree? Or how can this entree be modified? TIA Ilya |
|
Back to top |
|
 |
rwa |
Posted: Fri Apr 19, 2002 4:42 am Post subject: |
|
|
Voyager
Joined: 22 Jan 2002 Posts: 76 Location: Duesseldorf/Germany
|
A solution is to configure the listener to listen only on a single ip-address. This can be done by editing the section TCP in file qm.ini
[TCP]
PORT=n
IPADDR=x.x.x.x or hostname |
|
Back to top |
|
 |
mrlinux |
Posted: Fri Apr 19, 2002 4:53 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
If the /etc/inetd.conf trick I suggested works on Sun you will end up with
2 lines
64.101.101.11:QMGR_A stream tcp nowait mqm /opt/mqm/bin/amqcrsta -m QMGR_A
64.101.222.22:QMGR_B stream tcp nowait mqm /opt/mqm/bin/amqcrsta -m QMGR_B
also /etc/services
QMGR_A 1414/tcp
QMGR_B 1414/tcp
Iam not sure this will work on Sun.
_________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
kolban |
Posted: Fri Apr 19, 2002 5:47 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Sorry Jeff, this will not work. You can only have one application (Unix process) listening on one TCP/IP socket port. If you try and start a second app against the same port it will get a socket bind error and not work.
[ This Message was edited by: kolban on 2002-04-19 06:47 ] |
|
Back to top |
|
 |
mrlinux |
Posted: Fri Apr 19, 2002 6:03 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Well inetd is the one binding to the ports, so it's not 2 applications trying to bind to the port also there are 2 seperate IP Address. Linux
is able to specify listening to one IP only, so it might be possible. I tend to agree it probably wont work, but it is an intresting expierment
_________________
Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
[ This Message was edited by: mrlinux on 2002-04-19 07:03 ]
[ This Message was edited by: mrlinux on 2002-04-19 07:09 ] |
|
Back to top |
|
 |
Ilya |
Posted: Fri Apr 19, 2002 9:38 am Post subject: |
|
|
Newbie
Joined: 17 Apr 2002 Posts: 5
|
thanks to all who replied what is the exect syntax for the this entreees in the qm.ini file. I get some errors. please help: A solution is to configure the listener to listen only on a single ip-address. This can be done by editing the section TCP in file
qm.ini
[TCP]
PORT=n
IPADDR=x.x.x.x or hostname |
|
Back to top |
|
 |
mrlinux |
Posted: Fri Apr 19, 2002 10:00 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Just an FYI on LINUX!! This works
I setup 2 virtual IPs on the loop back device
and added the following to my inetd.conf
128.0.0.1:telnet1 stream tcp nowait root /usr/sbin/tcpd in.telnetd
129.0.0.1:telnet2 stream tcp nowait root /usr/sbin/tcpd in.ftpd
added the following to my services file
telnet1 1414/tcp
telnet2 1414/tcp
restarted inetd
when I issue a telnet to 128.0.0.1 1414 I get telnet session
when I issue a telnet to 129.0.0.1 1414 I get a ftp session
Now if the inetd works the same on Sun then this type of setup will allow you
to listen on 1414 for more than 1 queue manager if you have the seperate virtual IP Address
_________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
rwa |
Posted: Sun Apr 21, 2002 11:14 pm Post subject: |
|
|
Voyager
Joined: 22 Jan 2002 Posts: 76 Location: Duesseldorf/Germany
|
I was just able to test the configuration with IPADDR. This feature is documented in the book IBM MQ Series Intercommunication (Appendix C). If I set this feature the listener did not start. The errormessage is "AMQ9224: Unexpected token detected.". |
|
Back to top |
|
 |
|