Author |
Message
|
atheek |
Posted: Tue May 08, 2007 7:52 am Post subject: Queue Manger Last start time |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
Hi all,
Is there a way to know when a qmgr was last started, apart from error logs?
MQ Version : 5.3
OS : Solaris 2.9
Regards,
Atheek |
|
Back to top |
|
 |
dgolding |
Posted: Tue May 08, 2007 7:57 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
Quick and dirty:
ps -fu mqm|grep zxma - this will tell you when the execution controller started for each queue manager. |
|
Back to top |
|
 |
jcv |
Posted: Tue May 08, 2007 7:57 am Post subject: |
|
|
 Chevalier
Joined: 07 May 2007 Posts: 411 Location: Zagreb
|
Dumping the contents of the log using the dmpmqlog command gives you among other this kind of log:
Start Queue Manager
This logs that the queue manager has started.
StartDate The date that the queue manager started.
StartTime The time that the queue manager started. |
|
Back to top |
|
 |
atheek |
Posted: Tue May 08, 2007 7:59 am Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
..but dmpmqlog can be used only if qmgr is not running!! .. right?? |
|
Back to top |
|
 |
dgolding |
Posted: Tue May 08, 2007 8:01 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
Why can't you look in the log file? |
|
Back to top |
|
 |
EddieA |
Posted: Tue May 08, 2007 9:21 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Enable QMGR Events, and read/browse the message produced.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 08, 2007 7:05 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
EddieA wrote: |
Enable QMGR Events, and read/browse the message produced.
Cheers, |
When the qmgr starts it puts a message into the event queue. Check out the date time on that message and remember MQ date time is always UTC.... Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
atheek |
Posted: Wed May 09, 2007 1:12 am Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
I was looking for a non MQ way.
ps -fu mqm|grep zxma as suggested by dgolding looks fine.
Many thanks to all for replying. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu May 10, 2007 11:27 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
EddieA wrote: |
Enable QMGR Events, and read/browse the message produced.
Cheers, |
Make sure the queue has its Default Persistence set to Persistent if you want to maintain a history of when the QM is stopping and starting. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|