Author |
Message
|
cicsprog |
Posted: Mon Jul 08, 2019 11:37 am Post subject: Reading logs and replaying messages |
|
|
Partisan
Joined: 27 Jan 2002 Posts: 347
|
There use to be a Supportpac and I believe it got put into the MQ product, the ability to read the MQ logs and rebuild/replay messages.
I can’t find the Supportpac or any documentation on it and I know it exists.
Thanks for helping us aged types!!!!
Jason |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 08, 2019 11:44 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
For the record, you do mean (based on where you've posted this) on a z/OS queue manager not a distributed one? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 08, 2019 11:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
And are you sure you're not thinking of dmpmqmsg which was what they called qload when it moved into the base product in v8? Along with savemqgr?
(Though MQ z/OS had saveqmgr functionality through CSQUTIL before that. Like anyone defines queues except using JCL........)
This, as you're surely aware, doesn't read logs. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Jul 08, 2019 11:56 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
CSQJU004 is the supplied print log utility. Log replay takes place automatically at qmgr restart to ensure that the qmgr is brought to its last known consistent state. _________________ 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 |
|
 |
cicsprog |
Posted: Mon Jul 08, 2019 11:59 am Post subject: |
|
|
Partisan
Joined: 27 Jan 2002 Posts: 347
|
It was ZOS I thought...but I’m old. I’m still looking for it.
Paul or M Hughson HELP the agged!!!!! |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 08, 2019 12:00 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
Log replay takes place automatically at qmgr restart to ensure that the qmgr is brought to its last known consistent state. |
Yeah, I knew that and suspect the OP does as well.
The ask seemed more to be something more manual, separate to the start up consistency check.
Unless you're proposing the OP print the logs through CSQJU004, reformat the output and replay it through CSQUTIL? Ingenious, but how would you identify given start and end points?
Hummmm.......................
*reaches for SyncSort guide* _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 08, 2019 12:03 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
cicsprog wrote: |
It was ZOS I thought...but I’m old. |
And I'm a teenage millennial spring chicken.
Using my cranky old man voice, I point out that v8's dspmqmsg does work on z/OS.
I also wave my cane in the air and demand what the requirment to do such a darn fool crazy thing is. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
cicsprog |
Posted: Mon Jul 08, 2019 12:06 pm Post subject: |
|
|
Partisan
Joined: 27 Jan 2002 Posts: 347
|
It was some program that recreated messages from the logs (maybe elsewhere) that allowed you to replay them back....like for stress tests
Ugg. I’m still looking. I thought it was just recently added also and at one time it was a Supportpac.....NOT Q or QLOAD
Jason |
|
Back to top |
|
 |
cicsprog |
Posted: Mon Jul 08, 2019 12:12 pm Post subject: |
|
|
Partisan
Joined: 27 Jan 2002 Posts: 347
|
I don’t have my Laptop / desktop started with me and I’m at a new client....so all my Supportpac downloads aren’t near me.....don’t go crazy looking for it....Ill eventually remember or get to my downloads of Supportpac over the years....Jason
Using new fangled IPAD Pro with a keyboard at the moment |
|
Back to top |
|
 |
cicsprog |
Posted: Mon Jul 08, 2019 12:23 pm Post subject: |
|
|
Partisan
Joined: 27 Jan 2002 Posts: 347
|
I think its dmpmqlog but might have to use paul’s Version for a stress test type scenario ....I’m at a customer trying to get off the MF...Oh the Humanity...so they want to capture MQ work and ship it to those new fangled MQ’s on distributed so they can stress test.
While PUBSUB might be suggested, never liked hooking Prod to test not to mention the overhead of capturing data for this type of purpose. |
|
Back to top |
|
 |
hughson |
Posted: Mon Jul 08, 2019 3:16 pm Post subject: Re: Reading logs and replaying messages |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
cicsprog wrote: |
There use to be a Supportpac and I believe it got put into the MQ product, the ability to read the MQ logs and rebuild/replay messages.
|
There was Supportpac MO12 (Log Print Utility) which got rolled into the product in V6, and is called CSQ1LOGP.
The log print utility (CSQ1LOGP) on z/OS
I don't know how easy it is to use to replay messages from, but I think it might be what you are thinking of.
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
cicsprog |
Posted: Mon Jul 08, 2019 6:10 pm Post subject: |
|
|
Partisan
Joined: 27 Jan 2002 Posts: 347
|
Darn...well darn memory has failed me. But that’s probably what I was thinking of. I will look at the EXTRACT function and see if that’s workable.
I do appreciate the reply’s as always here.
Jason |
|
Back to top |
|
 |
exerk |
Posted: Mon Jul 08, 2019 11:04 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
rfhutilc to read off copies of the messages to file, do the needful and upload them to distributed? _________________ 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 |
|
 |
elkinsc |
Posted: Tue Jul 09, 2019 8:38 am Post subject: One of our lab exercises does this |
|
|
 Centurion
Joined: 29 Dec 2004 Posts: 138 Location: Indy
|
There is a log replay lab exercise here:
https://github.com/ibm-wsc/mq-wildfire-zosperf
Note that the log extract works by the pageset ID, so if you have multiple queues using persistent messages defined on the same pageset, the extract file will have to be 'culled' (sorted) for the queue you need restored. |
|
Back to top |
|
 |
cicsprog |
Posted: Tue Jul 09, 2019 12:03 pm Post subject: Re: One of our lab exercises does this |
|
|
Partisan
Joined: 27 Jan 2002 Posts: 347
|
elkinsc wrote: |
There is a log replay lab exercise here:
https://github.com/ibm-wsc/mq-wildfire-zosperf
Note that the log extract works by the pageset ID, so if you have multiple queues using persistent messages defined on the same pageset, the extract file will have to be 'culled' (sorted) for the queue you need restored. |
Cool...I will definitely give that a try...when they get me a laptop, and access, and bla bla....onboarding never pleasant.
Thanks so much! |
|
Back to top |
|
 |
|