Author |
Message
|
senthilkumar_ak |
Posted: Mon Nov 10, 2008 1:54 am Post subject: Monitoring MQ with the Unix script |
|
|
Newbie
Joined: 10 Nov 2008 Posts: 2
|
Hi all,
Please correct me / excuse me if i am wrong.
we have a websphere server which is running on linux and i am trying automate every thing which is related to this. We have MQ runnig along with this. i need to get the state of MQ queue from the log file. Is it possible me to get the information anywhere from the Logs or i need to do some thing else, Please let me know the results.
~aks _________________ Thanks
Senthil Kumar AK |
|
Back to top |
|
 |
Vitor |
Posted: Mon Nov 10, 2008 3:04 am Post subject: Re: Monitoring MQ with the Unix script |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
senthilkumar_ak wrote: |
i need to get the state of MQ queue from the log file. |
What "state"? Queues don't have states per se. So you mean "state" in the sense of "working well"?
You can monitor the logs for queue manager status as well as DISPLAY commands (or their PCF equivalent). Things like queue depth (a good indicator of happiness if your design is right) again requires a DISPLAY command. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
senthilkumar_ak |
Posted: Mon Nov 10, 2008 3:33 am Post subject: |
|
|
Newbie
Joined: 10 Nov 2008 Posts: 2
|
Thanks for the reply,
As i am new to the MQ i mentioned status as state, where from i will get the queue manager log file.. and is it any command available me to trigger and get the status of the particular MQ...?
bash-2.05$ cd /opt/mqm
bash-2.05$ ls
bin inc java lib licenses ptf READMES READMES.client samp tivoli versions
where from i take the display command.
~aks _________________ Thanks
Senthil Kumar AK |
|
Back to top |
|
 |
Vitor |
Posted: Mon Nov 10, 2008 4:05 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
senthilkumar_ak wrote: |
As i am new to the MQ |
Consider some training.
senthilkumar_ak wrote: |
where from i will get the queue manager log file.. |
If I said the log directory would you believe me? Note that there are 2 kinds of logging within WMQ: one is the queue manager log & is concerned with error reporting (rather than status); the other is the message logging and is not intended to be readable by non-IBM software.
senthilkumar_ak wrote: |
and is it any command available me to trigger and get the status of the particular MQ...? |
There's no such thing as "the status" as I alluded to in my previous post. The DISPLAY commands are issued as normal via runmqsc or as PCF. If you don't know that, gdo some reading / training before attempting your task or you'll get yourself in a tangle.
I also commend to your attention the Monitoring MQ manual which contains a lot of useful information for you. Links at the top of this page.
Alternatively forget reinventing the wheel & buy one of the commercial monitoring products which does this out of the box. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Nov 10, 2008 6:25 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
senthilkumar_ak wrote: |
Thanks for the reply,
As i am new to the MQ i mentioned status as state, where from i will get the queue manager log file.. and is it any command available me to trigger and get the status of the particular MQ...?
bash-2.05$ cd /opt/mqm
bash-2.05$ ls
bin inc java lib licenses ptf READMES READMES.client samp tivoli versions
where from i take the display command.
~aks |
The bin directory contains all the executables. These are referred to by symbolic links from /usr/bin, so there is no need to put /opt/mqm/bin in your path.
I suggest you look at the 'dspmq' command in the WebSphere MQ System Administration Guide. _________________ Glenn |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Tue Jan 13, 2009 11:39 pm Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
use mqcheck script from PAUL CLARKE...
work on Solaris, linux, AIX........ |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jan 14, 2009 3:52 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Way too much pain.
Depending on the bang for the buck I'd try and use some MQ Monitoring software. Some is free, some you have to pay for. But don't reinvent the wheel...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
oesi78 |
Posted: Fri Jan 30, 2009 6:39 am Post subject: mqcheck script from PAUL CLARKE |
|
|
Newbie
Joined: 29 Jan 2009 Posts: 1
|
Hello!
where find this script (mqcheck script from PAUL CLARKE)?
Where i can download this script?
regards
peter |
|
Back to top |
|
 |
|