Using CtCmd with Rational ClearQuest Perl scripts for DevOps Code ClearCase integrations

To facilitate integrations between Rational® ClearQuest® and DevOps Code ClearCase®, or integrations with other products, it is useful to be able to obtain information about objects in DevOps Code ClearCase VOBs and PVOBs. From Rational ClearQuest Perl scripts, you can use CtCmd, a Perl module that provides an interface to DevOps Code ClearCase. You can locate the CtCmd Perl module at: http://cpan.org/modules/by-category/03_Development_Support/ClearCase/CtCmd-1.03.tar.gz

In order to use this Perl module in DevOps Code ClearCase triggers for Rational ClearQuest integrations (such as checking in schema changes), and in Rational ClearQuest Perl hook scripts you must build CtCmd on Windows (following the instructions included with the CtCmd kit) and install it to a globally accessible UNC path.

In Using CtCmd for UCM and Rational ClearQuest, there is code to enable using the correct module path based on the platform (OSNAME in the following examples), which allows the hook scripts to pass validation at check in.