Author |
Message
|
raj429 |
Posted: Sun Apr 24, 2011 11:02 pm Post subject: how to know when a queue manager got restarted on windows |
|
|
Acolyte
Joined: 04 Jul 2009 Posts: 53
|
Hi
I am working on windows server 2003 X64 bit edition. I want to know, when the queeu manager was restarted on this box.
I have cheked the error logs but as they got filled up by an error for last two days, dont have any trace to find out qmgr bouncing date.
I am trying to trace with the queeu manager processes start date. But I can't download any patch excutables in office(http://jesaa.com/2010/10/how-to-find-out-when-a-running-process-in-windows-started/) to find out process start date.
any other suggestions plz. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 25, 2011 4:26 am Post subject: Re: how to know when a queue manager got restarted on window |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
raj429 wrote: |
I want to know, when the queeu manager was restarted on this box. |
Why? What value does this information have to you?
By knowing what you're trying to achieve, we are better able to advise. On the face of it, this isn't a particually useful thing to know; more often you want to know if it's still started!!
It can usually be approximated as "just after the box was last restarted" on Windows. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Apr 25, 2011 4:33 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It should be fully determinable by "the last time an approved change that affected the running state of the queue manager was made".
That is, your change management records should exactly match the last time the queue manager was restarted.
If they don't, then your change management process is broken or your employees are ignoring it. |
|
Back to top |
|
 |
ramires |
Posted: Tue Apr 26, 2011 1:47 am Post subject: |
|
|
Knight
Joined: 24 Jun 2001 Posts: 523 Location: Portugal - Lisboa
|
when the queue manager starts it puts a message in SYSTEM.ADMIN.QMGR.EVENT queue. If you don't have a process consuming this queue, look at Put date/time properties of the message. _________________ Obrigado / Thanks you |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Apr 26, 2011 4:31 am Post subject: Re: how to know when a queue manager got restarted on window |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
raj429 wrote: |
I have cheked the error logs but as they got filled up by an error for last two days. |
If you are having recurring errors in mq, I'm pretty sure it was (one of) the AMQERR01.LOG that filled up.
At reboot, and BEFORE you start the qmgr, look at (browse) the error logs with Notepad. _________________ 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 |
|
 |
mqjeff |
Posted: Tue Apr 26, 2011 4:38 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
ramires wrote: |
when the queue manager starts it puts a message in SYSTEM.ADMIN.QMGR.EVENT queue. If you don't have a process consuming this queue, look at Put date/time properties of the message. |
Only if qmgr events are enabled. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Apr 26, 2011 4:38 am Post subject: Re: how to know when a queue manager got restarted on window |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
raj429 wrote: |
I have cheked the error logs but as they got filled up by an error for last two days. |
If you are having recurring errors in mq, I'm pretty sure it was (one of) the AMQERR01.LOG that filled up.
At reboot, and BEFORE you start the qmgr, look at (browse) the error logs with Notepad. |
It's true, these files may have a different retention period or scope of data than the Windows Event Viewer.
But there's no guarantee that they haven't fully wrapped, either. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Apr 26, 2011 4:50 am Post subject: Re: how to know when a queue manager got restarted on window |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
raj429 wrote: |
...any other suggestions plz. |
Why do you believe that it is WMQ that is filling up your filesystem?
For us to help you, you need to provide us with symptoms of the problem. A filled filesystem can be caused by any application, or combination of applications, writing endlessly; or filled by having insufficient filesystem space in the first place. _________________ 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 |
|
 |
Vitor |
Posted: Tue Apr 26, 2011 4:54 am Post subject: Re: how to know when a queue manager got restarted on window |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
Why do you believe that it is WMQ that is filling up your filesystem? |
I believe the OP is indicating that due to a recent problem the queue manager log files have filled & rolled over & no longer contain the "queue manager starting" message with associated date & time, rather than indicating any more general filling problem. It is the absence of this date & time in the queue manager log which has caused him to attempt to locate other sources of this information.
I could of course be wrong. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Apr 26, 2011 5:29 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Being that this is an mq-centric site, I made the assumption that it was mq that caused the filesystem to fill up. But, on re-read, the OP wasn't clear on this. _________________ 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 |
|
 |
mqjeff |
Posted: Tue Apr 26, 2011 5:40 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
Being that this is an mq-centric site, I made the assumption that it was mq that caused the filesystem to fill up. But, on re-read, the OP wasn't clear on this. |
Again, it is not that the file system filled up.
It is that the error logs wrapped. |
|
Back to top |
|
 |
exerk |
Posted: Tue Apr 26, 2011 5:50 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
The queue manager's active and master files in the queue manager folder carry the time/date stamps of when the queue manager is started (WMQ V7.0 assumed). I echo the sentiments of my most worthy associates - why do you need to know? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Apr 26, 2011 1:42 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
You can look at the oldest start date/time of your running channels. You will know the Queue Manager has been running at least that long, although you have no way of knowing (using this method) that it hasn't been running longer.
If the Queue Manager's Start / Stop Events are enabled, and the SYSTEM.ADMIN.QMGR.EVENT queue is defined with its default persistence attribute set to persistent, and nothing has since consumed the start event message, then your answer will be in that message.
Your MQ monitoring software may be keep tracking of this type of information as well. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Apr 26, 2011 5:23 pm Post subject: Re: how to know when a queue manager got restarted on window |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
raj429 wrote: |
I am working on windows server 2003 X64 bit edition. I want to know, when the queeu manager was restarted on this box.
I have cheked the error logs but as they got filled up by an error for last two days, dont have any trace to find out qmgr bouncing date.
...any other suggestions plz. |
Process Explorer can be used to show the Start Date/Time of any Windows process. This free utility from Microsoft can be downloaded from http://technet.microsoft.com/en-us/sysinternals/bb896653 . _________________ Glenn |
|
Back to top |
|
 |
shashivarungupta |
Posted: Tue Apr 26, 2011 11:08 pm Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Oldest start date/time of the running channel will give the information that which channel has got started first after the queue manager came to the running state. ( and by that you can assume as soon as qmgr came to the running state that channel came in running state ). I believe it would give you a hint/approx date/time when the qmgr has got started.
Atleast date could be the same but some minute deflection can be there in time. (if we go by above assumption)
 _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
|