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 » Command to check for Queue manager and associated listener

Post new topic  Reply to topic
 Command to check for Queue manager and associated listener « View previous topic :: View next topic » 
Author Message
prince_mq
PostPosted: Tue Mar 17, 2009 7:38 am    Post subject: Command to check for Queue manager and associated listener Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Tue Mar 17, 2009 7:43 am    Post subject: Reply with quote

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
View user's profile Send private message
prince_mq
PostPosted: Tue Mar 17, 2009 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message
firoj.badsa
PostPosted: Tue Mar 17, 2009 7:59 am    Post subject: Reply with quote

Centurion

Joined: 16 Feb 2007
Posts: 104

what about

amqmdain status QMGR.
Back to top
View user's profile Send private message
prince_mq
PostPosted: Tue Mar 17, 2009 8:02 am    Post subject: Reply with quote

Voyager

Joined: 10 Aug 2006
Posts: 76

Thanks firoz,

its showing only whether my qmgr is running or not.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 17, 2009 8:03 am    Post subject: Reply with quote

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
View user's profile Send private message
prince_mq
PostPosted: Tue Mar 17, 2009 8:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Mar 17, 2009 8:17 am    Post subject: Reply with quote

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
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 » Command to check for Queue manager and associated 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.