Author |
Message
|
mohdraza |
Posted: Wed Feb 16, 2011 12:53 am Post subject: finding of PORT Number on AIX Machine |
|
|
Newbie
Joined: 15 Feb 2011 Posts: 2
|
Hello,
I am trying to get the port number of 1 of our QManager which is on AIX Machine, but i am not able to find it through all the commands which i have tried is given below :-
[b]ps -ef|grep runmqlsr
ps -ef|grep QMANAGER
ps -ef|grep /etc/services
So i have tried all the above commands but no luck, So can any one help me so that i can get the PORT number.
We are using MQ V.7 and its a cleint. |
|
Back to top |
|
 |
fatherjack |
Posted: Wed Feb 16, 2011 1:07 am Post subject: |
|
|
 Knight
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
|
runmqsc, then dis listener(listenername) _________________ Never let the facts get in the way of a good theory. |
|
Back to top |
|
 |
exerk |
Posted: Wed Feb 16, 2011 1:24 am Post subject: Re: finding of PORT Number on AIX Machine |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
mohdraza wrote: |
...We are using MQ V.7 and its a client... |
What is a client? Are you trying to find out the port number from the server on which the client is installed? If so, you won't get it from any of the commands you ran. Do as fatherjack suggests, on the server that hosts the queue manager, or look in the documentation you have for the infrastructure setup (you do have it all documented don't you?). _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
mohdraza |
Posted: Wed Feb 16, 2011 2:04 am Post subject: |
|
|
Newbie
Joined: 15 Feb 2011 Posts: 2
|
thanks, but the problem is that i need to know the PORT number not the listener one. |
|
Back to top |
|
 |
exerk |
Posted: Wed Feb 16, 2011 2:13 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
mohdraza wrote: |
thanks, but the problem is that i need to know the PORT number not the listener one. |
The PORT number of the LISTENER is what you need (unless it's 1414 in which case it is assumed and can be omitted from the CONNAME), and you should already know the IP address/DNS of the server hosting the queue manager. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 16, 2011 2:22 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
mohdraza wrote: |
thanks, but the problem is that i need to know the PORT number not the listener one. |
The PORT number of WHAT?
The only thing in MQ that uses a TCPIP port is the Listener Port.
Are you asking about LOCALADDR? |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Feb 17, 2011 4:51 pm Post subject: Re: finding of PORT Number on AIX Machine |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
mohdraza wrote: |
Hello,
I am trying to get the port number of 1 of our QManager which is on AIX Machine, but i am not able to find it through all the commands which i have tried is given below :-
ps -ef|grep runmqlsr
ps -ef|grep QMANAGER
ps -ef|grep /etc/services
So i have tried all the above commands but no luck, So can any one help me so that i can get the PORT number.
We are using MQ V.7 and its a cleint. |
ps -ef | grep lsr
should show the port number if runmqlsr is being used as the listener (this is the recommended set up), eg.
mqm 1020040 1220684 0 Feb 12 - 0:00 /usr/mqm/bin/runmqlsr -r -m MQQE201 -t TCP -p 1416
shows the qmgr name MQQE201 and port 1416.
If inetd is being used as the listener (quite often the case with pre MQ v5.3), you will need to search:
grep mq /etc/inetd.conf
to determine the port name (eg. MQSeries1, ymmv)
then grep for that in /etc/services to find the port number
QED _________________ Glenn |
|
Back to top |
|
 |
santnmq |
Posted: Thu Feb 17, 2011 10:01 pm Post subject: |
|
|
Centurion
Joined: 11 Jan 2011 Posts: 125
|
are you asking for the port number used by one perticular qmgr or something else? |
|
Back to top |
|
 |
garyprmr |
Posted: Thu Feb 24, 2011 9:34 am Post subject: |
|
|
Acolyte
Joined: 03 Sep 2005 Posts: 74
|
you got the answer, Glenn post is the one which should help you out |
|
Back to top |
|
 |
|