Do you use BMC’s Control-M job scheduler? Are you a Twitter tweeter? Perhaps you’re looking for a way to get critical job status and messages from CONTROL-M to key staff but aren’t quite big enough (yet) to be able to afford something like Alarmpoint. Maybe you’re like me and just like to tinker with stuff and try new things!
The following perl script lets you setup a shout destination table in Control-M to perform “DO SHOUT” statements to a specific Twitter account. It’s simple, and currently only one-way communication from Control-M to Twitter, but I am working on getting two-way communication setup so that you could do things like reply back from Twitter to re-run a job or ask for the SYSOUT of a job to be emailed to you at a specified address. If you have any questions or suggestions please drop me a line!
Using the Script
Make sure you have Perl installed on your system. You’ll also need to make sure you have the LWP and Data packages available. These are usually installed by default with most Perl installations.
Save the perl script to a directory on the Control-M/Server machine. Now go into ctm_menu and access option #6 (Parameter Customization) -> Option #3 -> Option #1. You are going to setup a new shout destination. It’s a (P)rogram that runs on the (S)erver and you will need to assign it a logical name and specify the path to the perl script.
You’re ready to rock and roll!