Author |
Message
|
khushi |
Posted: Mon Aug 25, 2003 1:57 pm Post subject: How to define port using command line interface |
|
|
Newbie
Joined: 18 Aug 2003 Posts: 6 Location: Boston, Massachusetts
|
Hi,
I am newbiee in MQ series, I have made queue managers by using command line but unable to config the ports of the queue managers. Please assist me how to locate the port and how to define port in new queue manager.
Thanks,
Khushi _________________ Khushi |
|
Back to top |
|
 |
aeduardozp |
Posted: Mon Aug 25, 2003 2:54 pm Post subject: |
|
|
Newbie
Joined: 22 Aug 2003 Posts: 2 Location: Mexico
|
Khushi:
Which operation system are you using?
Ed. |
|
Back to top |
|
 |
clindsey |
Posted: Mon Aug 25, 2003 4:18 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
I will take a guess that you are on Windows.
There are 2 answers to your question. If you only need to start a listener for your queue manager, then enter:
start runmqlsr -m <QMGR> -t TCP -p <PORT NUMBER>
If you are looking to define a listener from the command line enter:
amqmdain crtlsr <QMGR> -t TCP -p <PORTNUMBER>
Charlie |
|
Back to top |
|
 |
khushi |
Posted: Tue Aug 26, 2003 6:21 am Post subject: |
|
|
Newbie
Joined: 18 Aug 2003 Posts: 6 Location: Boston, Massachusetts
|
Hey Thanks,
It works. Yes I am working on windows.
But i wanted to know if suppose you have to give a port no to your q manager then what is the command. Cause as per the manual its not excepting the -o (home terminal name) command and there is no option such as -p in the QMgr naming options list. Do i have to give the port name while creating listner or we have some other options also. _________________ Khushi |
|
Back to top |
|
 |
mqonnet |
Posted: Tue Aug 26, 2003 6:29 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
There is nothing like a "port" for a queue manager.
MQ listener is the only one who listens on a specific port which is what you need to either configure or run manually and specify the port number. In any case if you dont specify a port and just start your listener it would listen on port 1414, unless some other listener is already using it.
Cheers
Kumar |
|
Back to top |
|
 |
clindsey |
Posted: Tue Aug 26, 2003 7:32 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
The port is assigned to the listener and the listener is associated with the queue manager. The "well known" port for MQSeries is 1414 and out of the box, this defaults to 1414 for all queue managers, meaning that if the -p switch is omitted, MQSeries uses 1414.
You can change the default port for a queue manager in the TCP stanza of the qm.ini file. So if you set 'Port=1416' for example and then you start a listener with 'runmqlsr -m QM1 -t TCP', the listener would be listening on 1416.
Since there is no qm.ini on Windows, you change it via MQ Services. Click on properties for the queue manager, then select the TCP tab. There you will find a field to set the default port for the given queue manager.
I am throwing this out so you know how to do it. Personally, I would still specify the -p parameter anytime it is not 1414 for the benefit of others who may do admin work on this system.
Charlie |
|
Back to top |
|
 |
maxis |
Posted: Wed Aug 27, 2003 12:19 pm Post subject: |
|
|
Centurion
Joined: 25 Jun 2002 Posts: 144
|
how to find the port number on which queue manager is listening ?
os - aix/unix |
|
Back to top |
|
 |
vennela |
Posted: Wed Aug 27, 2003 12:34 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
It depends on how you are running the listener.
If you are running it as runmqlsr then
ps -ef | grep runmqlsr
That will give you the QMGR and the corresponding port number
If it is through inetd, then it should be listed in the /etc/services.
-------
Venny |
|
Back to top |
|
 |
|