Popular Articles
Globalization of the USA
The Pros and Cons of Capital Punishment
Reasons For and Against Human Cloning
World's Stupidest Game
Latest Articles
Harnessing Energy from Lightning
The Types of Managers
Why People Interrupt
ClearCase Support 31
Subscribe to 
Main Menu
HOME
SAVE HUMANITY
(31)
HELP THE WORLD
(78)
IMPROVE GOVERNMENTS
(65)
PERSONAL DEVELOPMENT
(150)
COMPUTER HELP
(33)
ARCHIVE (all articles)
CONTACT US
DISCLAIMER
PLEASE HELP: DONATE
|
ClearCase Support: Finding Old Views
I was recently asked a question on how to determine when a ClearCase View was created and last used. This is easy to do with this command:
cleartool lsview -pro VIEW_NAME
|
For example:
$ cleartool lsview -pro VIEW_NAME
VIEW_NAME VIEW_STORAGE_DIRECTORY
Created 23-Jun-07.11:10:11 by USERID.GROUP@MACHINE
Last modified 04-May-08.14:57:04 by USERID.GROUP@MACHINE
Last accessed 04-May-08.17:57:34 by USERID.GROUP@MACHINE
Owner: SITE/USERID : rwx (all)
Group: SITE/GROUP : r-x (read)
Other: : r-x (read)
Additional groups: SITE1.GROUP1 SITE2.GROUP2
|
I recommend automating the checking of all ClearCase Views. I wrote a simple Perl script that is automatically executed once a week that does these four basic checks for each ClearCase View.
- For each View that was created over a year ago, the script would email the View’s owner to renew (backup, delete, re-create, and configure) the View.
- For each View that was last accessed over six months ago, the script would email the View’s owner to delete the View.
- If any files were checked out in the View for more than a month, then the script would send a reminder email to the View’s owner to checkin or uncheckout the list of files.
- 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 of each requirement to your environment’s needs.
If you have any other ClearCase questions, please do not hestitate to contact me for free advice.
by Phil B.
|