Author |
Message
|
harshatej1 |
Posted: Wed Nov 20, 2013 11:23 pm Post subject: listener |
|
|
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 |
|
 |
smdavies99 |
Posted: Wed Nov 20, 2013 11:43 pm Post subject: |
|
|
 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 |
|
 |
PaulClarke |
Posted: Thu Nov 21, 2013 12:59 am Post subject: |
|
|
 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 |
|
 |
harshatej1 |
Posted: Thu Nov 21, 2013 11:23 am Post subject: |
|
|
Acolyte
Joined: 20 Nov 2013 Posts: 61
|
I have tried the mentioned commands. Still unable to find the available listeners |
|
Back to top |
|
 |
PaulClarke |
Posted: Thu Nov 21, 2013 11:29 am Post subject: |
|
|
 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 |
|
 |
harshatej1 |
Posted: Thu Nov 21, 2013 11:36 am Post subject: |
|
|
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 |
|
 |
PaulClarke |
Posted: Thu Nov 21, 2013 11:38 am Post subject: |
|
|
 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 |
|
 |
harshatej1 |
Posted: Thu Nov 21, 2013 11:45 am Post subject: |
|
|
Acolyte
Joined: 20 Nov 2013 Posts: 61
|
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Nov 21, 2013 11:52 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
harshatej1 |
Posted: Thu Nov 21, 2013 11:58 am Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Thu Nov 21, 2013 12:04 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
PaulClarke |
Posted: Thu Nov 21, 2013 12:30 pm Post subject: |
|
|
 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 |
|
 |
gbaddeley |
Posted: Sun Nov 24, 2013 3:11 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 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 |
|
 |
|