by
6,236 16
0
6
4,365
2
Top 1% !
Popular
Famous
Tagged
Specified
OpenSource
Popularity: 2216th place
Created
Modified Apr 5, 2013

Published on:

LicenseMIT_X11
OSLinux

Clearcase: Move mastership

Move mastership from server1(replica_name1) to Server2(replica_name2)
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/973/Clearcase--Move-mastership?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
Creates a default dynamic view (i.e. default config_spec) and set it (cleartool setview <view_name>) Vobs check - Moving in vobs path: cd /vobs/<vobs_name> - Find checkout file, locked elements and triggers on server1. CT=cleartool VOB=`pwd` echo "CHECK CHECKOUT" > log.log cleartool lsco -all -l >> log.log echo "CHECK TRIGGER" >> log.log cleartool lstype -kind trtype >> log.log echo "CHECK FILE LOCKED" >> log.log cleartool lslock -fmt "%Km:%n@$VOB\n" -all vob:$VOB >> log.log - Remove them using: - Undo checkout: Find all views with checkout files: cleartool describe -l vob:<vob tag> Removes view checkout from vobs: cleartool rmview -vob . -uuid <view uuid> - Unlock commands: cleartoolt unlock <label, branch, type> #ct unlock brtype:<branch name> #ct unlock brtype:<label name> - Remove triggers running: #cleartool rmtype -rmall trtype:<.triggers_name> - Check replica running "cleartool lsreplica" commands - Change Mastership running: cleartool chmaster -all -long replica_name2 > ~/log - Check change mastership: cleartool lsmaster -kind attype,branch,brtype,delem,eltype,felem,hlink,hltype,lbtype,slink,vob <replica> Insert in new Clearcase server (server2), the locked files and the triggers removed previously.
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus