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 IBM MQ Support » finding of PORT Number on AIX Machine

Post new topic  Reply to topic
 finding of PORT Number on AIX Machine « View previous topic :: View next topic » 
Author Message
mohdraza
PostPosted: Wed Feb 16, 2011 12:53 am    Post subject: finding of PORT Number on AIX Machine Reply with quote

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
View user's profile Send private message Send e-mail
fatherjack
PostPosted: Wed Feb 16, 2011 1:07 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Wed Feb 16, 2011 1:24 am    Post subject: Re: finding of PORT Number on AIX Machine Reply with quote

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
View user's profile Send private message
mohdraza
PostPosted: Wed Feb 16, 2011 2:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
exerk
PostPosted: Wed Feb 16, 2011 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Feb 16, 2011 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Thu Feb 17, 2011 4:51 pm    Post subject: Re: finding of PORT Number on AIX Machine Reply with quote

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
View user's profile Send private message
santnmq
PostPosted: Thu Feb 17, 2011 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
garyprmr
PostPosted: Thu Feb 24, 2011 9:34 am    Post subject: Reply with quote

Acolyte

Joined: 03 Sep 2005
Posts: 74

you got the answer, Glenn post is the one which should help you out
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » finding of PORT Number on AIX Machine
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.