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 Views


I _strongly_ recommend automating the verification of all ClearCase Views like I did. I wrote the Perl script below to check each ClearCase View automatically. This script does several basic checks, but here are the six primary features:
  1. For each View that was created over 60 days ago, the script will email the View's owner to renew (backup, delete, re-create, and configure) or delete the View.
  2. For each View that was last accessed over 30 days ago, the script will email the View's owner to delete the View.
  3. If any files are checked out in the View for more than 30 days, then the script will send a reminder email to the View's owner to checkin or uncheckout the list of old checkedout files.
  4. The script will also make sure that each View Storage Partition is not about to run out of disk space.
  5. If a View is too large (200 MB is my soft limit), then the script will ask the View's owner to clean up the View.
  6. Finally, if the View's user account was deleted or de-activated, then the administrators would be emailed a list of Views to be deleted.
Of course, you can change the durations/limits of each requirement to your environment's needs. From my experience, each View should be checked once a week or maybe at least once a month via cron. Here is how to execute this script.

$ check_Views.pl [test]

The "test" argument will only output issues to the screen without emailing other users.


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 20081203

Related Articles
 » ClearCase Support: Automate Checking of ClearCase Server Log Files
 » ClearCase Support: Automate Checking of ClearCase VOBs
 » ClearCase Support: Automate Checking of ClearCase Shipping Bays on VOB Servers