Author |
Message
|
jasonlck |
Posted: Wed Feb 18, 2009 10:33 pm Post subject: Command for checking status of mqsi components? |
|
|
Apprentice
Joined: 06 Oct 2008 Posts: 48 Location: Singapore
|
Hi there,
I understand for WMQ there is "dspmq" command for displaying the current status of the QMs eg. "running", "ended normally", etc.
I would like to find out if there is any such command for WMB?
I'm currently running on AIX 5.3 and WMB 6.1.0.2. I believe "mqsilist" is not the right command as it shows only the components that have been created and not the status.
Thanks in advance! |
|
Back to top |
|
 |
MQEnthu |
Posted: Thu Feb 19, 2009 12:55 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
Yes, mqsilist command lists the broker, configmgr and EG.. but does not show the status. You can get the status of the objects in a broker domain using Configuration Manager Proxy API.
http://127.0.0.1:56892/help/topic/com.ibm.etools.mft.doc/ae20620_.htm _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
jasonlck |
Posted: Thu Feb 19, 2009 2:28 am Post subject: |
|
|
Apprentice
Joined: 06 Oct 2008 Posts: 48 Location: Singapore
|
Thanks for your help, but apparently I can't get my CMP API up and running.
So is there any other solution other than tat? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 19, 2009 2:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
jasonlck wrote: |
[color=blue]Thanks for your help, but apparently I can't get my CMP API up and running. |
Why not? Error messages, return codes, clues.....? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bloomy |
Posted: Thu Feb 19, 2009 9:30 am Post subject: |
|
|
 Acolyte
Joined: 11 Feb 2009 Posts: 61 Location: Bloomington, IL USA
|
Correctme folks if I am wrong.
Quote: |
So is there any other solution other than tat |
If you are using AIX you can check for processes, if they are running or not.
EX: IF you want to check if broker and configmgr are running
Do a ps -ef|grep bip
In the same way check for EG's using ps -ef|grep EGname |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 19, 2009 2:36 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
bloomy wrote: |
Correctme folks if I am wrong.
Quote: |
So is there any other solution other than tat |
If you are using AIX you can check for processes, if they are running or not.
EX: IF you want to check if broker and configmgr are running
Do a ps -ef|grep bip
In the same way check for EG's using ps -ef|grep EGname |
Your check for EG's is inefficient and painful. I have 8 egs running on a number of brokers. I am definitely not checking for each EG in particular...
Try
Code: |
ps -ef | grep DataFlow | grep <BRKRNAME> |
and you get a list of egs running for the relevant broker
Note mqsilist <BRKNAME> would probably give you the same information.
But then I might have to check if the pid displayed for the eg is effectively running or is stale info.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bloomy |
Posted: Thu Feb 19, 2009 3:15 pm Post subject: |
|
|
 Acolyte
Joined: 11 Feb 2009 Posts: 61 Location: Bloomington, IL USA
|
Sorry all, my idea was to check for processes. I have just mentioned the below commands as examples. I know it is painful if we have more number of EG's and many more flows running under them, that was just an example. |
|
Back to top |
|
 |
jasonlck |
Posted: Mon Feb 23, 2009 12:36 am Post subject: |
|
|
Apprentice
Joined: 06 Oct 2008 Posts: 48 Location: Singapore
|
Vitor wrote: |
jasonlck wrote: |
Thanks for your help, but apparently I can't get my CMP API up and running. |
Why not? Error messages, return codes, clues.....? |
Well it complains it is unable to find certain jars when i already have them pointing in the PATH env variable... So I've given up trying to use CMP API...
Partly i am hoping and searching if there is a command like "dspmq" which shows status like "running", "ended normally", etc easily so that I can show user that the component is working as expected...
Using grep commands might be too complicating for them to understand... |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Feb 23, 2009 12:47 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Quote: |
Using grep commands might be too complicating for them to understand... |
A very astute observation....
So why not wrap it all up in a nice shell script that they can run easily?
You can add lots of nice formatting and other useful info as well to the output such as the date/time the command was run etc.
This will make it far more user friendly and also reduce the risk of typos on the users part. _________________ 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 |
|
 |
mqmatt |
Posted: Mon Feb 23, 2009 9:40 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
jasonlck wrote: |
[color=blue]Well it complains it is unable to find certain jars when i already have them pointing in the PATH env variable... So I've given up trying to use CMP API... |
You should be configuring the CLASSPATH, not the PATH.
Customise StartDomainInfo.bat with the locations of the JARs the script tells you, and it works fine. |
|
Back to top |
|
 |
|