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 » General Discussion » How to define port using command line interface

Post new topic  Reply to topic
 How to define port using command line interface « View previous topic :: View next topic » 
Author Message
khushi
PostPosted: Mon Aug 25, 2003 1:57 pm    Post subject: How to define port using command line interface Reply with quote

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
View user's profile Send private message Yahoo Messenger
aeduardozp
PostPosted: Mon Aug 25, 2003 2:54 pm    Post subject: Reply with quote

Newbie

Joined: 22 Aug 2003
Posts: 2
Location: Mexico

Khushi:

Which operation system are you using?

Ed.
Back to top
View user's profile Send private message Send e-mail
clindsey
PostPosted: Mon Aug 25, 2003 4:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
khushi
PostPosted: Tue Aug 26, 2003 6:21 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
mqonnet
PostPosted: Tue Aug 26, 2003 6:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
clindsey
PostPosted: Tue Aug 26, 2003 7:32 am    Post subject: Reply with quote

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
View user's profile Send private message
maxis
PostPosted: Wed Aug 27, 2003 12:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Aug 27, 2003 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » How to define port using command line interface
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.