Wednesday, December 08, 2004
ClearCase
1) Get Cliear Case from Software Tracker, remember to note reg-key
2) start installation by setup as usual
3) Configuring ClearCase for use
ClearCase Installation -Clearcase 6.0 (San Jose and Boxborough)
For San Jose distribution is available at file://warehouse/em_storage/cwtools/clearcase6.0/San-jose
For Boxborough distribution is available at file://bxb-filer02b/projects/cwtools/clearcase6.0/boxborough/nt_i386
Run setup.exe and follow the setup, clearcase will be installed and configured automatically.
Uninstall ClearCase completely if you need to reinstall it for any reason and reboot the machine.For all other site Visit Softtracker to install ClearCase 4.2.
·Select D:\atria or D:\atria directory for installation
·Select Standard Configuration option for installation
·Click Next to continue
·Select Finish to complete the installation
Decline to restart the machine
In my case i installed ClearCase in C:\ProgramFiles so i had to do things differently, which i will point as i go along.
4) Entering Lisence/Server information
- Start -> Settings -> Control Panel-> ClearCase ->Registry Refer the table above to enter the registry server, Windows Region and Peer UNIX Region. Click OK.- Click on Licensing Tab and enter the License host for your site.
The following info will be needed and can be got from the local web page
Site Name
Registry/View Server
Unix Registry Region
Windows Registry Region
License Host
Tools Root
5) Alias cleartool command (optional)
To save on the number of keystrokes you type, we highly recommend that you make a copy of the cleartool command or make an alias with a doskey macro
C:\> doskey ct=D:\atria\bin\cleartool $* (This i did not do as i installed differently as mentioned earliear)
OR make a copy of the cleartool.exe command as ct.exe.
C:\> cd
C:\bin\atria\bin
C:\> cp cleartool.exe ct.exe ( I did only this but under C:\ProgramFiles\ClearCase\bin where my clearcase is installed)
6) Environment Setting for Tools
Start -> Run file://TOOLS-ROOT/setup.batThe above command will setup the path on your Windows2000 Desktops. - this did not work for me so i manually set the env variables mentioned below, by going into MyComputers/EnvironmentVariables
NOTE: If your user path is big, it may not be updated. In this case you will need to manually add file://TOOLS-ROOT/bin/pc at the very beginning of your user path.)
set CWTOOLS to TOOLS-ROOT (refer the table above for your site specific partition)
The path for the TOOLS-ROOT is file:////warehouse/em_storage/cwtools
(The table gives the path for the TOOS-ROOT - from local web page)
set CWSCRATCH to D:\views (need to sed manually, i set these 2 envvariables manually)
IMP : Reboot the machine after ClearCase Installation.
7) Share the \views Directory
Double click on My Computer,
open D:, right click on the views folder, and select "Sharing..." from the menu. Share d:\views open to everyone.
AFTER INSTALLATION IS DONE -
1) Create a View AND DO NOT LOAD ANY ELEMENTS WHEN THE load elements dialog box pops up, just click cancel on the load element dialog box and finish creating a empty view.
2) Loading Rules
Start>ProgramFiles>Ratioanl ClearCase>ClearCase Home Base>
Click on Views Tab, Click on "Edit View Properties" button, Select on the SnapShot tab and slect
your snapshot view you just created in previous step and click OK, A dialog will pop-up. Click on the load rules tab and use the following load rules for the view
ex -
load \enm_sybase\SYBSasa9\NT
load \enm_athena
load \enm_utility
load \enm_jdk\jdk142-NT
In case if you do not want to use snapshot view (i used snapshot view) you need to mount the VOBs yourself.
NOTE - you can change the load rules any time by going to the "Properties of View" and clicking on "Load Rules" tab and editing the load rules.
Working With Branches - in Clear Case
What Is a Branch?
ClearCase uses branches to organize the different versions of files, directories and objects that are placed under version control. A branch is an object that specifies a linear sequence of versions of an element.
The entire set of an element’s versions is called a version tree. By default, ClearCase provides for every single element in a VOB one principal branch, called the main branch. This main branch may also have subbranches.
A branch type is a type object that is used to identify a parallel line of development for an element. Each branch in an element’s version tree is an instance of a branch type that exists in that element’s VOB. -->
How to include a existing Branch into your existion
Step 1) right click on your view in the explorer and go to clearcase in the drop down list and select properties, under "properties of View" there are two tabs Load Rules and Config Specs,
Click on config Specs and you will find some specs allready there
element * CHECKEDOUT
element * /main/LATEST
load \enm_sybase\SYBSasa9\NT
load \enm_athena
load \enm_utility
load \enm_jdk\jdk142-NT
you need to add the branch information as follwos in to this sopecs as shown below by clicking the Edit button at the bottom of the View Properties window
element * CHECKEDOUT
element \enm_athena\... ...\actValidate\LATEST
element \enm_athena\... \main\LATEST -mkbranch actValidate
element * /main/LATEST
load \enm_sybase\SYBSasa9\NT
load \enm_athena
load \enm_utility
load \enm_jdk\jdk142-NT
one you click apply button after editing the specs the view is updated and the elements (i.e. the files and foldres) under this branch "actValidate" in this case will appear in your view.
Important NOTE - in Cisco NMTG, the Release Engineering had put some scripts to be triggered when code were checked in using clasr case, for this reason in-order to check-in code one needed install MKS which is a software tool, that will simulate the snv 0f UNIX on wildows, which will be used to run those perl scripts that do some validation b4 it allows us to check in the code.