clearcaseclearcase-ucmvob

How to check last access ClearCase vob?


Can anyone help me how to find time and date when the ClearCase (UCM) VOBS are last accessed ?


Solution

  • I remember using cleartool lshistory to check the last events date occurred on a vob.

    Something like:

    cleartool lshis -fmt "%Xn\t%Sd\t%e\t%h\t%u \n" -since 01-Oct-2015 -all <vobname>| grep -v lock | head -1 | grep -o '20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
    

    That would give the events on the last 6 months (like "create version", "create branch", ...).
    If there are none, the VOB has not been accessed recently (and I then consider archiving it).

    This apply for any VOB (UCM or non-UCM).