homeHome  |   contactContact  |   sitemapSite Map
Soft
- is your software and documentation
Asset - is something that must be protected
Management - is what we do
Enterprise - is the capability
Computing - is the power
Services - are what we provide
     
Top Tips
How to do a bulk checkin in UNIX using the lschekout command
Improve the speed of your cleartool ... -exec commands by echoing the commands into cleartool shell
Get detailed information on an object
get detailed oplog information for repliacs contained in a VOB's database
If you see the multitool: Error. Could not determine synchronisation mode try running the rgy_upgrade utility against the VOB registry tag
A quick way of adding more secondary groups to a view’s group list in UNIX and Linux
Did you know in can cat/pipe files containing a list of filenames into ClearCase commands
running the chown_pool and chown_container on the remote NAS device
find all the version created since a certain date and time
find all the versions created between two dates
Get at list of the filename and labels on all the LATEST versions selected by the current view
Label all CHECKEDOUT Reserved files
Useful Links
ClearCase Addins and plugins (Perl scripts etc...)

You can do a bulk checkin of all checked out files by using the lscheckout with the -fmt option

cleartool lsco -r -fmt 'ci -c "<comment>" %n\n' | cleartool

Note: Use the -identical switch if you want to checkin files that have not been changed. Alternatively the above command as is and then rerun with a cleartool unco as follows

cleartool lsco -r -fmt 'unco -rm %n\n' | cleartool

You can increase the speed of a –exec cleartool command (up to 4 x faster) by echoing the subcommand into cleartool shell

UNIX/Linux (use –exec ‘echo <cleartool subcommand> $CLEARCASE_PN | cleartool )

cleartool find . –type f –exec ‘echo desc –fmt \”%n %d\\n\” $CLEARCASE_PN’ | cleartool

Windows (use –exec “cmd /c echo <cleartool subcommand> %CLEARCASE_PN%“ | cleartool)

cleartool find . -type f -exec "cmd /c echo desc -fmt \"%n %d \n\" CLEARCASE_PN%" | cleartool

You can get detailed information on an objects (source/cleartext containers, etc…) by running “cleartool dump”

cleartool dump –l <object_selector>

You can get detailed oplog information for repliacs contained in a VOB's database by running the "multitool dumpoplog"

multitool dumpoplog –l -vreplica samecs

If you see the multitool: Error. Could not determine synchronisation mode try running the rgy_upgrade utility against the VOB registry tag

/opt/rational/clearcase/<archtecture>/etc/rgy_upgrade –tag <vob tag>

You can add more secondary groups to a view’s group list in UNIX and Linux by:

           # Changing to the .identity directory of the view you wish to add the groups to

         $ cd <view storage path>/.identity

         # Make the group you want to add to the view your current shells primary group (must be a member of the    group to do this)

           $ newgrp <group to be added>

 # Create a copy of the existing gid entry, which has special SGID(Set GID) permissions, to a group.<GID> representation of the group you wish to add to the view.

 # (i.e. cp gid group.25469)

           $ cp gid group.<GID of group to be added>

Did you know in can cat/pipe files containing a list of filenames into ClearCase commands

UNIX/Linux:

$ clearmrgman `cat input.txt`

$ cleartool desc -l `cat input.txt`

Windows:

>cleartool ls < input.txt

Note: This can be useful if you have a large number of files in one or more locations. Simple pipe their pathnames into a file, edit the file, if you wish to remove the files you don’t want to process, then redirect the file into the ClearCase command.

In a ClearCase NAS environment if you change the primary group or owner of a VOB you are instructed  to run the chown_pool and chown_container on the remote NAS device. How do I do this?

Copy <clearcase home>/etc/chown_pool from a ClearCase installation to the etc directory on the filer
run ./chown_pool <vob_owner>.<vob_group> <stg_pool_dir>        
  
Copy <
clearcase home>/etc/chown_container from a ClearCase installation to the etc directory on the filer
run ./chown_container <vob_owner>.<vob_group> <stg_pool_dir> 

Note1: <stg_pool_dir> = 3 locations <vob storage>/s/sdft  <vob storage>/d/ddft <vob storage>/c/cdft (s = storage, d = derived object, c= cleartext)

Note2: chown_pool and chown_container are not currently supported for Linux. Workaround: Edit /opt/rational/clearcase/etc/chown_pool, and add the following lines into the cases statement:

Linux*)
CD=cd
FIND=find
ECHO=echo
SILENT_GREP="egrepp -q"
;;


Edit
/opt/rational/clearcase/etc/chown_container, and add the following lines into the cases statement:

Linux*)
CHOWN=chown
CHMOD=chmod
ECHO=echo
SILENT_GREP="egrep -q"
AWK=awk
;;

You can find all the version created since a certain date and time by using

cleartool find . -version 'created_since(22-Aug.10:00)' –print

Note: Substituting –version with –element give you all the elements

You can find all the versions created between two dates using:

cleartool find . -version 'created_since(22-Aug)&& !created_since(23-Aug) ' -print  

Note1: Substituting –version with –element give you all the elements

Note2: The above gives all versions created on the 22nd Aug.

Get at list of the filename and labels on all the LATEST versions selected by the current view

UNIX:

cleartool find . -type f -exec 'echo desc -fmt \"%n %l\\n\" $CLEARCASE_PN' | cleartool

Windows:

cleartool find . -type f -exec "cmd /c echo desc -fmt \"%n %l \n\" %CLEARCASE_PN%" | cleartool

Label all CHECKEDOUT Reserved filers

UNIX:

cleartool lsco -r '-fmt mklabel <LABEL NAME> \"%n\t%Rf\"\n' | grep reserved | cut -f1 | cleartool

 Last updated 27th June 2008

 


 

   
Copyright © 2008. SAMECS®Ltd .All Rights Reserved. Note: webpage's are designed to be viewed at 1024x768 as a minimum for best effect.

This website is published "as is". There is no warranty of any kind (express or implied) as to the operation of our site, the accuracy of the information or the services or products referred to on it. All warranties are excluded as far as permitted at law. Neither we nor any third party will be liable for any losses or damage that may result from use of the website or as a consequence of any inaccuracies in, or any omissions from, the information which it contains.