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>
# 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>
$ clearmrgman `cat input.txt`
$ cleartool desc -l `cat input.txt`
>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?
from a ClearCase installation
to the etc
directory on the filer
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:
cleartool find . -version 'created_since(22-Aug.10:00)' –print
Note: Substituting –version with –element give you all the elements
Note1: Substituting –version with –element give you all the elements
Note2: The above gives all versions created on the 22nd Aug.
cleartool find . -type f -exec 'echo desc -fmt \"%n %l\\n\" $CLEARCASE_PN' | cleartool
cleartool find . -type f -exec "cmd /c echo desc -fmt \"%n %l \n\" %CLEARCASE_PN%" | cleartool
cleartool lsco -r '-fmt mklabel <LABEL NAME> \"%n\t%Rf\"\n' | grep reserved | cut -f1 | cleartool
Last updated 27th June 2008