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 » netstat output on MQ server

Post new topic  Reply to topic
 netstat output on MQ server « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Tue Aug 20, 2013 6:41 am    Post subject: netstat output on MQ server Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Hi Folks,

I have a question on netstat output on a MQ box

tcp4 0 0 127.0.0.1.4545 127.0.0.1.41553 ESTABLISHED
tcp 0 0 127.0.0.1.41553 127.0.0.1.4545 ESTABLISHED
tcp4 0 0 172.29.109.41.4545 172.29.109.41.51881 ESTABLISHED
tcp 0 0 172.29.109.41.51881 444.33.111.99.4545 ESTABLISHED
tcp4 0 0 444.33.111.99.4545 444.33.111.99.58621 ESTABLISHED
tcp 0 0 444.33.111.99.58621 444.33.111.99.4545 ESTABLISHED
tcp4 0 0 444.33.111.99.4545 444.33.111.99.35005 ESTABLISHED
tcp 0 0 444.33.111.99.35005 444.33.111.99.4545 ESTABLISHED
tcp4 0 0 127.0.0.1.4545 127.0.0.1.50203 ESTABLISHED
tcp 0 0 127.0.0.1.50203 127.0.0.1.4545 ESTABLISHED
tcp4 0 0 127.0.0.1.4545 127.0.0.1.51401 ESTABLISHED
tcp 0 0 127.0.0.1.51401 127.0.0.1.4545 ESTABLISHED


What we can see in the above list is that a process from loopback ip makes connection itself.

originates from the mq listener port(4545) and makes connection to other port eg 51401

originates from other port (50203) and makes connection to listener port 4545

also makes similar connection from real ip

how should I intepret this ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 20, 2013 6:44 am    Post subject: Re: netstat output on MQ server Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

jeevan wrote:
how should I intepret this ?


As a series of connections?

I don't understand what you're asking, or why.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jeevan
PostPosted: Tue Aug 20, 2013 6:50 am    Post subject: Re: netstat output on MQ server Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Vitor wrote:
jeevan wrote:
how should I intepret this ?


As a series of connections?

I don't understand what you're asking, or why.



basically, the connection should be from local to foreigh ip and viceversa corect

but what i am seeig is

(1) from local loopback ip to loopback ip from and to the port mq is listening,
(2) from local ip ( not loopback, correct ip) to correct ip from and to the port Mq is listening

In fact I am working to dismantle a very old qmgr, so I am trying to see wha are connected to but I but I see a local to local connection.


Last edited by jeevan on Tue Aug 20, 2013 6:58 am; edited 1 time in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 20, 2013 6:55 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Have you determined that any of these are applicable to mq processes?
Back to top
View user's profile Send private message
jeevan
PostPosted: Tue Aug 20, 2013 7:07 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

mqjeff wrote:
Have you determined that any of these are applicable to mq processes?


When I get lsof -i :port I can see the amqrmppa process listening to the port.

Why a channel process is listening to the local loopback ip? also why the connection request comes from local to local
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Aug 20, 2013 3:11 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

jeevan wrote:
When I get lsof -i :port I can see the amqrmppa process listening to the port.

The process is not "listening" on the port, it has an established socket session open, and could be reading or writing.
Quote:
Why a channel process is listening to the local loopback ip? also why the connection request comes from local to local

Local MQ Client applications are probably connected to the local queue manager. Compare netstatus to runmqsc "dis chs(*) current all".
_________________
Glenn
Back to top
View user's profile Send private message
jeevan
PostPosted: Thu Aug 22, 2013 10:08 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

gbaddeley wrote:
jeevan wrote:
When I get lsof -i :port I can see the amqrmppa process listening to the port.

The process is not "listening" on the port, it has an established socket session open, and could be reading or writing.
Quote:
Why a channel process is listening to the local loopback ip? also why the connection request comes from local to local

Local MQ Client applications are probably connected to the local queue manager. Compare netstatus to runmqsc "dis chs(*) current all".



Thanks for reminding me. I was only talking for the last oe year and my MQ skill which gives me bread and butter, nearly get expired. I am renewing it.

thanks a lot
Back to top
View user's profile Send private message
Tibor
PostPosted: Fri Aug 23, 2013 1:04 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

jeevan wrote:
When I get lsof -i :port I can see the amqrmppa process listening to the port.

MQ listener process (runmqlsr) is *really* listening on the port (sorry gbaddeley), and this process launches the pooling processes (amqrmppa).

Quote:
Why a channel process is listening to the local loopback ip? also why the connection request comes from local to local

You can set which interface is using for a listener, all is the default. Besides, a local-to-local scenario is very common, because it is flexible and portable.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sun Aug 25, 2013 4:30 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

Tibor wrote:
MQ listener process (runmqlsr) is *really* listening on the port (sorry gbaddeley), and this process launches the pooling processes (amqrmppa).

To be pedantic, at least one amqrmppa process is already running. The listener hands over the channel connection to a spawned thread in amqrmppa. Each instance of amqrmppa can have up to ~60 threads acting as Message Channel Agents.
_________________
Glenn
Back to top
View user's profile Send private message
Tibor
PostPosted: Sun Aug 25, 2013 8:57 pm    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » netstat output on MQ server
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.