Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.



ClearCase Support: Automate Checking of ClearCase Server Log Files


On a daily basis, I automatically check all of the ClearCase log files for NEW error and warning messages on each of the ClearCase VOB and Views servers that I am responsible for. I accomplish this by using a simple UNIX Perl script that can be found down below. Here are the two primary features of this script:
  1. Reports all new error messages in any ClearCase log file, since the last time this script was executed.
  2. Reports all new warning messages in any ClearCase log file, since the last time this script was executed.
From my experience, I recommend running this script about once a day via cron on each VOB and View server that you have. I also recommend manually running this script when users are reporting server problems.


Here is how to execute this script.

$ check_clearcase_logs.pl

You can download this Perl script here, or you can copy-n-paste from here:



This script was written for www.philforhumanity.com.

by Phil for Humanity
on 20081210

Related Articles
 » ClearCase Support: Automate Checking of ClearCase VOBs
 » ClearCase Support: Automate Checking of ClearCase Shipping Bays on VOB Servers
 » ClearCase Support: Automate Checking of ClearCase Views