Nov 12, 2009

ClearCase Delete Stream on the Server

Thanks my colleague- Heberling, John
He wrote a very helpful script.

Here are the steps:
1, Delete the local view in CCRC
2, use the script /h/clearadm/desc_stream.ksh zhang5_NPAT_R2_4_SP_SPR2 /neo/neoview_pv to see whether there are views or other dependencies on it. Only when all the views or dependencies are deleted, you can delete the stream.
3, use /h/clearadm/rmstream.ksh zhang5_NPAT_R2_4_SP_SPR2 /neo/neoview_pv to delete stream. It will prompt confirmation, you could type in yes.

More details:
a) desc_stream.ksh is the script to run this command:
"cleartool desc stream:zhang5_NPAT_R2_4_SP_SPR@/neo/neoview_pv", because @ sign can't be input in the system.
b) to use the command cleartool, you should add /opt/rational/clearcase/bin to the path. export PATH="/opt/rational/clearcase/bin:$PATH"
c) to log on server, we use: telnet servername..., for example, telnet cacview1, and then logon with your ClearCase user ID and password.

rmstream.ksh is the script to run this command:
cleartool rmstream zhang5_NPAT_R2_4_SP_SPR@/neo/neoview_pv

No comments: