Author |
Message
|
prince_mq |
Posted: Tue Mar 17, 2009 7:38 am Post subject: Command to check for Queue manager and associated listener |
|
|
Voyager
Joined: 10 Aug 2006 Posts: 76
|
Hi,
I'm searching for command(s) on windows that shall give me the queue manager name and its listener name (similar to ps -ef | grep runmqlsr on unix machines).
Can any one please let me know how to do this.
Thanks,
P |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 17, 2009 7:43 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
I'm searching for command(s) |
What you are looking for are control commands and MQSC commands.
Begin your search for control commands in the WMQ System Administration manual. Look for MQSC commands in the WMQ MQSC Commands manual.
Windows Task Manager will give you similar information to the UNIX ps command. _________________ 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 |
|
 |
prince_mq |
Posted: Tue Mar 17, 2009 7:56 am Post subject: |
|
|
Voyager
Joined: 10 Aug 2006 Posts: 76
|
Thanks bruce,
Actually, I am writing a windows batch script for wmq backup. This script shall record all queue managers and its listeners port numbers. So, I am trying to find out the qmgrs and associated listener port number using a combination of "Dos and MQ" commands. |
|
Back to top |
|
 |
firoj.badsa |
Posted: Tue Mar 17, 2009 7:59 am Post subject: |
|
|
 Centurion
Joined: 16 Feb 2007 Posts: 104
|
what about
amqmdain status QMGR. |
|
Back to top |
|
 |
prince_mq |
Posted: Tue Mar 17, 2009 8:02 am Post subject: |
|
|
Voyager
Joined: 10 Aug 2006 Posts: 76
|
Thanks firoz,
its showing only whether my qmgr is running or not. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 17, 2009 8:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
prince_mq wrote: |
I am trying to find out the qmgrs and associated listener port number using a combination of "Dos and MQ" commands. |
So use the advice previously given & submit mqsc commands. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
prince_mq |
Posted: Tue Mar 17, 2009 8:12 am Post subject: |
|
|
Voyager
Joined: 10 Aug 2006 Posts: 76
|
Thanks Vitor,
I want to know all the listener port numbers associated with queue manager. I can use dis listener(*) to get the port number in my script, but what if the listeners have been started using other methods.
So, finally, i would like to record all the listener ports and its associated queue manager in a text file using batch script.
i hope the above is clear.. Please let me know if this is confusing. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 17, 2009 8:17 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
prince_mq wrote: |
what if the listeners have been started using other methods. |
There are no other recommended methods in v6 & later.
prince_mq wrote: |
So, finally, i would like to record all the listener ports and its associated queue manager in a text file using batch script. |
Then don't record them after the event - script the creation. Then you can use the scripts along with saveqmgr for your backup (assuming you don't keep the queue scripts already). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|