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 » listener

Post new topic  Reply to topic
 listener « View previous topic :: View next topic » 
Author Message
harshatej1
PostPosted: Wed Nov 20, 2013 11:23 pm    Post subject: listener Reply with quote

Acolyte

Joined: 20 Nov 2013
Posts: 61

Hi,

can you please tell the command which is used to know the available listeners in the queue manager?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Nov 20, 2013 11:43 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

have you tried
Code:

runmqsc <queue manager name>


The commands you need are inside this utility. Get familiar with them as they are very useful to know.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Thu Nov 21, 2013 12:59 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Wehn using RUNMQSC or similar you can issue the following commands.

DIS LISTENER(*)

will show you the currently defined listeners

DIS LSSTATUS(*)

will show you the status (if any) of those listeners.

Bear in mind that it is not necessary to actually define a listener to run one. You can just run the listener with a command like runmqlsr -t tcp -p 1415 without defining any listeners.

Regards,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
harshatej1
PostPosted: Thu Nov 21, 2013 11:23 am    Post subject: Reply with quote

Acolyte

Joined: 20 Nov 2013
Posts: 61

I have tried the mentioned commands. Still unable to find the available listeners
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Thu Nov 21, 2013 11:29 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Would you like to say exactly what you are doing and what responses you get ?
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
harshatej1
PostPosted: Thu Nov 21, 2013 11:36 am    Post subject: Reply with quote

Acolyte

Joined: 20 Nov 2013
Posts: 61

I performed this....


display listener(*)
1 : display listener(*)
AMQ8405: Syntax error detected at or near end of command segment below:-
display l
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Thu Nov 21, 2013 11:38 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

What version and platform of MQ are you using ?
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
harshatej1
PostPosted: Thu Nov 21, 2013 11:45 am    Post subject: Reply with quote

Acolyte

Joined: 20 Nov 2013
Posts: 61

sun solaris, v5.3
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Nov 21, 2013 11:52 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

Try this UNIX command:
ps -ef |grep runmqlsr
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
harshatej1
PostPosted: Thu Nov 21, 2013 11:58 am    Post subject: Reply with quote

Acolyte

Joined: 20 Nov 2013
Posts: 61

Got it by the command ps -ef|grep runmqlsr
which means that the listener is in running state. Right?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Nov 21, 2013 12:04 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

UNIX ps command lists currently active processes.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Thu Nov 21, 2013 12:30 pm    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

My apologies for leading you astray in my earlier answers. It didn't really occur to me that you would be using such an old version of MQ. MQ 5.3 went out of support in September 2007 I believe.

In those early versions of MQ looking at the active list of processes or doing a netstat query were the best ways of query whether the listener was running.

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
gbaddeley
PostPosted: Sun Nov 24, 2013 3:11 pm    Post subject: Reply with quote

Jedi

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

harshatej1 wrote:
Got it by the command ps -ef|grep runmqlsr
which means that the listener is in running state. Right?

If you are on such an old and obsolete version of MQ you may also be using inetd as the MQ listener. This command will show the config:
Code:
grep MQ /etc/services /etc/inetd.conf

if "MQ" is part of the service or port name. YMMV.
_________________
Glenn
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 Discussion » listener
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.