Automating event-based actions


Using the Perl scripts provided with TrueSight Middleware and Transaction Monitor (TMTM) or your own Perl scripts, you can automate event-based actions.

There are several scripts available to you included in TMTM to help you automate the WebSphere MQ environment. These scripts generally start with ComMQSoftware. Scripts are used in many actions in events.

In particular these Perl scripts are provided in the InstallDir\automation directory, along with the TMTM Event Service software. This version of Perl can be used for event automation or you can continue to use a compatible external copy of Perl (see the install instructions below). It is recommended that the integrated version of Perl be used as future releases might not include the capability to use an external Perl script.

  • ComMqsoftwareAlterQueue.pl: used for changes in MaxQDepth or to inhibit or allow put and gets on queues
  • ComMqsoftwareCtrlChl.pl: used for all channel-related commands.
  • ComMqsoftwareStartQmgr.pl: used to start queue managers, channel initiators, and channel listeners.
  • ComMqsoftwareAlterQMgr.pl: used for changes in MQ event enables on queue managers.

For these automation scripts to run, you must have:

  • A required level of Perl installed on the TrueSight Middleware and Transaction Monitor server. See Perl requirements for event automation for details.
  • TMTM Client Gateway Service (installed by default).

Before modifying any of the scripts discussed in this section, you should save them with a new name and use the newly named copy in the action. This prevents any future enhancements made to the script by BMC from overwriting the modified scripts.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*