Bootstrap FreeKB - IBM MQ - Disable a topic
IBM MQ - Disable a topic

Updated:   |  IBM MQ articles

There is not command along the lines of disable topic that can be used to disable an IBM MQ topic. However, the alter topic command can be used to alter a topic. In this example, the topic named TOPIC01 in the queue manager named MANAGER01 is updated so that PUB (publish) and SUB (subscribe) are disabled, which effectively prevents the topic from being used.

echo "alter topic (TOPIC01) PUB (DISABLED) SUB (DISABLED)" | runmqsc MANAGER01

 

If the topic is successfully altered, something like this should be displayed.

AMQ8691I: IBM MQ topic changed.

 

The display topic command can be used to view the configuration of the topic.

echo "display topic (TOPIC01)" | runmqsc MANAGER01

 

Something like this should be returned, where PUB and SUB are now disabled.

AMQ8633I: Display topic details.
   TOPIC(TOPIC01)                          TYPE(LOCAL)
   TOPICSTR(events/updates)
   DESCR(Hello World)
   CLUSTER( )                              CLROUTE(DIRECT)
   DURSUB(ASPARENT)                        PUB(DISABLED)
   SUB(DISABLED)                           DEFPSIST(ASPARENT)
   DEFPRTY(ASPARENT)                       DEFPRESP(ASPARENT)
   ALTDATE(2019-01-07)                     ALTTIME(14.55.34)
   PMSGDLV(ASPARENT)                       NPMSGDLV(ASPARENT)
   PUBSCOPE(ASPARENT)                      SUBSCOPE(ASPARENT)
   PROXYSUB(FIRSTUSE)                      WILDCARD(PASSTHRU)
   MDURMDL( )                              MNDURMDL( )
   MCAST(ASPARENT)                         COMMINFO( )
   USEDLQ(ASPARENT)                        CUSTOM( )

 




Did you find this article helpful?

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



Comments


Add a Comment


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