IBM MQ Advance commands for day to day usage

Listing some of the useful MQ advance commands that are useful for the day to day operation and BAU support for any application .

MQ support below filters when we form commands

operator := [ LT | GT | EQ | NE | LE | GE …………… CT | EX | LK | NL | CTG | EXG ]
gt – greater than
lt – less than
eq – equal
ne – not equal
le – less than or equal
ge – greater than or equal

Above mentioned are majorly used ones .

display qs(*) where ( curdepth gt 1) 
------------------------------------
display qs(*) where ( curdepth gt 1)
     1 : display qs(*) where ( curdepth gt 1)
AMQ8450I: Display queue status details.
   QUEUE(SYSTEM.AUTH.DATA.QUEUE)           TYPE(QUEUE)
   CURDEPTH(104)
AMQ8450I: Display queue status details.
   QUEUE(SYSTEM.CHANNEL.SYNCQ)             TYPE(QUEUE)
   CURDEPTH(2)
AMQ8450I: Display queue status details.
   QUEUE(SYSTEM.CHLAUTH.DATA.QUEUE)        TYPE(QUEUE)
   CURDEPTH(3)
AMQ8450I: Display queue status details.
   QUEUE(SYSTEM.CLUSTER.REPOSITORY.QUEUE)
   TYPE(QUEUE)                             CURDEPTH(2)
AMQ8450I: Display queue status details.
   QUEUE(SYSTEM.HIERARCHY.STATE)           TYPE(QUEUE)
   CURDEPTH(2)
AMQ8450I: Display queue status details.
   QUEUE(SYSTEM.RETAINED.PUB.QUEUE)        TYPE(QUEUE)
   CURDEPTH(50)
AMQ8450I: Display queue status details.
   QUEUE(QM2.QL)                           TYPE(QUEUE)
   CURDEPTH(3)

display q(*) where ( type eq qremote )
---------------------------------------
display q(*) where ( type eq qremote )
    10 : display q(*) where ( type eq qremote )
AMQ8409I: Display Queue details.
   QUEUE(QM1.QR)                           TYPE(QREMOTE)
AMQ8409I: Display Queue details.
   QUEUE(SYSTEM.DEFAULT.REMOTE.QUEUE)      TYPE(QREMOTE)
dis chl(*) where ( chltype eq sdr)
-------------------------------------
dis chl(*) where ( chltype eq sdr)
    11 : dis chl(*) where ( chltype eq sdr)
AMQ8414I: Display Channel details.
   CHANNEL(SYSTEM.DEF.SENDER)              CHLTYPE(SDR)
AMQ8414I: Display Channel details.
   CHANNEL(TO.QM1)                         CHLTYPE(SDR)

dis q(*) where ( usage eq xmitq )
----------------------------------
dis q(*) where ( usage eq xmitq )
    12 : dis q(*) where ( usage eq xmitq )
AMQ8409I: Display Queue details.
   QUEUE(QM2.XMITQ)                        TYPE(QLOCAL)
   USAGE(XMITQ)
AMQ8409I: Display Queue details.
   QUEUE(SYSTEM.CLUSTER.TRANSMIT.MODEL.QUEUE)
   TYPE(QMODEL)                            USAGE(XMITQ)
AMQ8409I: Display Queue details.
   QUEUE(SYSTEM.CLUSTER.TRANSMIT.QUEUE)    TYPE(QLOCAL)
   USAGE(XMITQ)
dis chs(*) where ( status ne running )
---------------------------------------
dis chs(*) where ( status ne running )
    23 : dis chs(*) where ( status ne running )
AMQ8417I: Display Channel Status details.
   CHANNEL(TO.QM2)                         CHLTYPE(RCVR)
   CONNAME(192.168.56.101)                 CURRENT
   RQMNAME(QM1)                            STATUS(STOPPING)
   SUBSTATE(RECEIVE)
Display more details about the channel status 
------------------------------------------------
dis chs(*) all
    26 : dis chs(*) all
AMQ8417I: Display Channel Status details.
   CHANNEL(TO.QM2)                         CHLTYPE(RCVR)
   BATCHES(1)                              BATCHSZ(50)
   BUFSRCVD(10)                            BUFSSENT(6)
   BYTSRCVD(1881)                          BYTSSENT(408)
   CHSTADA(2022-05-02)                     CHSTATI(05.43.36)
   COMPHDR(NONE,NONE)                      COMPMSG(NONE,NONE)
   COMPRATE(0,0)                           COMPTIME(0,0)
   CONNAME(192.168.56.101)                 CURLUWID(93A66F62018E2014)
   CURMSGS(0)                              CURRENT
   CURSEQNO(3)                             EXITTIME(0,0)
   HBINT(300)                              INDOUBT(NO)
   JOBNAME(0000000000000000)
   LOCLADDR(::ffff:192.168.56.101(1415))
   LSTLUWID(0000000000000000)              LSTMSGDA(2022-05-02)
   LSTMSGTI(05.43.36)                      LSTSEQNO(0)
   MCASTAT(NOT RUNNING)                    MCAUSER(mqm)
   MONCHL(OFF)                             MSGS(3)
   NPMSPEED(FAST)                          RQMNAME(QM1)
   SECPROT(TLSV12)                         SSLCERTI(CN=QM1,OU=IBM,O=MQ,C=SG)
   SSLCIPH(TLS_RSA_WITH_AES_128_CBC_SHA256)
   SSLKEYDA( )                             SSLKEYTI( )
   SSLPEER(SERIALNUMBER=5E:A7:9B:2B:AC:62:89:CD,CN=QM1,OU=IBM,O=MQ,C=SG)
   SSLRKEYS(0)                             STATUS(STOPPED)
   STOPREQ(NO)                             SUBSTATE( )
   XBATCHSZ(0,0)                           RVERSION(09020005)
   RPRODUCT(MQMM)
AMQ8417I: Display Channel Status details.
   CHANNEL(TO.QM1)                         CHLTYPE(SDR)
   BATCHES(0)                              BATCHSZ(50)
   BUFSRCVD(4)                             BUFSSENT(4)
   BYTSRCVD(352)                           BYTSSENT(352)
   CHSTADA(2022-05-02)                     CHSTATI(05.45.50)
   COMPHDR(NONE,NONE)                      COMPMSG(NONE,NONE)
   COMPRATE(0,0)                           COMPTIME(0,0)
   CONNAME(192.168.56.101(1414))           CURLUWID(CCA66F620192BE13)
   CURMSGS(0)                              CURRENT
   CURSEQNO(0)                             EXITTIME(0,0)
   HBINT(300)                              INDOUBT(NO)
   JOBNAME(000007FE00000001)               LOCLADDR(192.168.56.101(52672))
   LONGRTS(999999999)                      LSTLUWID(0000000000000000)
   LSTMSGDA( )                             LSTMSGTI( )
   LSTSEQNO(0)                             MCASTAT(RUNNING)
   MONCHL(OFF)                             MSGS(0)
   NETTIME(0,0)                            NPMSPEED(FAST)
   RQMNAME(QM1)                            SHORTRTS(10)
   SECPROT(NONE)                           SSLCERTI( )
   SSLCIPH( )                              SSLKEYDA( )
   SSLKEYTI( )                             SSLPEER( )
   SSLRKEYS(0)                             STATUS(RUNNING)
   STOPREQ(NO)                             SUBSTATE(MQGET)
   XBATCHSZ(0,0)                           XMITQ(QM2.XMITQ)
   XQTIME(0,0)                             RVERSION(09020005)
   RPRODUCT(MQMM)
Display channel details which are not in running status 
--------------------------------------------------------

dis chs(*) where ( status ne running ) all
    27 : dis chs(*) where ( status ne running ) all
AMQ8417I: Display Channel Status details.
   CHANNEL(TO.QM2)                         CHLTYPE(RCVR)
   BATCHES(1)                              BATCHSZ(50)
   BUFSRCVD(10)                            BUFSSENT(6)
   BYTSRCVD(1881)                          BYTSSENT(408)
   CHSTADA(2022-05-02)                     CHSTATI(05.43.36)
   COMPHDR(NONE,NONE)                      COMPMSG(NONE,NONE)
   COMPRATE(0,0)                           COMPTIME(0,0)
   CONNAME(192.168.56.101)                 CURLUWID(93A66F62018E2014)
   CURMSGS(0)                              CURRENT
   CURSEQNO(3)                             EXITTIME(0,0)
   HBINT(300)                              INDOUBT(NO)
   JOBNAME(0000000000000000)
   LOCLADDR(::ffff:192.168.56.101(1415))
   LSTLUWID(0000000000000000)              LSTMSGDA(2022-05-02)
   LSTMSGTI(05.43.36)                      LSTSEQNO(0)
   MCASTAT(NOT RUNNING)                    MCAUSER(mqm)
   MONCHL(OFF)                             MSGS(3)
   NPMSPEED(FAST)                          RQMNAME(QM1)
   SECPROT(TLSV12)                         SSLCERTI(CN=QM1,OU=IBM,O=MQ,C=SG)
   SSLCIPH(TLS_RSA_WITH_AES_128_CBC_SHA256)
   SSLKEYDA( )                             SSLKEYTI( )
   SSLPEER(SERIALNUMBER=5E:A7:9B:2B:AC:62:89:CD,CN=QM1,OU=IBM,O=MQ,C=SG)
   SSLRKEYS(0)                             STATUS(STOPPED)
   STOPREQ(NO)                             SUBSTATE( )
   XBATCHSZ(0,0)                           RVERSION(09020005)
   RPRODUCT(MQMM)
There are lot more .....

Related Posts

Leave a Reply

Your email address will not be published.