1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
12 <title>Status for Andrew DeFaria: Automating Clearcase Installs</title>
14 <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/Status/archives/000653.html" title="Deliver build changes" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/000655.html" title="PHP Web/Clearquest install/cq_setup.csh" />
19 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
21 xmlns:dc="http://purl.org/dc/elements/1.1/">
23 rdf:about="http://defaria.com/blogs/Status/archives/000654.html"
24 trackback:ping="http://defaria.com/mt/mt-tb.cgi/41"
25 dc:title="Automating Clearcase Installs"
26 dc:identifier="http://defaria.com/blogs/Status/archives/000654.html"
27 dc:subject="General Dynamics"
28 dc:description=" Created auto install script for Linux..."
30 dc:date="2007-07-19T16:40:48-06:00" />
37 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
39 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
41 <div id="container-inner" class="pkg">
44 <div id="banner-inner" class="pkg">
45 <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
46 <h2 id="banner-description">Searchable status reports and work log</h2>
51 <div id="pagebody-inner" class="pkg">
53 <div id="alpha-inner" class="pkg">
55 <p class="content-nav">
56 <a href="http://defaria.com/blogs/Status/archives/000653.html">« Deliver build changes</a> |
57 <a href="http://defaria.com/blogs/Status/">Main</a>
58 | <a href="http://defaria.com/blogs/Status/archives/000655.html">PHP Web/Clearquest install/cq_setup.csh »</a>
62 <div class="entry" id="entry-654">
63 <h3 class="entry-header">Automating Clearcase Installs</h3>
64 <div class="entry-content">
65 <div class="entry-body">
67 <li>Created auto install script for Linux</li>
70 <div id="more" class="entry-more">
71 <h2>Automating Clearcase Installs</h2>
73 <p>Often you want to easily and quickly be able to install Clearcase on systems. Of course, there are lots of considerations, hence lots of parameters to consider. IBM/Rational's solution to this is <i>install_release</i> which is really just a script that calls <i>inst_rls</i>, yet another Perl script, to do the installation. As it does it prompts for parameters and performs the install. But it would be nice to be able to run through the prompts once, answering all the questions for a batch of similarly configured machines, then run that install on those machines.</p>
75 <p>Now IBM/Rational even thought of this and <i>install_release</i> has a facility to perform multiple installs remotely to a bunch of machines. But you may not have all of those machines up and running nor identified.</p>
77 <p>Or you may wish to automate the process yourself, scripting a solution that queries other things to determine exactly which type of install to do.</p>
79 <h3>Running install_release with -echo_cmd_only</h3>
81 <p>While no longer documented, running <i>install_release</i> with the parameter -echo_cmd_only causes <i>install_release</i> to run through all of the prompts and then it just spits out the full command line that will perform the install as specified. This command line can then be used as the basis for your own automation.</p>
83 <p>The following is a quick script to install Clearcase 6.x on Redhat systems:</p>
88 # Quick script to install Clearcase 6.x on Redhat x86 64 bit
92 if [ $(id -u) != 0 ]; then
93 echo "ERROR: You must be root to install Clearcase"
97 # Define some parameters that might be changing
98 registry_region=cclinux
101 release_path=/net/cclinux/opt/clearcase/ccrel6.0_pXX_rhat/2003.06.00/rhat_x86
102 release_area=$release_path/clearcase/install
103 logfile=/tmp/Rational_install.$(date +%y%m%d.%M.%S)
112 ratl_perl,atria_perl,atria_install,atria_basement,atria_cplus_shlib,
113 atria_base,CC_base,atria_X11_base,CC_client,atria_server,
114 atria_cplus_base,atria_gui,CC_doc,CC_bld_client,CC_vob_svr,
115 CC_view_svr,CC_int_client,CC_gui_client,CC_cnv_client,CC_MIN_STD,
116 CC_ONLY_SERVER,MS_shipping_server,CC_FULL,MS_all,MS_FULL \
117 -rr $registry_region \
122 -from $release_path \
134 <li>I inserted a little check at the top to make sure you're root when you run this script. You need to be root to install Clearcase</li>
136 <li>I've defined a few variables that might change like the release area, registry host, registry region, etc.</li>
138 <li>Needed to add -no_query to get this install script to not stop querying for further options. This has been observed on Linux only.</li>
140 <li>All -comp components need to specified on one line, separated by comma with no spaces. It has been broken up above for readability purposes only.</li>
145 <p class="entry-footer">
146 <span class="post-footers">Posted by on July 19, 2007 4:40 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000654.html">Permalink</a>
151 <div class="trackbacks">
152 <h3 id="trackback" class="trackbacks-header">TrackBack</h3>
153 <div id="trackbacks-info">
154 <p>TrackBack URL for this entry:<br />http://defaria.com/mt/mt-tb.cgi/41</p>
156 <div class="trackbacks-content">