MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

  • 1.  start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Thu July 27, 2023 11:20 AM

    Hello MQ community users,

    I would appreciate if you could cross-check and validate the attached start/stop mqm scripts  which aim to start/stop smoothly Production QMs.

    Actually I would pinpoint on two commands (arguments) that make me skeptical :

    1) endmqm -i (immediate flag) instead of -c or -w for controlled QM shutdown  

    2) kill -9  (i think it might be risky in terms of brutal/abnormal mq process termination

    Any advise will be much appreciated.

    Chers, Nick.

      



    ------------------------------
    NICK DAKORONIAS
    Application Integration & Middleware Solution Certified Specialist
    Kyndryl
    Athens
    ------------------------------

    Attachment(s)

    sh
    startmq.sh   748 B 1 version
    sh
    stopmq.sh   1 KB 1 version


  • 2.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Thu July 27, 2023 03:18 PM

    Have you looked into the "-t" and "-tp" options on strmqm ? 

    These options were not available on earlier versions of MQ but have now been around for a couple of years.



    ------------------------------
    Andrew Hickson
    ------------------------------



  • 3.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Fri July 28, 2023 03:36 AM

    Sorry, been away too long.

    -t/-tp options are on endmqm !



    ------------------------------
    Andrew Hickson
    ------------------------------



  • 4.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Fri July 28, 2023 07:35 AM

    Are they advertized in endmqm -?



    ------------------------------
    Francois Brandelik
    ------------------------------



  • 5.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Fri July 28, 2023 11:51 AM
    Edited by NICK DAKORONIAS Fri July 28, 2023 11:57 AM

    Hi Andrew, 

    Thanks for the tip, but where are these flags posted and described?

    For sure, they are not listed at global IBM Knowledge Center article for "strmqm" (v9.3) -> https://www.ibm.com/docs/en/ibm-mq/9.3?topic=reference-strmqm-start-queue-manager 

    nor at https://www.ibm.com/docs/en/ibm-mq/9.1?topic=reference-endmqm-end-queue-manager#q083320_

    Btw, can you pls explain their functionality, as well as, whether both apply on earlier MQ ver 9.1.0.x (LTS) build used in subjected case ?

    Thanks for your time

    Rgds, Nick.



    ------------------------------
    NICK DAKORONIAS
    Application Integration & Middleware Solution Certified Specialist
    Kyndryl
    Athens
    ------------------------------



  • 6.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Fri July 28, 2023 12:01 PM

    These flags are for endmqm :

    endmqm (end queue manager)

    Ibm remove preview
    endmqm (end queue manager)
    Stop a queue manager or switch to a standby queue manager or to a replica queue manager.
    View this on Ibm >



    ------------------------------
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    #IBMChampion
    ------------------------------



  • 7.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Fri July 28, 2023 12:18 PM

    Hi, Luc, 

    I was in a rush to respond to Andrew's initial post, and didn't catch his later post for "endmqm".

    In any case according to IBM Knowledge Center both article  -> https://www.ibm.com/docs/en/ibm-mq/9.1?topic=reference-endmqm-end-queue-manager

    both of these flags apply on MQ version 9.1.4 and later.  

    Unfortunately al these QMs are hosted on (AIX) MQ bulids ver 9.1.0.2 - 9.1.0.4 LTS so they  are not applicable in our case.

    There is a plan agreed with customer to upgrade those builds till the end of this year.

    Btw, I have tried endmqm -? on another AIX MQ build ver 9.3.0.0 and both of these flags (-t, -tp) are still not advertised...

    Any idea, why?

    Rgds, Nick. 

     



    ------------------------------
    NICK DAKORONIAS
    Application Integration & Middleware Solution Certified Specialist
    Kyndryl
    Athens
    ------------------------------



  • 8.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Sat July 29, 2023 06:00 AM

    I'm afraid the missing -t and -tp options in response to endmqm -? are my fault, in that I implemented these options and I appear to have forgotten to add the new options to the endmqm help message. Unfortunately it will now require an APAR to have this fixed in the service stream and being out of that loop it's not something I can raise.



    ------------------------------
    Andrew Hickson
    ------------------------------



  • 9.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Mon July 31, 2023 04:11 AM

    The -t and -tp options have been added to the endmqm -? help text as of 9.3.0.2 (and 9.2.0.7) under APAR IT41391: https://www.ibm.com/support/pages/apar/IT41391



    ------------------------------
    Chris Leonard
    ------------------------------



  • 10.  RE: start/stop mqm scripts cross-check & validate -> endmqm -i vs -c & kill -9 for brutal process termination

    Posted Tue August 01, 2023 09:21 AM

    Many thanks for keeping us posted of this. 



    ------------------------------
    NICK DAKORONIAS
    Application Integration & Middleware Solution Certified Specialist
    Kyndryl
    Athens
    ------------------------------