Bootstrap FreeKB - IBM MQ - Show topic status using the display tpstatus command
IBM MQ - Show topic status using the display tpstatus command

Updated:   |  IBM MQ articles

In this example, MANAGER01 is the name of the queue manager. If you are not sure the name of the queue manager, use the dspmq command to display the queue managers. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.

You will probably first want to issue the display topic command to get the topic string.

echo "display topic ('updates') TOPICSTR" | runmqsc MANAGER01

 

Something like this should be returned.

AMQ8754I: Display topic status details.
   TOPICSTR(event/updates)

 

To display the status of the "updates" topic.

echo "display tpstatus ('event/updates')" | runmqsc MANAGER01

 

Following is an example of what will be displayed.

AMQ8754I: Display topic status details.
  TOPICSTR(event/updates)
  ADMIN(updates)                CLUSTER( )
  COMMINFO(SYSTEM.DEFAULT.COMMINFO.MULTICAST)
  MDURMDL(SYSTEM.DURABLE.MODEL.QUEUE)
  MNDURMDL(SYSTEM.NDURABLE.MODEL.QUEUE)
  CLROUTE(NONE)                 DEFPSIST(NO)
  DEFPRTY(0)                    DEFPRESP(SYNC)
  DURSUB(YES)                   PUB(ENABLED)
  SUB(ENABLED)                  PMSGDLV(ALLDUR)
  NPMSGDLV(ALLAVAIL)            RETAINED(NO)
  MCAST(DISABLED)               PUBCOUNT(0)
  SUBCOUNT(11)                  PUBSCOPE(ALL)
  SUBSCOPE(ALL)                 USEDLQ(YES)

 

To display the status of a particular paramater in the topic, such as the number of active subscribers.

echo "display tpstatus ('event/updates') SUBCOUNT" | runmqsc MANAGER01

 

Following is an example of what will be displayed.

AMQ8754I: Display topic status details.
  TOPICSTR(event/updates)
  SUBCOUNT(11)

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


October 24 2020 by Sampath komati
Which is very helpful 🙂

Add a Comment


Please enter 2fd7f6 in the box below so that we can be sure you are a human.