FreeKB - IBM MQ - display tpstatus command
IBM MQ - display tpstatus command

Home > Search


If you are not sure what a Topic is, check out our Getting Started tutorial. These examples are based on Linux.

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.

To display the status of TOPIC1.

echo "display tpstatus (TOPICS/TOPIC1)" | runmqsc MANAGER01

 

Following is an example of what will be displayed.

AMQ8754I: Display topic status details.
  TOPICSTR(TOPICS/TOPIC1)
  ADMIN(TOPIC1)                 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 (TOPICS/TOPIC1) SUBCOUNT" | runmqsc MANAGER01

 

Following is an example of what will be displayed.

AMQ8754I: Display topic status details.
  TOPICSTR(TOPICS/TOPIC1)
  SUBCOUNT(11)

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




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




Comments