Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2007_07_15.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: July 15, 2007 - July 21, 2007 Archives</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/week_2007_07_08.html" title="July  8, 2007 - July 14, 2007" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2007_07_22.html" title="July 22, 2007 - July 28, 2007" />
17 </head>
18 <body class="layout-one-column">
19    <div id="container">
20       <div id="container-inner" class="pkg">
21
22          <div id="banner">
23             <div id="banner-inner" class="pkg">
24                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25                <h2 id="banner-description">Searchable status reports and work log</h2>
26             </div>
27          </div>
28
29          <div id="pagebody">
30             <div id="pagebody-inner" class="pkg">
31                <div id="alpha">
32                   <div id="alpha-inner" class="pkg">
33                      
34                      <p class="content-nav">
35                         <a href="http://defaria.com/blogs/Status/archives/week_2007_07_08.html">&laquo; July  8, 2007 - July 14, 2007</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2007_07_22.html">July 22, 2007 - July 28, 2007 &raquo;</a>
38                      </p>
39                      
40                      
41                      <!--
42 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
43          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
44          xmlns:dc="http://purl.org/dc/elements/1.1/">
45 <rdf:Description
46     rdf:about="http://defaria.com/blogs/Status/archives/week_2007_07_15.html#entry-000654"
47     trackback:ping="http://defaria.com/mt/mt-tb.cgi/41"
48     dc:title="Automating Clearcase Installs"
49     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_07_15.html#entry-000654"
50     dc:subject="General Dynamics"
51     dc:description=" Created auto install script for Linux..."
52     dc:creator=""
53     dc:date="2007-07-19T16:40:48-06:00" />
54 </rdf:RDF>
55 -->
56
57
58                      <h2 class="date-header">July 19, 2007</h2>
59                      <a id="a000654"></a>
60                      <div class="entry" id="entry-654">
61                         <h3 class="entry-header">Automating Clearcase Installs</h3>
62                         <div class="entry-content">
63                            <div class="entry-body">
64                               <ul>
65   <li>Created auto install script for Linux</li>
66 </ul>
67                               
68                               <h2>Automating Clearcase Installs</h2>
69
70 <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>
71
72 <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>
73
74 <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>
75
76 <h3>Running install_release with -echo_cmd_only</h3>
77
78 <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>
79
80 <p>The following is a quick script to install Clearcase 6.x on Redhat systems:</p>
81
82 <div class=code><pre>
83 #!/bin/bash
84 #
85 # Quick script to install Clearcase 6.x on Redhat x86 64 bit
86 #
87 # Andrew@DeFaria.com
88
89 if [ $(id -u) != 0 ]; then
90   echo "ERROR: You must be root to install Clearcase"
91   exit 1
92 fi
93
94 # Define some parameters that might be changing
95 registry_region=cclinux
96 registry_host=cclinux
97 license_host=cclic
98 release_path=/net/cclinux/opt/clearcase/ccrel6.0_pXX_rhat/2003.06.00/rhat_x86
99 release_area=$release_path/clearcase/install
100 logfile=/tmp/Rational_install.$(date +%y%m%d.%M.%S)
101
102 cd $release_area
103
104 # Now install
105 ./install_release      \
106   -nlog                \
107   -rbh Unknown         \
108   -comp
109 ratl_perl,atria_perl,atria_install,atria_basement,atria_cplus_shlib,
110 atria_base,CC_base,atria_X11_base,CC_client,atria_server,
111 atria_cplus_base,atria_gui,CC_doc,CC_bld_client,CC_vob_svr,
112 CC_view_svr,CC_int_client,CC_gui_client,CC_cnv_client,CC_MIN_STD,
113 CC_ONLY_SERVER,MS_shipping_server,CC_FULL,MS_all,MS_FULL   \
114   -rr $registry_region \
115   -to /opt/rational    \
116   -rebuild_vnode 0     \
117   -log $logfile        \
118   -level 5             \
119   -from $release_path  \
120   -patch_kernel 0      \
121   -rh $registry_host   \
122   -local               \
123   -model full          \
124   -lh $license_host    \
125   -no_query
126 </pre></div>
127
128 <h3>Notes:</h3>
129
130 <ol>
131   <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>
132
133   <li>I've defined a few variables that might change like the release area, registry host, registry region, etc.</li>
134
135   <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>
136
137   <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>
138 </ol>
139
140                               
141                               <p class="entry-footer">
142                                  <span class="post-footers">Posted by  at  4:40 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000654.html">Permalink</a>
143                                  
144                                  | <a href="http://defaria.com/blogs/Status/archives/000654.html#trackback">TrackBacks (0)</a>
145                               </p>
146                            </div>
147                         </div>
148                      </div>
149                      
150                      <!--
151 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
152          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
153          xmlns:dc="http://purl.org/dc/elements/1.1/">
154 <rdf:Description
155     rdf:about="http://defaria.com/blogs/Status/archives/week_2007_07_15.html#entry-000653"
156     trackback:ping="http://defaria.com/mt/mt-tb.cgi/40"
157     dc:title="Deliver build changes"
158     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_07_15.html#entry-000653"
159     dc:subject="General Dynamics"
160     dc:description=" Delivered changed to build (removing checking out of Clearcase elements during build) Investigated how ranweb is set up and documented differences in the menus Wrote RAN.php which could be used to do the menus in a a consistent form..."
161     dc:creator=""
162     dc:date="2007-07-19T11:12:02-06:00" />
163 </rdf:RDF>
164 -->
165
166
167                      
168                      <a id="a000653"></a>
169                      <div class="entry" id="entry-653">
170                         <h3 class="entry-header">Deliver build changes</h3>
171                         <div class="entry-content">
172                            <div class="entry-body">
173                               <ul>
174   <li>Delivered changed to build (removing checking out of Clearcase elements during build)</li>
175
176   <li>Investigated how ranweb is set up and documented differences in the menus</li>
177
178   <li>Wrote RAN.php which could be used to do the menus in a a consistent form</li>
179 </ul>
180                               
181                               <p class="entry-footer">
182                                  <span class="post-footers">Posted by  at 11:12 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000653.html">Permalink</a>
183                                  
184                                  | <a href="http://defaria.com/blogs/Status/archives/000653.html#trackback">TrackBacks (0)</a>
185                               </p>
186                            </div>
187                         </div>
188                      </div>
189                      
190                      <!--
191 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
192          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
193          xmlns:dc="http://purl.org/dc/elements/1.1/">
194 <rdf:Description
195     rdf:about="http://defaria.com/blogs/Status/archives/week_2007_07_15.html#entry-000652"
196     trackback:ping="http://defaria.com/mt/mt-tb.cgi/39"
197     dc:title="Help Desk Cleanup"
198     dc:identifier="http://defaria.com/blogs/Status/archives/week_2007_07_15.html#entry-000652"
199     dc:subject="General Dynamics"
200     dc:description=" Cleaned up and closed several help desk tickets Delivered and closed RAX_LMC WOR Worked with Kirk on installing Clearcase on Linux servers...."
201     dc:creator=""
202     dc:date="2007-07-18T16:25:16-06:00" />
203 </rdf:RDF>
204 -->
205
206
207                      <h2 class="date-header">July 18, 2007</h2>
208                      <a id="a000652"></a>
209                      <div class="entry" id="entry-652">
210                         <h3 class="entry-header">Help Desk Cleanup</h3>
211                         <div class="entry-content">
212                            <div class="entry-body">
213                               <ul>
214   <li>Cleaned up and closed several help desk tickets</li>
215
216   <li>Delivered and closed RAX_LMC WOR</li>
217
218   <li>Worked with Kirk on installing Clearcase on Linux servers.</li>
219 </ul>
220                               
221                               <p class="entry-footer">
222                                  <span class="post-footers">Posted by  at  4:25 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000652.html">Permalink</a>
223                                  
224                                  | <a href="http://defaria.com/blogs/Status/archives/000652.html#trackback">TrackBacks (0)</a>
225                               </p>
226                            </div>
227                         </div>
228                      </div>
229                      
230                   </div>
231                </div>
232             </div>
233          </div>
234       </div>
235    </div>
236 </body>
237 </html>