Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000654.html
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">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
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" />
11
12    <title>Status for Andrew DeFaria: Automating Clearcase Installs</title>
13
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" />
17
18    <!--
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/">
22 <rdf:Description
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..."
29     dc:creator=""
30     dc:date="2007-07-19T16:40:48-06:00" />
31 </rdf:RDF>
32 -->
33
34
35    
36
37    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
38 </head>
39 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
40    <div id="container">
41       <div id="container-inner" class="pkg">
42
43          <div id="banner">
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>
47             </div>
48          </div>
49
50          <div id="pagebody">
51             <div id="pagebody-inner" class="pkg">
52                <div id="alpha">
53                   <div id="alpha-inner" class="pkg">
54
55                      <p class="content-nav">
56                         <a href="http://defaria.com/blogs/Status/archives/000653.html">&laquo; 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 &raquo;</a>
59                      </p>
60
61                      <a id="a000654"></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">
66                               <ul>
67   <li>Created auto install script for Linux</li>
68 </ul>
69                            </div>
70                            <div id="more" class="entry-more">
71                               <h2>Automating Clearcase Installs</h2>
72
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>
74
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>
76
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>
78
79 <h3>Running install_release with -echo_cmd_only</h3>
80
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>
82
83 <p>The following is a quick script to install Clearcase 6.x on Redhat systems:</p>
84
85 <div class=code><pre>
86 #!/bin/bash
87 #
88 # Quick script to install Clearcase 6.x on Redhat x86 64 bit
89 #
90 # Andrew@DeFaria.com
91
92 if [ $(id -u) != 0 ]; then
93   echo "ERROR: You must be root to install Clearcase"
94   exit 1
95 fi
96
97 # Define some parameters that might be changing
98 registry_region=cclinux
99 registry_host=cclinux
100 license_host=cclic
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)
104
105 cd $release_area
106
107 # Now install
108 ./install_release      \
109   -nlog                \
110   -rbh Unknown         \
111   -comp
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 \
118   -to /opt/rational    \
119   -rebuild_vnode 0     \
120   -log $logfile        \
121   -level 5             \
122   -from $release_path  \
123   -patch_kernel 0      \
124   -rh $registry_host   \
125   -local               \
126   -model full          \
127   -lh $license_host    \
128   -no_query
129 </pre></div>
130
131 <h3>Notes:</h3>
132
133 <ol>
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>
135
136   <li>I've defined a few variables that might change like the release area, registry host, registry region, etc.</li>
137
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>
139
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>
141 </ol>
142
143                            </div>
144                         </div>
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>
147                         </p>
148                      </div>
149
150                      
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>
155                         </div>
156                         <div class="trackbacks-content">
157                            
158                         </div>
159                      </div>
160                      
161
162                      
163                   </div>
164                </div>
165             </div>
166          </div>
167       </div>
168    </div>
169 </body>
170 </html>