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 » how to find out date and time queue manager started?

Post new topic  Reply to topic
 how to find out date and time queue manager started? « View previous topic :: View next topic » 
Author Message
ranjan1247
PostPosted: Mon Dec 29, 2014 4:14 am    Post subject: how to find out date and time queue manager started? Reply with quote

Novice

Joined: 17 Feb 2014
Posts: 20

How do you know a Queue Manager is running from how many days?
Is there any command?
Back to top
View user's profile Send private message
McueMart
PostPosted: Mon Dec 29, 2014 4:27 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

"DISPLAY QMSTATUS ALL"

In future, please at least have a quick google & look in the infocenter before asking question that are trivial in nature.
Back to top
View user's profile Send private message
ramires
PostPosted: Mon Dec 29, 2014 4:43 am    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

QMSTATUS displays the start date and time, and valid for recent MQ versions. In the older ones like 7.0.x. the output isn't so complete.

If it you are using and older MQ version you can look to the SYSTEM.ADMIN.QMGR.EVENT queue, a event message is put there when the qmgr starts.
_________________
Obrigado / Thanks you
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 29, 2014 6:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Or if you have logs old enough you can see in the error logs when the qmgr was last started...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Mon Dec 29, 2014 6:54 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

ramires wrote:

If it you are using and older MQ version you can look to the SYSTEM.ADMIN.QMGR.EVENT queue, a event message is put there when the qmgr starts.


This will occur only if Start/Stop Events are enabled for that Queue Manager.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
vsathyan
PostPosted: Mon Dec 29, 2014 8:06 am    Post subject: Reply with quote

Centurion

Joined: 10 Mar 2014
Posts: 121

PeterPotkay wrote:
ramires wrote:

If it you are using and older MQ version you can look to the SYSTEM.ADMIN.QMGR.EVENT queue, a event message is put there when the qmgr starts.


This will occur only if Start/Stop Events are enabled for that Queue Manager.


And if there is a proper MQ event reading application setup to read those event messages
Back to top
View user's profile Send private message
ramires
PostPosted: Mon Dec 29, 2014 8:18 am    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

PeterPotkay wrote:

This will occur only if Start/Stop Events are enabled for that Queue Manager.

yes , thanks Peter correct , by default they are
Back to top
View user's profile Send private message
ramires
PostPosted: Mon Dec 29, 2014 8:20 am    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

vsathyan wrote:
And if there is a proper MQ event reading application setup to read those event messages

you can browse the queue and look for put date and time , don't need to format the event message
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Dec 29, 2014 8:26 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

vsathyan wrote:
PeterPotkay wrote:
ramires wrote:

If it you are using and older MQ version you can look to the SYSTEM.ADMIN.QMGR.EVENT queue, a event message is put there when the qmgr starts.


This will occur only if Start/Stop Events are enabled for that Queue Manager.


And if there is a proper MQ event reading application setup to read those event messages


The event messages will be produced whether there is an event reading application setup to read those messages or not.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
vsathyan
PostPosted: Mon Dec 29, 2014 9:01 am    Post subject: Reply with quote

Centurion

Joined: 10 Mar 2014
Posts: 121

PeterPotkay wrote:

The event messages will be produced whether there is an event reading application setup to read those messages or not.


Yes, I agree. But the message will not contain any human readable data, and hence I mentioned it has to be processed by an event processing app.

As ramires mentioned in the previous post, we can use the message put date time in SYSTEM.ADMIN.QMGR.EVENT and assume that the queue manager was started at that date / time. There is also a possibility that other queue manager event messages (not only related to start and stop of the queue manager) also end up in this queue.

Second probability is that if there is a monitoring app setup like tivoli, qpasa, contact admin etc, the message would have been read by these event processors and the queue would be empty immediately after its started.

Again, as ramires stated, best way would be to get the queue manager start date and time would be the "dis qmstatus all" command and look at STARTDA and STARTTI attribute values.

Thanks ramires and peterpotkay.
Back to top
View user's profile Send private message
ramires
PostPosted: Mon Dec 29, 2014 9:38 am    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

vsathyan wrote:
...be the "dis qmstatus all" command and look at STARTDA and STARTTI attribute values...

vsathyan , the "dis qmstatus all" was McueMart suggestion thanks to him!
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Dec 29, 2014 11:16 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

Another place to look is the AMQERR01.LOG file for the queue-manager in question. To demonstrate, I created a new queue-manager called TEST1. I then viewed (Windows NotePad in this case) the AMQERR01.LOG file.

You should see something like this:

Quote:
12/29/2014 14:05:19 - Process(3628.1) User(Administrator) Program(amqzxma0.exe)
Host(XPBASE) Installation(Installation1)
VRMF(7.5.0.0) QMgr(TEST1)

AMQ8003: WebSphere MQ queue manager 'TEST1' started using V7.5.0.0.


You will also find this:

Quote:
12/29/2014 14:06:18 - Process(1464.1) User(MUSR_MQADMIN) Program(amqzxma0.exe)
Host(XPBASE) Installation(Installation1)
VRMF(7.5.0.0) QMgr(TEST1)

AMQ8004: WebSphere MQ queue manager 'TEST1' ended.

_________________
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
tkane
PostPosted: Wed Dec 31, 2014 11:49 am    Post subject: Reply with quote

Voyager

Joined: 23 Dec 2002
Posts: 82
Location: Kansas City

I had in my notes the following different PS commands by OS, I think they came from an info article but I can't seem to find them now.
Hope it helps!

HP-UX
env UNIX95=1 ps -eo etime,args,pid | grep "[a]mqzxma0 -m MQSHP042A3_2"
134-13:30:02 amqzxma0 -m MQSHP042A3_2 9185

Note: It indicates that the queue manager MQSHP042A3_2 has been running for 134 days, 13 hours, 30 minutes and 02 seconds.

AIX:
ps -eo etime,args,pid | grep "[a]mqzxma0 -m MQHIDF313"
11-08:37:37 amqzxma0 -m MQHIDF313

Note: It indicates that the queue manager MQHIDF313 has been running for 11 days, 08 hours, 37 minutes and 37 seconds.


Linux
ps -o etime,stime,time,cmd -C "amqzxma0 -m MQALPD312"

ELAPSED STIME TIME CMD
25-06:30:23 May05 00:00:14 amqzxma0 -m MQALPD312

Note: It indicates that the queue manager MQALPD312 has been running for 25 days, 06 hours, 30 minutes and 23 seconds.


SUN
ps -eo etime,args,pid | grep "[a]mqzxma0 -m MQASTZ0063"
5-17:42:10 amqzxma0 -m MQASTZ0063

Note: It indicates that the queue manager MQASTZ0063 has been running for 5 days, 17 hours, 42 minutes and 10 seconds.
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 » how to find out date and time queue manager started?
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.