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 » MQ Long Running Task Scripts

Post new topic  Reply to topic
 MQ Long Running Task Scripts « View previous topic :: View next topic » 
Author Message
bobbee
PostPosted: Mon Apr 03, 2023 11:08 am    Post subject: MQ Long Running Task Scripts Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 541
Location: Tampa

I wrote a shell and Python script to search and display Long Running Tasks with an outstanding LUW. The are available to anyone that wants to use them. Good for when you get that 'Out of Log Space' Message.

https://github.com/rkbroder/MQ-Logic-Unit-of-Work
Back to top
View user's profile Send private message Send e-mail AIM Address
gbaddeley
PostPosted: Mon Apr 03, 2023 3:46 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

Hi Bobbee,

Good work. The 100 lines of bash script code to parse the MQSC output can be done in about 10 lines of awk, but your code is very clear and has comments.

I have a korn shell script (for AIX & Linux) that takes a different approach. It accepts a queue name and type pattern, and gets connection info using "display conn(*) where(objname eq \" qname "\) all"
It then reports on queues, showing all the UOW related attributes, and info on the qmurid, appltag, channel, ip address, userid of who has the queue open, and qstatus info related to uncommitted messages.

It can also produce an "aged log writes" report that sends an email if any UOWs are over a specified age, eg. 10 minutes. This allows action to be taken before there is any impact to the logs.

Long running UOWs were an issue for us about 10 years ago, but in recent times we haven't had any trouble.
_________________
Glenn
Back to top
View user's profile Send private message
hughson
PostPosted: Mon Apr 03, 2023 3:54 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

I'll just leave this here:

Long Running UoWs

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ Long Running Task Scripts
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.