IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
  • 1.  Broker Queue depth - Unix

    Posted Thu September 17, 2009 08:27 AM

    Hi,
    I’ve a requirement to check the broker queue depth via unix script.
    Can anyone please let me know the command/file which can be used to write a script to check broker queue depth.

    your response will be highly appreciated.

    Many Thanks
    Rakesh


    #broker
    #Universal-Messaging-Broker
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Broker Queue depth - Unix

    Posted Fri July 27, 2012 04:17 PM

    #!/usr/bin/ksh
    #alert script
    b=5000
    set -A a 'echo "dis q(*) where(curdepth gt 5000)" | runmqsc QMGR_QM | grep CURDEPTH | cut -c13-16'
    set -A c 'echo "dis q(*) where(curdepth gt 5000)" | runmqsc QMGR_QM | grep QUEUE | cut -c10-80 | cut -d ")" -f1
    for i in ${a[@]}
    do
    for j in ${c[@]}
    do
    if [ $i -ge $b ]
    then
    echo “$j queue depth is $i” | mail -s “Queue depth alert” see@hyatt.com
    fi
    done
    done


    #webMethods
    #Universal-Messaging-Broker
    #broker
    #Integration-Server-and-ESB


  • 3.  RE: Broker Queue depth - Unix

    Posted Fri July 27, 2012 07:16 PM

    Any changes need before running script above apart from email portion?

    Also from which location you need to run this script Broker installed location?

    Thanks for the utility script posting in the forum:

    TIA,
    RMG


    #webMethods
    #broker
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB