Author |
Message
|
sunnybab |
Posted: Mon Apr 14, 2008 9:43 pm Post subject: Read MQ logs |
|
|
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 |
|
 |
Gaya3 |
Posted: Mon Apr 14, 2008 10:06 pm Post subject: Re: Read MQ logs |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Apr 15, 2008 12:36 am Post subject: Re: Read MQ logs |
|
|
 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 |
|
 |
mvic |
Posted: Tue Apr 15, 2008 8:09 am Post subject: Re: Read MQ logs |
|
|
 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 |
|
 |
Vitor |
Posted: Tue Apr 15, 2008 11:50 am Post subject: Re: Read MQ logs |
|
|
 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 |
|
 |
bruce2359 |
Posted: Wed Apr 16, 2008 7:32 am Post subject: |
|
|
 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 |
|
 |
sunnybab |
Posted: Wed Apr 16, 2008 8:42 am Post subject: |
|
|
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 |
|
 |
mvic |
Posted: Wed Apr 16, 2008 8:46 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Wed Apr 16, 2008 8:57 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Apr 16, 2008 12:13 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Apr 16, 2008 2:33 pm Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Wed Apr 16, 2008 4:06 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Apr 17, 2008 6:11 pm Post subject: |
|
|
 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 |
|
 |
|