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 » Read MQ logs

Post new topic  Reply to topic
 Read MQ logs « View previous topic :: View next topic » 
Author Message
sunnybab
PostPosted: Mon Apr 14, 2008 9:43 pm    Post subject: Read MQ logs Reply with quote

Novice

Joined: 12 Jan 2006
Posts: 21

Can someone tell me how to read the /var/mqm/log/<qmgr>/active/*LOG Logs ( S0000000.LOG ) They are data files. I want to see the messages in those files.

Thanks
Sunny
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Apr 14, 2008 10:06 pm    Post subject: Re: Read MQ logs Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

sunnybab wrote:
Can someone tell me how to read the /var/mqm/log/<qmgr>/active/*LOG Logs ( S0000000.LOG ) They are data files. I want to see the messages in those files.

Thanks
Sunny


These are active files, its used to Start the queue manager. and will be using by the queue manager.

I dont think so it will be in a human readable format...


Regards
gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Apr 15, 2008 12:36 am    Post subject: Re: Read MQ logs Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sunnybab wrote:
I want to see the messages in those files.


There are very few good reasons why you'd want to do this. There's not too much they can tell you that you can't find out more easily from other sources.

IIRC Cressida produce a product that can read the files, but I could be wrong.

Again I wonder why you'd want to, and offer a friendly warning about doing so, especially on Windows. Unexpected file handles & locks on those files can make the queue manager confused.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mvic
PostPosted: Tue Apr 15, 2008 8:09 am    Post subject: Re: Read MQ logs Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

sunnybab wrote:
Can someone tell me how to read the /var/mqm/log/<qmgr>/active/*LOG Logs ( S0000000.LOG ) They are data files. I want to see the messages in those files.

dmpmqlog is the program to use, supplied in every MQ server installation. Instructions are in the System Administration Guide.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Apr 15, 2008 11:50 am    Post subject: Re: Read MQ logs Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mvic wrote:
sunnybab wrote:
Can someone tell me how to read the /var/mqm/log/<qmgr>/active/*LOG Logs ( S0000000.LOG ) They are data files. I want to see the messages in those files.

dmpmqlog is the program to use, supplied in every MQ server installation. Instructions are in the System Administration Guide.


Good point!

I still question the need, and the fact that dmpmqlog requires the queue manager to be shut down can make it inconvientient.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Apr 16, 2008 7:32 am    Post subject: Reply with quote

Poobah

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

Two needs come to mind:
1. curiousity.
2. absolute last place to look for lost data

For 1. above, create a new qmgr, some queues, put some messages, get some messages, alter an object, stop the qmgr, dump the log, enjoy.

For 2. above, a client (in near-disaster frame of mind) asked me if the log was a good place to try to recover lost data - not lost messages. Their data was lost due to disk failure. They had no file backup (it was on the same disk), no source data, no hardcopy doc, nothing.
_________________
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
sunnybab
PostPosted: Wed Apr 16, 2008 8:42 am    Post subject: Reply with quote

Novice

Joined: 12 Jan 2006
Posts: 21

Another need to log in the Active logs was to see the exact message sent to the queue, Instead of trying to read or dump from the queue.

As per my understanding once the message is put on the queue, it doesn't need to stay on the log any more.

These Active logs are data files so we should not be reading them with regular unix cat commands.But we can still look at them using cat and can see messages besides it shows junk characters in there.

Any other way to get the dump of exact message in xml format that was put in queue without removing it from the queue?
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Apr 16, 2008 8:46 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

sunnybab wrote:
Any other way to get the dump of exact message in xml format that was put in queue without removing it from the queue?

Browse. Use amqsbcg or any MQI app that calls MQGET-with-browse.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Apr 16, 2008 8:57 am    Post subject: Reply with quote

Poobah

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

Quote:
As per my understanding once the message is put on the queue, it doesn't need to stay on the log any more
.
Nope. Nope. Nope.

Please, oh please, read the System Admin Guide section on Recovery and Restart.
_________________
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
Vitor
PostPosted: Wed Apr 16, 2008 12:13 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sunnybab wrote:
Another need to log in the Active logs was to see the exact message sent to the queue, Instead of trying to read or dump from the queue.


Please, if you need to audit messages, build auditing into the application, or flows, or mirrorq, or anywhere but this. You'll also find it so cumbersome like this, as not only do you have to stop the queue manager to do this, you'll need to manually avoid duplicates.

sunnybab wrote:
As per my understanding once the message is put on the queue, it doesn't need to stay on the log any more.


Yes it does.

sunnybab wrote:
Any other way to get the dump of exact message in xml format that was put in queue without removing it from the queue?


Any number, including but not limited to the methods I list above.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 16, 2008 2:33 pm    Post subject: Reply with quote

Grand High Poobah

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

sunnybab wrote:
Any other way to get the dump of exact message in xml format that was put in queue without removing it from the queue?


Have you tried support pack RFHUtil(c) (MS03) ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Wed Apr 16, 2008 4:06 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

fjb_saper wrote:
Have you tried support pack RFHUtil(c) (MS03) ?


I'm really quite certain that RFHUtil(c) is IH03.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 17, 2008 6:11 pm    Post subject: Reply with quote

Grand High Poobah

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

jefflowrey wrote:
fjb_saper wrote:
Have you tried support pack RFHUtil(c) (MS03) ?


I'm really quite certain that RFHUtil(c) is IH03.


Duh of course!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Read MQ logs
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.