Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / week_2007_01_07.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: January  7, 2007 - January 13, 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_2006_12_31.html" title="December 31, 2006 - January  6, 2007" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/week_2007_01_14.html" title="January 14, 2007 - January 20, 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_2006_12_31.html">&laquo; December 31, 2006 - January  6, 2007</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/week_2007_01_14.html">January 14, 2007 - January 20, 2007 &raquo;</a>
38                      </p>
39                      
40                      
41                      
42
43                      <h2 class="date-header">January 12, 2007</h2>
44                      <a id="a000611"></a>
45                      <div class="entry" id="entry-611">
46                         <h3 class="entry-header">Clearcase 7.0</h3>
47                         <div class="entry-content">
48                            <div class="entry-body">
49                               <ul>
50   <li>Set up vob server on dslabcc05</li>
51
52   <li>Set up Multisite synchronization between 1, 3 and 5</li>
53
54   <li>Installed MSHD on 1, 3 and 5</li>
55 </ul>
56                               
57                               <p class="entry-footer">
58                                  <span class="post-footers">Posted by  at  6:07 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000611.html">Permalink</a>
59                                  
60                                  
61                               </p>
62                            </div>
63                         </div>
64                      </div>
65                      
66                      
67
68                      <h2 class="date-header">January 11, 2007</h2>
69                      <a id="a000610"></a>
70                      <div class="entry" id="entry-610">
71                         <h3 class="entry-header">Clearcase 7.0</h3>
72                         <div class="entry-content">
73                            <div class="entry-body">
74                               <ul>
75   <li>Set up lab servers to CC 6.0</li>
76
77   <li>Created some vobs and views in the 6.0 environment</li>
78
79   <li>Populated a vob using clearfsimport</li>
80
81   <li>Replicated vobs amongst the 6.0 servers</li>
82 <ul>
83                               
84                               <p class="entry-footer">
85                                  <span class="post-footers">Posted by  at  3:28 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000610.html">Permalink</a>
86                                  
87                                  
88                               </p>
89                            </div>
90                         </div>
91                      </div>
92                      
93                      
94
95                      <h2 class="date-header">January  8, 2007</h2>
96                      <a id="a000608"></a>
97                      <div class="entry" id="entry-608">
98                         <h3 class="entry-header">cclic_report year boundary problem</h3>
99                         <div class="entry-content">
100                            <div class="entry-body">
101                               <ul>
102   <li>Documented problem with cclic_report and crossing of the new year's boundary</li>
103 </ul>
104                               
105                               <h3>Year boundary problem</h3>
106
107 <p>I have been working resolving problems with the cclic_report for this month. The script to do this has been failing due to a subtle bug in the algorithm used for obtaining the necessary files to translate the various user IDs and map them to Org 9 numbers and the like.</p>
108
109 <p>The script looks in a series of files out on the file system in order to obtain information to build mapping tables it needs to do the translation. These files are of the form:</p>
110
111 <div class=code><pre>
112 /data/cmetrics/recv/&lt;<i>site</i>&gt;/&lt;<i>type&gt;.&lt;year</i>&gt;/&lt;<i>date</i>&gt;<br>
113 </pre></div>
114
115 <p>Where:</p>
116
117 <dl>
118   <dt>site</dt>
119   <dd>A site designator. This is one of: dal-design (Dallas), nice-design (Nice), tii-shared (Bangalore) or vorlagenkontoliste (Vorlagenkontoliste)</dd>
120   <dt>type</dt>
121   <dd>The type of map. This is one of: passwd, aids or sbes</dd>
122   <dt>year</dt>
123   <dd>The current year</dd>
124   <dt>date</dt>
125   <dd>The current date in YYYY-MM-DD format</dd>
126 </dl>
127
128 <p>These files are automatically generated by dsmetrics however they are not guaranteed to be up to the minute. The script attempts to workaround this by first starting with the current day then working backward one day at a time for up to 30 days. Thus if say /data/cmetrics/dal-design/passwd.2006/2006-12-31 has not yet be generated 2006-12-30 will be checked, then 2006-12-29 and so on.</p>
129
130 <p>Problem is that that algorithm <i>assumes</i> that the data store (e.g. /data/cmetrics/&lt;<i>site</i>&gt;/&lt;<i>type</i>&gt;.&lt;<i>year</i>&gt;) has at least 30 days of information. This assumption breaks when the year changes since the year is contained in the parent directory. So, for example, given today is 1/8/2007, if .../passwd.2007/2007-01-08 has not be generated we can only check for 07, 06, .., 01. Checking for .../paswd.<font color="#ff0000"><b>2007</b></font>/<font  color="#3333ff"><b>2006</b></font>-12-31 makes no sense and will never work.</p>
131
132 <p>Updating of the various files under /data/cmetrics seems sporadic. Currently the script is still not runnable as there is no /data/cmetrics/recv/tii-shared/password.2007 entries at all! The script is failing with:</p>
133
134 <div class=code><pre>
135 $ ./cclic_report.pl -v
136 cclic_report.pl (v{VERSION}) starting
137 Getting full path to data files
138 Unable to find /data/cmetrics/recv/tii-shared/passwd.2007/2006-12-10 at ./cclic_report.pl line 137
139         main::findFile('/data/cmetrics/recv/tii-shared/passwd.2007') called at ./cclic_report.pl line 249
140 </pre></div>
141
142 <p>I can see no real quick or easy solution for this except to wait for tii-shared's 2007 files to be generated...</p>
143                               
144                               <p class="entry-footer">
145                                  <span class="post-footers">Posted by  at  8:34 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000608.html">Permalink</a>
146                                  
147                                  
148                               </p>
149                            </div>
150                         </div>
151                      </div>
152                      
153                   </div>
154                </div>
155             </div>
156          </div>
157       </div>
158    </div>
159 </body>
160 </html>