Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 2006_01.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 2006 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/2005_12.html" title="December 2005" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/2006_02.html" title="February 2006" />
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/2005_12.html">&laquo; December 2005</a> |
36                         <a href="http://defaria.com/blogs/Status/">Main</a>
37                         | <a href="http://defaria.com/blogs/Status/archives/2006_02.html">February 2006 &raquo;</a>
38                      </p>
39                      
40                      
41                      
42
43                      <h2 class="date-header">January 31, 2006</h2>
44                      <a id="a000527"></a>
45                      <div class="entry" id="entry-527">
46                         <h3 class="entry-header">Final MobMM Issues</h3>
47                         <div class="entry-content">
48                            <div class="entry-body">
49                               <ul>
50   <li>Resolved issue with MsgBox not being executed for the web</li>
51
52   <li>Still have problem with IE and certain drop down boxes</li>
53
54   <li>Worked with John Luu to get the web server running on nt-irva-0458. We need to have a database instance created and to move this schema and user databases to that server. Why is the web server in Ivrine when the group is in San Jose?</lI>
55                               
56                               <h2>IE and drop down boxes</h2>
57
58 <p>Jean had reported that certain fields on the Resolution tab did not work. They do work, in the client and using Firefox but indeed don't work in IE. At first I thought that this was a problem with the JRE so I tried installing the latest. That did not solve the problem.</p>
59
60 <p>IE seems to have a bona fide problem with the new CQJW and certain fiels. I scoured the Rational Formus to no avail. A defect will need to be submitted to Rational for this. I did not submit one because the follow up would be to me and probably should be to John.</p>
61
62 <p>It is not just the fields on the Resolution tab that are causing problems, fields on the Verification tab as well as some fields on the Submission tab (e.g. Hardware Platform).</p>
63
64
65                               
66                               <p class="entry-footer">
67                                  <span class="post-footers">Posted by  at  3:30 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000527.html">Permalink</a>
68                                  
69                                  
70                               </p>
71                            </div>
72                         </div>
73                      </div>
74                      
75                      
76
77                      <h2 class="date-header">January 30, 2006</h2>
78                      <a id="a000526"></a>
79                      <div class="entry" id="entry-526">
80                         <h3 class="entry-header">MobMM Completion</h3>
81                         <div class="entry-content">
82                            <div class="entry-body">
83                               <ul>
84   <li>Reached code completion level for MobMM</li>
85 </ul>
86                               
87                               <h2>Remaining issues</h2>
88
89 <p>I see only a few remaining issues to be code complete and that is to implement the CC list. I'm trying to implement it as a box with a "..." button that has a dialog that walks you through entering lines of text. Not sure if I can validate those lines to &lt;user&gt;@&lt;domain&gt;.&lt;tld&gt;. Once that's done I just need to add code to SendEmail to parse CC, separate by newlines and push the email addresses onto the recipients array. The rest of the code will already handle sending out email. (Note there's currently a flag field there called Testing which is set to true. Having it set to true says "Send out email only to  adefaria@broadcom.com". I didn't think it wise to be sending out test email to real people right yet - it'd only confuse them. We just need to either set Testing = false or remove the test code for production).</p>
90
91 <p>There is also the issue of a script, triggered to run when a Perforce user checks in, to update changeset. I could write a Perl module that has a simple function to update MobMM's changeset (e.g. UpdateMMChangeset (&lt;id&gt;, &lt;changeset&gt;)) then the implementer for the Perforce trigger need only use the module and call the procedure. Ray let me know if you want that.</p>
92
93 <p>Other than that this project would be "code complete". Things that still need to be done for production would be:</p>
94
95 <ol>
96   <li>Set up production server (I believe this is in progress)</li>
97
98   <li>Create production DBs</li>
99
100   <li>Upgrade DBs with user accounts</li>
101
102   <li>Setup CQ Web</li>
103
104   <li>Disseminate Clearquest software to those who wish to use Clearquest Client</li>
105 </ol>
106                               
107                               <p class="entry-footer">
108                                  <span class="post-footers">Posted by  at 10:07 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000526.html">Permalink</a>
109                                  
110                                  
111                               </p>
112                            </div>
113                         </div>
114                      </div>
115                      
116                      
117
118                      <h2 class="date-header">January 27, 2006</h2>
119                      <a id="a000525"></a>
120                      <div class="entry" id="entry-525">
121                         <h3 class="entry-header">MobMM email</h3>
122                         <div class="entry-content">
123                            <div class="entry-body">
124                               <ul>
125   <li>Implemented Email notifications in MobMM</li>
126 </ul>
127                               
128                               <p class="entry-footer">
129                                  <span class="post-footers">Posted by  at  5:01 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000525.html">Permalink</a>
130                                  
131                                  
132                               </p>
133                            </div>
134                         </div>
135                      </div>
136                      
137                      
138
139                      <h2 class="date-header">January 26, 2006</h2>
140                      <a id="a000524"></a>
141                      <div class="entry" id="entry-524">
142                         <h3 class="entry-header">More MobMM Progress</h3>
143                         <div class="entry-content">
144                            <div class="entry-body">
145                               <ul>
146   <li>Separated MobMM to its own Schema Repository</li>
147
148   <li>Renamed MobileCom -&gt; MobMM</li>
149
150   <li>Removed Visibility from submission form</li>
151
152   <li>I've created all Modules and all Submodules but linked only some of them. A lot are owned by Vinod. Try entering a defect with a module of Display Manager and you should see Owner set to "node". Change that to OLG and it should switch to cswilson.</li>
153
154   <li>Created users as defined above. Gave admin privileges to my userid</li>
155
156   <li>Created Administrators, Managers and Users groups. My userid and admin are in all three groups. Jean, your user is in the Manager and Users group. Other users are just in the Users group.</li>
157
158   <li>Gave Dynamic List Admin privileges to Jean and Vinod. This means that you can add/change/delete entries in dynamic lists (Select <b>Edit: Named Lists</b> to manage dynamic lists such as <i>Software_Version</i>)</li>
159
160   <li>Populated Dynamic lists</li>
161
162   <li>Created Public Queries for Defects, Modules, Submodules and Module-Submodule Cross Reference.</li>
163
164   <li>Changes some drop downs to be bigger.</li>
165 </ul>
166
167                               
168                               <h2>More MobMM Progress</h2>
169
170 <p>I have separated the MobMM design from the old PQA Schema Repository.
171 By being in it's own schema repository MobMM now has a separate, distinct set of user accounts. You really don't want PQA users being able to log into your database. This separation required essentially replicating all of my work over into this new schema repository.</p>
172
173 <p>The Schema Repository is called MobMM_Schema. The administrative user
174 for the database is MobMM_Admin with a password of ru4real. Normally nobody sees this username except people who are using MS/SQL Enterprise Manager to create databases or using the CQDesigner to create schemas, user databases, etc. IOW Jean, you wouldn't be using this user account but Ray and others will need that info.</p>
175
176 <p>There is, by default, and "admin" user that you can use to log into CQDesigner or Clearquest Client. Its password is also ru4real. Again, Jean, I don't think that you would be using this user account either, rather a CQDesigner would use it.</p>
177
178 <p>As we have a new user account database I had to create some users. There's admin and I made myself a user (adefaria). I also made user accounts for you Jean (jfan - password jfan - you can log in and change that - I would suggest your Windows domain password but that's just me) as well as the Module owners of Vinod Prasad (username: node; password: node), Rick Howarth (rhowarth:rhowarth), Chris Wilson (cswilson:cswilson) and Bhupesh Khawa (bhupesh:bhupesh).</p>
179
180 <h3>Work Performed</h3>
181
182 <ul>
183   <li>Separated MobMM to its own Schema Repository</li>
184
185   <li>Renamed MobileCom -&gt; MobMM</li>
186
187   <li>Removed Visibility from submission form</li>
188
189   <li>I've created all Modules and all Submodules but linked only some of them. A lot are owned by Vinod. Try entering a defect with a module of Display Manager and you should see Owner set to "node". Change that to OLG and it should switch to cswilson.</li>
190
191   <li>Created users as defined above. Gave admin privileges to my userid</li>
192
193   <li>Created Administrators, Managers and Users groups. My userid and admin are in all three groups. Jean, your user is in the Manager and Users group. Other users are just in the Users group.</li>
194
195   <li>Gave Dynamic List Admin privileges to Jean and Vinod. This means that you can add/change/delete entries in dynamic lists (Select <b>Edit: Named Lists</b> to manage dynamic lists such as <i>Software_Version</i>)</li>
196
197   <li>Populated Dynamic lists</li>
198
199   <li>Created Public Queries for Defects, Modules, Submodules and Module-Submodule Cross Reference.</li>
200
201   <li>Changes some drop downs to be bigger.</li>
202 </ul>
203
204 <p>Jean, to access this new schema repository from the CQ Web login as usual but make sure to select the Schema Repository of MobMM.</p>
205
206 <h3>Issues</h3>
207
208 <ul>
209   <li>Still don't know what to do with CC. I remember that this is for an arbitrary list of email addresses however when and how are they used? IOW when is email sent? When a defect changes state? Which states? IOW if a defect is entered it's in an Assigned state. If it gets resolved then I suspect that's when email is sent. Similarly when verified. What about when deferred? etc. Is the real purpose of CC to allow for separate distinct lists of people to alert via email? I need to read up more on the Email package that Clearquest offers and see if it can do all of this for us in a more standard and already debugger manner.</li>
210
211   <li>Changeset: This should be made a larger field, perhaps on the Management tab because I would think that it will contain file/revision information in a multiline tabular format. I suspect that the editing of this field will be only done from the yet to be written Perforce -&gt; Clearquest connector... IOW will Clearquest users be able to modify that field through Clearquest Client or Clearquest Web?</li>
212
213   <li>Testcase ID &amp; Testplan Version: Any info on what these are or should be? Just text strings? When are they entered in the transition of states...</li>
214 </ul>
215                               
216                               <p class="entry-footer">
217                                  <span class="post-footers">Posted by  at  7:24 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000524.html">Permalink</a>
218                                  
219                                  
220                               </p>
221                            </div>
222                         </div>
223                      </div>
224                      
225                      
226
227                      <h2 class="date-header">January 25, 2006</h2>
228                      <a id="a000523"></a>
229                      <div class="entry" id="entry-523">
230                         <h3 class="entry-header">MobileMultimedia Release</h3>
231                         <div class="entry-content">
232                            <div class="entry-body">
233                               <ul>
234   <li>Completed a pass of MoblleMultimedia and handed off to Jean for a quick review and input to the next release in the design cycle</li>
235 </ul>
236                               
237                               <h2>Trail version of MobMM</h2>
238
239 <p>I've been working feverishly on your Clearquest database and have made some good progress. Following the Open Source motto of <i>Release Early, Release Often</i> I would like to have you take a look at what I have so far. Many things work. Some things have yet to be implemented. Play with it. Pay particular attention to stepping through the states and which fields are available for editing on the various tabs at various stages through the state transition matrix.</p>
240
241 <p>For now you can access this through http://p4test/cqweb/login then login as guest:guest and set the DB to MM. This is a test/play database so feel free to add, change or delete defects and other records.</p> 
242
243 <h3>Things that work</h3>
244
245 <p>The following things I have working:</p>
246
247 <ol>
248   <li><b>Module/Submodule:</b> In order to implement this I needed 3 stateless records. One is the Module record which contains the module name, owner and a description field (use description for anything you'd like). Another stateless record is the Submodule record. Here we have only Submodule name and description. To tie these two things together I have a ModSub_XRef stateless record. It has a drop down for Modules (referencing the Module stateless record - IOW if you don't see a module name in the drop down then that's because you haven't added a record for it in the Module stateless record). Similarly there's a Submodule drop down (referencing the Submodule stateless record). The purpose of this ModSub_XRef stateless record is to tie together a module with a set of submodule(s). These two fields are concatenated together separated with a ":" to form the ModSub field which is set as the unique key for the record (Currently this ModSub field is shown when creating a ModSub_XRef record but eventually it will be hidden). Setting up modules and submodules then tying them together will be a setup kind of a thing. You may need to occasionally set up a new submodule or  module and make the ModSub_XRef record to tie things together.</p>
249
250 <p>The result is when you enter a defect you toggle the Module drop down and the Submodule gets populated correctly. Additionally you'll see that the Owner field gets set to Module.Owner automatically.</p></li>
251
252   <li><b>Assigned Date:</b> Gets automatically set to the current date</li>
253
254   <li><b>Visibility:</b> Gets set to "Broadcom Only" - no other values are available yet and this field is essentially read only at this time.</li>
255
256   <li><b>Notes:</b> If you change the state of an Assigned defect to Resolved you'll need to fill out the Resolved tab. When the Resolved Note gets changed it is populated into the Notes field in the Notes tab. Similarly if you go to Verified, the Verified Notes field also populates the Notes field. If either Resolved Notes or Verified Notes are not yet specified then Note will say so.</li>
257
258   <li><b>Audit Log:</b> Has been taken from PQA and implemented. As fields are changed the Audit Log is updated.</li>
259
260   <li><b>Time From &lt;state&gt; to &lt;state&gt;</b>: On the Management tab there are the Time From... Assigned -&gt; Resolve and Assigned -&gt; Verified. When a defect goes to Resolved then the former is set. When a defect goes to Verified then the later is set. Time is in days. (Please note that it is possible to later modify the defect and change the Resolved Date. In such cases these Time From fields are <b>not</b> recalculated. Additionally there are currently no checks to insure that Verified_Date &gt; Resolved_Date, for example).</li>
261 </ol>
262
263 <h3>Things not yet working</h3>
264
265 <p>There are several things I have not yet implemented in this design. These are:</p>
266
267 <ol>
268   <li><b>CC:</b> Although present in the Submission tab the CC list currently does nothing</li>
269
270   <li><b>Changeset:</b> Listed on the Resolution tab Changeset is just a short string right now. I believe we need a multiline string down the road. This field is supposed to be filled in by a hook from CVS (IIRC) that will record the files and revisions. Ray you might want to look at what I did in SCM/cvsbin/cvsism and adapt it to Jean's Clearquest database. You can look at SCM/cq/pqamerge for examples of how to update Clearquest databases through Perl.</li>
271
272   <li><b>Other  Notes:</b> Entering data here does not update the Notes field above it (yet).</li> 
273
274   <li><b>Testcase ID &amp; Testplan Version:</b> Currently do nothing.</li>
275
276   <li><b>Duplicate IDs, Related IDs and Notes: </b>On the Broadcom Notes tab also do nothing yet. The whole issue of how to hand Duplicate and Related IDs has not been designed. I think we should look into how IBM/Rational handles duplicates in it's default package and use that as well as change it to handle related ids too.</li>
277 </ol>
278
279 <p>Again, look for whatever you see as wrong: Process flow, spelling errors, alignment, move a field to a different form, add a field, whatever and let me know. You're input will be used for the next rendition of this.</p>
280
281 <p>You may want to eventually install Clearquest Client on your machine. You can follow the instructions at <a  href="http://intranet.broadcom.com/%7Eadefaria/Clearquest/CQ2003.06.14.php">
282 Installing 2003.06.15</a>. Those instructions were for PQA but installing Clearquest is the same for everybody. Do not continue on to the instructions for setting up your profile - the profile is specific to the different projects. I'll have to get a profile file set up for you later.</p>
283                               
284                               <p class="entry-footer">
285                                  <span class="post-footers">Posted by  at  7:09 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000523.html">Permalink</a>
286                                  
287                                  
288                               </p>
289                            </div>
290                         </div>
291                      </div>
292                      
293                      
294
295                      <h2 class="date-header">January 24, 2006</h2>
296                      <a id="a000522"></a>
297                      <div class="entry" id="entry-522">
298                         <h3 class="entry-header">PQA Email issue/Mobile Multimedia</h3>
299                         <div class="entry-content">
300                            <div class="entry-body">
301                               <ul>
302   <li>Contacted Rational regarding PQA email problem</li>
303
304   <li>Changed Mobile Multimedia to set default owner, assigned date</li>
305
306   <li>Fixed MM to handle Module/Submodule relationships</li>
307 </ul>
308                               
309                               <h2>PQA Email Problem</h2>
310
311 <p>Turns out there is a known problem with email sent date that is patched in 2003.06.15. Problem is that the server is 2002.05.20! Waiting for the patch so we can patch p4test and 2003.06.15 clients. Luckily the new server is in so we should set that up with the patched 2003.06.15. John Luu will do that.</p>
312
313 <h2>Mobile Multimedia</h2>
314
315 <p>Got most of the submission form working. Managed to get the Module/Submodule and ModSub_Xref working. Still some more to do...</p>
316                               
317                               <p class="entry-footer">
318                                  <span class="post-footers">Posted by  at  5:37 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000522.html">Permalink</a>
319                                  
320                                  
321                               </p>
322                            </div>
323                         </div>
324                      </div>
325                      
326                      
327
328                      <h2 class="date-header">January 23, 2006</h2>
329                      <a id="a000521"></a>
330                      <div class="entry" id="entry-521">
331                         <h3 class="entry-header">More CQ Web Email Problems (GetSMTPHost)</h3>
332                         <div class="entry-content">
333                            <div class="entry-body">
334                               <ul>
335   <li>Implemented and tested GetSMTPHost</li>
336 </ul>
337                               
338                               <p>Actually I was on vacation but still trying to work on the problem. Sorry but the ski cabin in Vermont didn't have Internet access...</p>
339
340 <p>We are very sensitive to the critical nature of this bug. <a href="/blogs/Status/archives/000520.html#more">Here's what I found out on Friday</a>.</p>
341
342 <p>I've implemented a solution to option #2 and have tested it. However, the way it works is to use ipconfig to get the IP address of the current machine then nslookup to change that to a hostname. After that I've found that nbu-cqweb is actually known as nt-irva-1521.broadcom.com. So I have it hard coded to return an SMTP host of mms.broadcom.com if it's running on nt-irva-1521.broadcom.com otherwise return smtphost.broadcom.com. There are a couple of things I don't like about this solution:</p>
343
344 <ol>
345   <li>Hard coding of machine names. Will nbu-cqweb always be known as nt-irva-1521.broadcom.com? Also, such a fix will break if we implement a new web server for you which will presumably have a different machine name...</li>
346
347   <li>I'm not sure how this works in the context of CQ Web as opposed to CQ Client. It seems to work on p4test's Web Server.</li>
348
349   <li>I've only addressed the Submit notify action. Turns out there are other notify actions (e.g. Assign, Resolve, Verify) which are still using the older PAINET object. I would have thought that all of the email sending would be done through one routine but it turns out the code was essentially duplicated in many places. (Note PAINET is an object that IBM/Rational cooked up for CQ only). I have not changed these and I would assume that they are as likely as Submit to send email with a send date of 2001. Again, we've never determined why the old code stopped working correctly.</li>
350 </ol>
351
352 <p>I have this fix ready to go but I'll wait for your OK before applying it to production.</p>
353                               
354                               <p class="entry-footer">
355                                  <span class="post-footers">Posted by  at 11:00 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000521.html">Permalink</a>
356                                  
357                                  
358                               </p>
359                            </div>
360                         </div>
361                      </div>
362                      
363                      
364
365                      <h2 class="date-header">January 20, 2006</h2>
366                      <a id="a000520"></a>
367                      <div class="entry" id="entry-520">
368                         <h3 class="entry-header">CQ Web Email Problem</h3>
369                         <div class="entry-content">
370                            <div class="entry-body">
371                               <ul>
372   <li>Worked on problem with CQ Web sending email</li>
373 </ul>
374                               
375                               <h2>CQ Web Email Problem when in the DMZ</h2>
376
377 <p>OK, here's what's going on. As you know we were having a problem with the email being sent out with a date of 2001. I looked into this the best I could but could not figure out what was causing this. I don't claim to be an expert on VB or VB objects like the PAINET object that was being used to send email. I looked on the web for clues and saw somebody saying that they switched to using the CDO object for sending email as it was better. I also remembered that I had done some VBS at Ameriquest and I had sent email from those scripts. When I looked at it I saw that I too was using the CDO object.</p>
378
379 <p>Next I tried replacing the usage of the PAINET object to send email with the CDO object and the send date problem seemed to have corrected itself.</p>
380
381 <p>Now it's not working in one very specific and unfortunately one very critical place - nbu-cqweb!</p>
382
383 <p>Another thing I could not figure out with the PAINET object is that it never seemed to specify an SMTP server to use to send the email. It just did it somehow. (Turns out it actually uses the client's settings and is exactly the reason why the user must set these!) The CDO object, however, needs to have an SMTP server specified so I used one I thought was guaranteed to be available - smtphost.broadcom.com. This works... while in Broadcom but it does not work when in the DMZ and nbu_cqweb is in the DMZ.</p>
384
385 <p>I see two options at this point:</p>
386
387 <ol>
388   <li>Revert back to the old PAINET object and live with the send date of 2001 until we can figure out why that's happening (Considering that it's now known that it's the clients settings as to which SMTP server is used, it's quite possible that one user may generate email with a send date in the year 2001 while another user wouldn't) or</li>
389
390   <li>Figure out an SMTP host in the DMZ and implement code to use it when in the DMZ or use smtphost.broadcom.com when not in the DMZ.</li>
391 </ol>
392
393 <p>For the second approach the problem is that I need to dynamically use mms.broadcom.com while in the DMZ and smtphost.broadcom.com when not in the DMZ. How does one tell? I thought I could simply check the hostname or domainname but I don't see any easy ways of getting this information in VB. Does anybody else?</p>
394
395                               
396                               <p class="entry-footer">
397                                  <span class="post-footers">Posted by  at  7:57 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000520.html">Permalink</a>
398                                  
399                                  
400                               </p>
401                            </div>
402                         </div>
403                      </div>
404                      
405                      
406
407                      <h2 class="date-header">January 17, 2006</h2>
408                      <a id="a000519"></a>
409                      <div class="entry" id="entry-519">
410                         <h3 class="entry-header">Mobile Multimedia Clearquest Design</h3>
411                         <div class="entry-content">
412                            <div class="entry-body">
413                               <ul>
414   <li>Created initial mock up of MM CQ</li>
415 </ul>
416                               
417                               <h2>Mobile Multimedia Clearquest Design</h2>
418
419 <p>I've been working today coming up with a prototype/mock up of what Jean has proposed so far. Please remember this is a rough prototype and is
420 (very) subject to change. IOW things like state flow, requiredness of the fields, automatic and other action hooks and scripts are not in place. Also, after developing this for the Clearquest client I made it available on CQ Web so you can see it. Then I noticed that the alignment and fonts don't translate well to the web.</p>
421
422 <p>Feel free to play with this through the web and give me your initial impressions, but remember there's still a lot of work to be done - this is by no means polished.</p>
423
424 <p>To access it go to http://p4test/cqweb/login. Login as guest:guest and
425 then select the MM database.</p>
426
427                               
428                               <p class="entry-footer">
429                                  <span class="post-footers">Posted by  at  5:24 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000519.html">Permalink</a>
430                                  
431                                  
432                               </p>
433                            </div>
434                         </div>
435                      </div>
436                      
437                      
438
439                      <h2 class="date-header">January 16, 2006</h2>
440                      <a id="a000518"></a>
441                      <div class="entry" id="entry-518">
442                         <h3 class="entry-header">PQA CDO.Message</h3>
443                         <div class="entry-content">
444                            <div class="entry-body">
445                               <ul>
446   <li>Updated PQA to use CDO.Message to fix date/timestamp problem</li>
447
448   <li>Researched Clearquest: Help problem with Rational and came up with a fix. Turns out that the original solution I sent may have solved the problem as the problem exists on the Citrix server which is probably too tightly configured security-wise. Wish the user would have told me about that to start with...</li>
449 </ul>
450                               
451                               <p class="entry-footer">
452                                  <span class="post-footers">Posted by  at  3:41 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000518.html">Permalink</a>
453                                  
454                                  
455                               </p>
456                            </div>
457                         </div>
458                      </div>
459                      
460                      
461
462                      <h2 class="date-header">January 13, 2006</h2>
463                      <a id="a000516"></a>
464                      <div class="entry" id="entry-516">
465                         <h3 class="entry-header">Perl test</h3>
466                         <div class="entry-content">
467                            <div class="entry-body">
468                               <ul>
469   <li>Ray wanted an easy/medium/hard Perl test</li>
470 </ul>
471                               
472                               <h2>Perl Test</h2>
473
474 <h3>Easy</h3>
475 <ol>
476   <li>What does Perl stand for?</li>
477
478 <p><font color="red">Practical Extraction and Reporting Language</font></p>
479
480   <li>What basic datatypes does Perl support?</li>
481
482 <p><font color="red">Scalar, Array, Hash, Typeglob</font></p>
483
484   <li>What does the following do:</li>
485
486 <div class="code"><pre>
487 my @output = &lt;STDIN&gt;;
488
489 foreach (@output) {
490   print "$_\n" if /\d+/;
491 }
492 </pre></div>
493
494 <p><font color="red">Echoes lines that have numbers in them)</font></p>
495
496 </ol>
497
498 <h3>Medium</h3>
499
500 <ol>
501   <li>What is <tt>use strict</tt> and why is it important to use?</li>
502
503 <p><font color="red">Strict requires that variable references are scoped - e.g. my $var)</font></p>
504
505   <li>What does the following code do:</li>
506
507 <div class="code"><pre>
508 sub d {
509   my %p = @_;
510
511   print "\np:\n";
512
513   foreach (sort (keys (%p))) {
514     if (/password/) {
515       print "$_: &lt;password&gt;\n";
516     } else {
517       print "$_: ${p {$_}}\n";
518     } # if
519   } # foreach
520 } # d
521 </pre></div>
522
523 <p><font color="red">Displays the contents of the passed in hash %p substituting "&lt;password&gt;" if the hash happens to have a key of password</font></p>
524
525   <li>What do you do to enable Perl to find user written modules?</li>
526
527 <p><font color="red">You need to modify the @INC array to include the path to your modules)</font></p>
528 </ol>
529
530 <h3>Hard</h3>
531
532 <ol>
533   <li>What is the difference between <tt>require</tt> and <tt>use</tt>?</li>
534  
535 <p><font color="red">See <a href="/blogs/Status/archives/000492.html">this article</a> for the answer</font></p>
536
537   <li>What is a better way to do the following and why:</li>
538
539 <div class="code"><pre>
540 undef $/;
541 </pre></div>
542
543 <p><font color="red">See <a href="/blogs/Status/archives/000492.html">this article</a>) for the answer</font></p>
544
545   <li>What does the following print out when executed:</li>
546
547 <div class="code"><pre>
548 sub foo {
549   my ($x, $y) = @_;
550
551   my @z = `$x 2&gt;&amp;1`; chomp @z;
552   my $s = $?;
553
554   if ($s ne 0) {
555     if (defined $y) {
556       print "$_\n" foreach (@z);
557     }
558   }
559
560   return ($y, @z);
561 } # foo
562
563 my @a;
564 my $c="ls /temp";
565 my $d;
566
567 ($d, @a) = foo $c;
568 print "Worked!\n" if !$d;
569 </pre></div>
570
571 <p><font color="red">(It will output:</p>
572
573 <div class="code"><pre>
574 Worked!
575 </pre></div>
576
577 <p>Yet nothing really worked at all! Key issues are:</p>
578
579 <ul>
580     <li>Passing parameters to subroutines. Two parameters are passed in</li>
581
582     <li>Parameter return: Two parameters are returned</li>
583
584     <li>Evaluation of parameters: $y in foo is not passed in thus the print... foreach doesn't execute></li>
585
586     <li>Evaluation of true/false: foo returns $y which is errno,
587 which is not 0 thus not true but the !$d evaluates to true and the
588 print "Worked!\n" gets executed.</li>
589 </font></ul>
590 </ol>
591
592                               
593                               <p class="entry-footer">
594                                  <span class="post-footers">Posted by  at 11:59 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000516.html">Permalink</a>
595                                  
596                                  
597                               </p>
598                            </div>
599                         </div>
600                      </div>
601                      
602                      
603
604                      <h2 class="date-header">January 12, 2006</h2>
605                      <a id="a000517"></a>
606                      <div class="entry" id="entry-517">
607                         <h3 class="entry-header">Clearcase Merging/CQ Time Stamp problem/CQ Help problem</h3>
608                         <div class="entry-content">
609                            <div class="entry-body">
610                               <ul>
611   <li>Consulted with Ann Wisotzky regarding Clearcase Merging</li>
612
613   <li>Investigated email time stamp problem with PQA</li>
614
615   <li>Worked with Rational regarding Clearquest: Help problem</li>
616 </ul>
617                               
618                               <p class="entry-footer">
619                                  <span class="post-footers">Posted by  at 10:25 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000517.html">Permalink</a>
620                                  
621                                  
622                               </p>
623                            </div>
624                         </div>
625                      </div>
626                      
627                      
628
629                      <h2 class="date-header">January 11, 2006</h2>
630                      <a id="a000515"></a>
631                      <div class="entry" id="entry-515">
632                         <h3 class="entry-header">Stglocs/replicating perftest</h3>
633                         <div class="entry-content">
634                            <div class="entry-body">
635                               <ul>
636   <li>Investigated stglocs</li>
637
638   <li>Replicated /vobs/perftest and set up log_activity, stats and pulse for all of:</li>
639     <ul>
640       <li>ccase-rmna-3</li>
641
642       <li>ccase-sj1-1</li>
643
644       <li>ccase-sj1-2</li>
645
646       <li>ccase-irva-2</li>
647     </ul>
648 </ul>
649                               
650                               <p>Chris, if you can spare a Windows machine to host the views (meaning to run the view_server processes on) then I believe the following stgloc would be your best answer:</p>
651
652 <div class="code"><pre>
653 $ your_filer=&lt;your_filer&gt;
654 $ your_share=&lt;your_share&gt;
655 $ your_windows_view_server=&lt;your_windows_view_server&gt;
656 $ p=\\\\$your_filer\\$your_share\\viewstore
657 $ cleartool mkstgloc -view -force -host $your_windows_view_server \
658 &gt; -hpath $p -gpath $p viewstore $p
659 </pre></div>
660
661 <p>This would create a "stgloc" which can be used in mkview:</p>
662
663 <div class="code"><pre>
664 $ cleartool mkview -tag &lt;tag&gt; -stgloc viewstore (or -auto)
665 </pre></div>
666
667 <p>Users can also select this stgloc in the Clearcase Explorer GUI. Views will be placed on $your_filer and served by $your_windows_view_server (meaning view_server processes will run there and that that machine should have a static IP).</p>
668
669 <p>Views can be cross tagged into the Linux region with:</p>
670
671 <div class="code"><pre>
672 $ cleartool mktag -view -tag defaria2 -host 10.136.65.5 -hpath \\\\fs-rmna-01\\ccstgloc-cabu\\viewstore\\BROADCOM\\adefaria\\defaria2.vws -gpath /projects/ccstgloc-cabu/viewstore/BROADCOM/adefaria/defaria2.vws
673 /projects/ccstgloc-cabu/viewstore/BROADCOM/adefaria/defaria2.vws
674 cleartool: Warning: Storage pathname "/projects/ccstgloc-cabu/viewstore/BROADCOM/adefaria/defaria2.vws"
675 may not reside on host "10.136.65.5".
676 </pre></div>
677
678 <p><b>Notes:</b></p>
679
680 <ul>
681   <li>I specified host as an IP address because the test "server" I was using was using DHCP (IOW nslookup pcrmna-ccrmt02 doesn't work from Unix)</li>
682
683   <li>Backslashes are doubled because bash collapses them</li>
684
685   <li>The host path (-hpath) must be a valid path <b>from the host's point of view</b>. The host (pcrmna-ccrmt02 in this case) is a Windows box thus a UNC style path is used for -hpath.</li>
686
687   <li>The global path (-gpath) must be a valid path <b>from the client's point of view</b>. Since we are cross tagging to Linux the path is a Unix style path (in the automount map) of /projects/ccstgloc-cabu/viewstore... You're directory under /projects would be different.</li>
688
689   <li>View creation and serving on Windows machines is Windows domain aware. What they do is create a directory for the domain (e.g. BROADCOM) then a directory for the user (e.g. adefaria) then the view directory is created (defaria2) with an  appended .vws. This is Windows specific behavior, hence you see and additional
690 .../BROADCOM/adefaria/defaria2.vws.</li>
691
692   <li>You need not use the name or directory "viewstore". This is just an example. I've seen others user the directory name of say vws. Also the stgloc need not be named viewstore - you might use bt-filer-views or whatever.</li>
693 </ul>
694
695 <p>Now you can similarly create a Unix oriented stgloc if you want:</p>
696
697 <div class="code"><pre>
698 $ your_share=&lt;your_share&gt;
699 $ your_linux_view_server=&lt;your_linux_view_server&gt;
700 $ p=/projects/$your_share/viewstore
701 $ cleartool <span>mkstgloc</span> -view -force -host $your_linux_view_server \
702 &gt; -hpath $p -gpath $p viewstore $p
703 </pre></div>
704
705 <p>And then your users can cross tag them into the Windows region using the Region Synchronize tool (Note: It will fail initially as it cannot determine what the UNC path needs to be so the users will have to specify that) or by the command line:</p>
706
707 <div class="code"><pre>
708 $ your_filer=&lt;your_filer&gt;
709 $ your_share=&lt;your_share&gt;
710 $ your_linux_view_server=&lt;your_windows_linux_server&gt;
711 $ p=\\\\$your_filer\\$your_share\\viewstore
712 $ cleartool mktag -view -tag adefaria_linux -host $your_linux_view_server \
713 &gt; -hpath /projects/$your_share/viewstore/adefaria_linux.vws \
714 &gt; -gpath $p\\adefaria_linux.vws $p\\adefaria_linux.vws
715 </pre></div>
716
717 <p>The advantages here are:</p>
718 <ul>
719   <li>Your Linux server bears the brunt of serving views since the view_server processes run there</li>
720 </ul>
721
722 <p>The disadvantages are:</p>
723
724 <ul>
725   <li>Users can't create views using this stgloc from Windows</li>
726
727   <li>Users must cross tag views to their Windows region</li>
728
729   <li>Windows users don't like the command line.</li>
730 </ul>
731
732                               
733                               <p class="entry-footer">
734                                  <span class="post-footers">Posted by  at  3:01 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000515.html">Permalink</a>
735                                  
736                                  
737                               </p>
738                            </div>
739                         </div>
740                      </div>
741                      
742                      
743
744                      <h2 class="date-header">January 10, 2006</h2>
745                      <a id="a000514"></a>
746                      <div class="entry" id="entry-514">
747                         <h3 class="entry-header">Getting log_activity/stats and pulse to work</h3>
748                         <div class="entry-content">
749                            <div class="entry-body">
750                               <ul>
751   <li>Re-wrote most Clearcase modules to utilize Clearcase::cleartool and for Clearcase.pm to work out where cleartool resides</li>
752
753   <li>Changed Mail.pm to only attempt to use MIME:Entity and others if html is requested</li>
754
755   <lI>Got pulse working for /vobs/preftest. If the vob is not present it simply logs that and exists</li>
756 </ul>
757                               
758                               <p class="entry-footer">
759                                  <span class="post-footers">Posted by  at  5:42 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000514.html">Permalink</a>
760                                  
761                                  
762                               </p>
763                            </div>
764                         </div>
765                      </div>
766                      
767                      
768
769                      <h2 class="date-header">January  9, 2006</h2>
770                      <a id="a000513"></a>
771                      <div class="entry" id="entry-513">
772                         <h3 class="entry-header">Mail.pm/pulse</h3>
773                         <div class="entry-content">
774                            <div class="entry-body">
775                               <ul>
776   <li>Worked on Mail.pm</li>
777
778   <li>Incorporated Mail.pm into Logger</li>
779
780   <li>Created Element.pm</li>
781
782   <li>Added code to pulse to mkelem and rmelem</li>
783 </li>
784                               
785                               <p class="entry-footer">
786                                  <span class="post-footers">Posted by  at  5:41 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000513.html">Permalink</a>
787                                  
788                                  
789                               </p>
790                            </div>
791                         </div>
792                      </div>
793                      
794                      
795
796                      <h2 class="date-header">January  6, 2006</h2>
797                      <a id="a000512"></a>
798                      <div class="entry" id="entry-512">
799                         <h3 class="entry-header">Mail.pm/ccase-rman-3 crisis</h3>
800                         <div class="entry-content">
801                            <div class="entry-body">
802                               <ul>
803   <li>Further developed Mail.pm. Added code to send HTML mail. HTML mail not completely working yet</li>
804
805   <li>Worked on problems with ccase-rmna-3</li>
806
807   <li>Assisted Ray in some Perl coding issues</li>
808 </ul>
809                               
810                               <p class="entry-footer">
811                                  <span class="post-footers">Posted by  at  4:48 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000512.html">Permalink</a>
812                                  
813                                  
814                               </p>
815                            </div>
816                         </div>
817                      </div>
818                      
819                      
820
821                      <h2 class="date-header">January  5, 2006</h2>
822                      <a id="a000511"></a>
823                      <div class="entry" id="entry-511">
824                         <h3 class="entry-header">Mail.pm/CQ Web</h3>
825                         <div class="entry-content">
826                            <div class="entry-body">
827                               <ul>
828   <li>Developed Mail.pm module</li>
829
830   <li>Working with Rational about CQ Web hang problem</li>
831 </ul>
832                               
833                               <p class="entry-footer">
834                                  <span class="post-footers">Posted by  at  7:56 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000511.html">Permalink</a>
835                                  
836                                  
837                               </p>
838                            </div>
839                         </div>
840                      </div>
841                      
842                      
843
844                      <h2 class="date-header">January  4, 2006</h2>
845                      <a id="a000510"></a>
846                      <div class="entry" id="entry-510">
847                         <h3 class="entry-header">More module coding</h3>
848                         <div class="entry-content">
849                            <div class="entry-body">
850                               <ul>
851   <li>Standardized some modules a little bit</li>
852
853   <li>Added much more functionality to Clearcase modules and tied that into stats and log_activity</li>
854
855   <li>Changed the startup of many scripts to be more standard</li>
856
857   <li>Implemented much more functionality in stats</li>
858 </ul>
859                               
860                               <h2>Odd characters in view tags</h2>
861
862 <p>I found this odd view tag in the <span>SanJoseNT</span> region: 
863
864 <div class="code"><pre>
865 ccase-sj1-1:ct lsview -long -region SanJoseNT helenay_PIRelease_12022002_7031RC\)
866 Tag: helenay_PIRelease_12022002_7031RC)
867   Global path: \\Pc-1ubrv\Myview\helenay.v.vws
868   Server host: Pc-1ubrv
869   Region: SanJoseNT
870   Active: NO
871   View tag uuid:132d6e50.0eee11d7.a7a4.00:b0:d0:20:ba:8a
872 View on host: Pc-1ubrv
873 View server access path: F:\Myview\helenay.v.vws
874 View uuid: 132d6e50.0eee11d7.a7a4.00:b0:d0:20:ba:8a
875 View attributes: snapshot
876 View owner: BROADCOM\helenay
877 </pre></div>
878
879 <p>Note the trailing ")" in the view tag. Alas this screws up Perl scripts when one may take a view tag and include it in a cleartool cmd:</p>
880
881 <div class="code"><pre>
882 `cleartool lsview -long -region SanJoseNT $view_tag 2&gt; /dev/null`
883 </pre></div>
884
885 <p>when $view_tag is the above results in:</p>
886
887 <div class="code"><pre>
888 sh: -c: line 1: syntax error near unexpected token `)'
889 sh: -c: line 1: `cleartool lsview -long -region SanJoseNT helenay_PIRelease_12022002_7031RC) 2&gt; /dev/null'
890 </pre></div>
891
892 <p>I don't think I should write code to escape such characters but what else can I do? We could ask this user to rename their view but apparently  Clearcase does not disallow such strange characters in view tag names (and perhaps other objects...).</p>
893
894 <h2>DNS Issues</h2>
895
896 <p>Kerrynn De Roche wrote:</p>
897
898 <blockquote type="cite">
899   <p>I just checked the etc/hosts and it seems we had last set the entries to 128.34 instead of 128.37. I changed them to 128.37 and it seems to be working now...</p>
900 </blockquote>
901
902 <p>10.136.128.37 has always been the IP address of ccase-rmna-4. If you
903 had previously had 10.138.128.34 then that was what was wrong (with
904 that workaround).</p>
905
906 <blockquote type="cite">
907   <p>I would rather not have to worry about having to check the hosts file  whenever the IP address changes though.</p>
908 </blockquote>
909
910 <p>You see that's the difference between desktops and servers - server IP
911 addresses never (or at least rarely) change. In fact in the administration business, keeping the servers IP address static is always a consideration - even if the machine is being swapped. We'll swap the IP addresses in DNS to the new machine to keep them the same precisely because of these issues. ccase-rmna-4's IP address will not change!</p>
912
913 <blockquote type="cite">
914   <p>What is the method you use to not have to worry about hosts file?</p>
915 </blockquote>
916
917 <p>As I said, in my environment it works without /etc/hosts:</p>
918
919 <div class="code"><pre>
920 <font color="#3333ff"><b>Local:</b></font><u>cat /etc/hosts</u>
921 # Copyright (c) 1993-1999 Microsoft Corp.
922 #
923 # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
924 #
925 # This file contains the mappings of IP addresses to host names. Each
926 # entry should be kept on an individual line. The IP address should
927 # be placed in the first column followed by the corresponding host name.
928 # The IP address and the host name should be separated by at least one
929 # space.
930 #
931 # Additionally, comments (such as these) may be inserted on individual
932 # lines or following the machine name denoted by a '#' symbol.
933 #
934 # For example:
935 #
936 #      102.54.94.97     rhino.acme.com          # source server
937 #       38.25.63.10     x.acme.com              # x client host
938 127.0.0.1       localhost laptop
939 #10.136.128.37  ccase-rmna-4
940 </pre></div>
941
942 <p>Note ccase-rmna-4's entry is commented out. Additionally I do not have
943 ca.broadcom.com on the DNS Suffix Search List:</p>
944
945 <div class="code"><pre>
946 <font color="#3333ff"><b>Local:</b></font><u>ipconfig /all</u>
947
948 Windows IP Configuration
949
950         Host Name . . . . . . . . . . . . : LTSJCA-ADEFARIA
951         Primary Dns Suffix  . . . . . . . : corp.ad.broadcom.com
952         Node Type . . . . . . . . . . . . : Hybrid
953         IP Routing Enabled. . . . . . . . : No
954         WINS Proxy Enabled. . . . . . . . : No
955         <font color="#ff0000"><b>DNS Suffix Search List. . . . . . : corp.ad.broadcom.com
956                                             broadcom.com</b></font>
957
958 Ethernet adapter Wireless:
959
960         Media State . . . . . . . . . . . : Media disconnected
961         Description . . . . . . . . . . . : Broadcom 802.11g Network
962 Adapter
963         Physical Address. . . . . . . . . : 00-10-18-90-1D-11
964
965 Ethernet adapter Secondary:
966
967         Media State . . . . . . . . . . . : Media disconnected
968         Description . . . . . . . . . . . : 3Com 3C920 Integrated Fast Ethernet        Controller (3C905C-TX Compatible) #2
969         Physical Address. . . . . . . . . : 00-08-74-95-4A-24
970
971 Ethernet adapter Primary:
972
973         Connection-specific DNS Suffix  . : broadcom.com
974         Description . . . . . . . . . . . : 3Com 3C920 Integrated Fast Ethernet        Controller (3C905C-TX Compatible)
975         Physical Address. . . . . . . . . : 00-B0-D0-0E-A2-71
976         Dhcp Enabled. . . . . . . . . . . : Yes
977         Autoconfiguration Enabled . . . . : Yes
978         IP Address. . . . . . . . . . . . : 10.16.65.219
979         Subnet Mask . . . . . . . . . . . : 255.255.240.0
980         Default Gateway . . . . . . . . . : 10.16.64.1
981         DHCP Server . . . . . . . . . . . : 10.16.192.15
982         DNS Servers . . . . . . . . . . . : 10.16.64.11
983                                             10.16.64.12
984                                             10.16.64.13
985         Primary WINS Server . . . . . . . : 10.16.192.15
986         Secondary WINS Server . . . . . . : 10.16.192.16
987         Lease Obtained. . . . . . . . . . : Tuesday, January 03, 2006 8:29:46 PM
988         Lease Expires . . . . . . . . . . : Friday, January 06, 2006 8:29:46 PM
989 </pre></div>
990
991 <p>So I don't have any kind of workaround any more. It just works. By that
992 I mean the following command used to fail stating a  WINSOCK error trying to contact ccase-rman-4:</p>
993
994 <div class="code"><pre>
995 <font color="#3333ff"><b>Local:</b></font><u>ct lsstream -invob \\rmna_projects</u>
996 </pre></div>
997
998 <p>(Note ct is aliased to cleartool and since I'm using Cygwin "\\" collapses to a single "\"). Now this command works for me. Note that nslookup of a bare ccase-rmna-4 still fails for me:</p>
999
1000 <div class="code"><pre>
1001 <font color="#3333ff"><b>Local:</b></font><u>nslookup ccase-rmna-4</u>
1002 *** dns-sj1-1b.sj.broadcom.com can't find ccase-rmna-4: Non-existent domain
1003 Server:  dns-sj1-1b.sj.broadcom.com
1004 Address:  10.16.64.11
1005 </pre></div>
1006
1007 <p>This is because ccase-rmna-4 (and  case-rmna-4.corp.ad.broadcom.com and ccase-rmna-4.broadcom.com from the DNS Suffix Search List) don't exist - it should be  case-rmna-4.ca.broadcom.com. But a FQDN works:</p>
1008
1009 <div class="code"><pre>
1010 <font color="#3333ff"><b>Local:</b></font><u>nslookup ccase-rmna-4.ca.broadcom.com</u>
1011 Non-authoritative answer:
1012 Server:  dns-sj1-1b.sj.broadcom.com
1013 Address:  10.16.64.11
1014
1015 Name:    ccase-rmna-4.ca.broadcom.com
1016 Address:  10.136.128.37
1017 </pre></div>
1018
1019 <p>The way resolver(3) (DNS's name resolution) works is to look at files like /etc/hosts and/or apply DNS Suffix Search Lists. So if DNS found ccase-rmna-4 in /etc/hosts it would have it's IP address. Otherwise it'll take a bare hostname of ccase-rmna-4 and append the suffixes. So if you added ca.broadcom.com to the list that also should work.</p>
1020
1021 <p>However the whole reason that Clearcase is using ccase-rmna-4 is
1022 because that's what <b>was</b> listed in the vob tag:</p>
1023
1024 <div class="code"><pre>
1025 <font color="#3333ff"><b>Local:</b></font><u>llvob \\rmna_projects</u>
1026 Tag: \rmna_projects
1027   Global path: \\cc-rmna-storage\ccstgloc-cabu\vobstore\rmna_projects.vbs
1028   Server host: ccase-rmna-4.ca.broadcom.com
1029   Access: public
1030   Mount options: 
1031   Region: rmnaNT
1032   Active: NO
1033   Vob tag replica uuid: 088b79e0.0b0c11d9.9204.00:01:80:c8:b5:2d
1034   <font color="#ff0000"><b>Vob on host: ccase-rmna-4.ca.broadcom.com</b></font>
1035 Vob server access path: /projects/ccstgloc-<span>cabu</span>/vobstore/rmna_projects.vbs
1036 Vob family uuid:  09d0e19e.8b6611d5.b03b.00:01:80:c8:b5:2d
1037 Vob replica uuid: 088b79e0.0b0c11d9.9204.00:01:80:c8:b5:2d
1038 Vob registry attributes: ucmvob,replicated
1039 </pre></div>
1040
1041 <p>but as you can see we fully qualified ccase-rmna-4 to ccase-rmna-4.ca.broadcom.com. This means that this <b>should</b> work
1042 without an /etc/host workaround or an "add to DNS Suffix Search List"
1043 workaround. Why that's not working remains a mystery.
1044                               
1045                               <p class="entry-footer">
1046                                  <span class="post-footers">Posted by  at  6:19 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000510.html">Permalink</a>
1047                                  
1048                                  
1049                               </p>
1050                            </div>
1051                         </div>
1052                      </div>
1053                      
1054                      
1055
1056                      <h2 class="date-header">January  3, 2006</h2>
1057                      <a id="a000509"></a>
1058                      <div class="entry" id="entry-509">
1059                         <h3 class="entry-header">More Clearcase modules</h3>
1060                         <div class="entry-content">
1061                            <div class="entry-body">
1062                               <ul>
1063   <li>Started creating a Clearcase.pm module to hold site specific Clearcase information</li>
1064
1065   <li>Created OSDep.pm</li>
1066
1067   <li>Worked with the Help Desk to attempt to fix problem with Windows Update</li>
1068 </ul>
1069                               
1070                               <p class="entry-footer">
1071                                  <span class="post-footers">Posted by  at  6:09 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000509.html">Permalink</a>
1072                                  
1073                                  
1074                               </p>
1075                            </div>
1076                         </div>
1077                      </div>
1078                      
1079                      
1080
1081                      <h2 class="date-header">January  2, 2006</h2>
1082                      <a id="a000508"></a>
1083                      <div class="entry" id="entry-508">
1084                         <h3 class="entry-header">cvsims/Vobs</h3>
1085                         <div class="entry-content">
1086                            <div class="entry-body">
1087                               <ul>
1088   <li>Documented set up of <a href="http://intranet.broadcom.com/~adefaria/CVS/">CVS SCP connector</a></li>
1089
1090   <li>Added more functionality to Clearcase::Vob</li>
1091
1092   <li>Coded up a preliminary stats script</li>
1093 </ul>
1094                               
1095                               <h2>CVS CSP Connector</h2>
1096
1097 <p>I've updated <a href="http://intranet.broadcom.com/~adefaria/CVS/">CVS CSP Connector</a> documentation to add a description of the CVS administrative files that need to be changed. You'll note at the bottom that the only issues that remain are where to apply this <i>CVS CSP C<span>onnector</span></i> to. I believe we were waiting for David to respond as to the design.</p>
1098
1099 <p>The other issue that I noted was about how to handle branches. IOW do we need to include the branch name in the change set that we append. With the <i>Clearcase CSP Connector</i> the view extended pathname is what is put into the change set. As you know,  Clearcase's view extended pathname will include branch names. In CVS such branch names are not included. Instead CVS relies on extending the revision number with extra digits. So a revision number of 1.1 would represent something on the main branch while 1.1.2.1 would be on some branch. There is no branch name information in there - one must do a cvs status or log command to find a branch name such as:</p>
1100
1101 <div class="code"><pre>
1102 Sticky Tag:          andrew-branch (branch: 1.1.2)
1103 </pre></div>
1104
1105 <p>then make the association between all 1.1.2.x revisions and andrew-branch above.</p>
1106
1107 <p>If David is OK with a 4, 6, 8, etc. revision number being enough to denote that this file's revision is branched and doesn't need the branch name then cvsims is effectively functionally complete. We just need to perform the CVS Setup described at <a href="http://intranet.broadcom.com/~adefaria/CVS/">CVS CSP Connector</a> on the repositories and directories under those repositories that David or others want to enforce the CVS CSP Connector on.</p>
1108
1109 <h2>stats</h2>
1110
1111 <p>Ray Tran wrote:</p>
1112  
1113 <blockquote type="cite">
1114   <p>Statistic logs - This is a script that would create two logs - one general data for each site, one for each VOB of each site.</p>
1115
1116   <p>The general data should have at the least - date_time;site;number of VOBs; number of total VOB size; number of snapshot views; number of dynamic views; number of file elements; number of directory element;...</p>
1117 </blockquote>
1118
1119 <p>I need a little clarification about some of the above...</p>
1120
1121 <ul>
1122   <li>How do you define "site"? I take it that in general we have Clearcase region of &lt;site&gt;NT and &lt;site&gt;UNIX. Is that always the case?</li>
1123
1124   <li>As for #vobs - skip private vobs?</li>
1125
1126   <li>As for #vobs, #snapshot views and #dynamic views: Which region is that for? As you know most of our stuff is actually in the NT region not the Unix region. Yet I expect that this script will run from the Unix region. I could -region however often that doesn't work. For example, if I'm on Unix and I do the following to interrogate the NT region it fails:<br>
1127     <br>
1128     <div class="code"><pre>
1129 <font color="#3333ff"><b>ccase-rmna-3:</b></font><u>ct lsview -region rmnaNT adefaria_dynamic</u>
1130   adefaria_dynamic     \\<span>ltsjca</span>-adefaria\Views\adefaria_dynamic.vws
1131 <font color="#3333ff"><b>ccase-rmna-3:</b></font><u>ct lsview -full -properties -region rmnaNT 
1132 adefaria_dynamic</u>
1133   adefaria_dynamic     \\ltsjca-adefaria\Views\adefaria_dynamic.vws
1134 cleartool: Error: Unknown host 'ltsjca-adefaria': Host not found
1135 cleartool: Error: Unable to get view handle: error detected by ClearCase subsystem.
1136   </pre></div>
1137
1138     <p>This is our familar "it fails because ltsjca-adefaria does not resolve in DNS" problem. But I need to do this with -full and -properties to determine if the view is a snapshot or dynamic (and/or a ucmview)!</p>
1139
1140     <p>Normally this would be the result of an lsview with -full and -properties:</p>
1141
1142     <div class="code"><pre>
1143     <font color="#3333ff"><b>ccase-rmna-3:</b></font><u>ct lsview -full -properties phonex_3.0</u>
1144   phonex_3.0           /projects/ccstgloc-cabu/viewstore/nnalluri/phonex_3.0.vws
1145 Created 29-Dec-04.16:48:19 by nnalluri.clearusers@ccase-rmna-3
1146 Last modified 29-Dec-04.16:48:20 by nnalluri.clearusers@ccase-rmna-3
1147 Last accessed 29-Dec-04.16:48:20 by nnalluri.clearusers@ccase-rmna-3
1148 Last config spec update 29-Dec-04.16:48:20 by nnalluri.clearusers@ccase-rmna-3
1149 Text mode: unix
1150 Properties: dynamic ucmview readwrite shareable_dos
1151 Owner: richmond/nnalluri : rwx (all)
1152 Group: richmond/clearusers : r-x (read)
1153 Other:                  : r-x (read)
1154 Additional groups: richmond/brcm richmond/users
1155 richmond/ccadmin richmond/clearcase richmond/cc_ecan richmond/rmna180qa
1156     </pre></div>
1157     
1158     <p>Also should I do attempt to somehow combine the NT and Unix regions? If so then I'd need to figure out any vobs/views that are tagged in both regions. Or should I only consider the NT region?</p></li>
1159
1160   <li>As for #element, how does one determine this? I mean it is possible for somebody to create a new vob, check out the vob root directory to a specific branch, do a clearfsimport of
1161 thousands of elements and check in the root directory. From the perspective of a default view (just CHECKEDOUT and main/LATEST) I would not see nor be able to tabulate those thousands of elements... That's an extreme however the point is, with directories being  versioned it is really quite difficult to be able to get an accurate count of #elements.</li>
1162
1163   <li>BTW: It seems the majority of views are hosted on the individuals desktop or laptop and most of the time getting information about such views is near impossible. Often I get a winsock error saying it can't connect to the machine or an "unable to contact albd_server on host...".</li>
1164 </ul>
1165
1166 <blockquote type="cite">
1167   <p>The VOB specific data - date_time;site;VOB_name;size of database;size of source pool; size of devired object; size of cleartext; size of admin data.</p>
1168
1169   <p>The directory structure that I envisioned is as such</p> 
1170
1171   <p>/projects/scm_tools_logs</p>
1172
1173   <blockquote>-cc
1174     <blockquote>- 2005
1175       <blockquote>- 12
1176         <blockquote>- 01
1177         </blockquote>
1178       </blockquote>
1179     </blockquote>
1180   </blockquote>
1181 </blockquote>
1182
1183 <p>I have a preliminary version of this working (Need to code up something to get the current site) at SCM/cc/stats. Output for rmna site looks like:</p>
1184
1185 <div class="code"><pre>
1186 ################################################################################<br>
1187 #
1188 # File:         vob.log
1189 # Description:  This file contains a list of all vobs at rmna along with some
1190 #               statistical information.
1191 # Format:       The format of this file is:
1192 #
1193 # date/time;site;VOB name;db size;src size;do size;<span>clrtxt</span>
1194 size;adm size
1195 #
1196 ################################################################################<br>
1197 20060102@18:23;rmna;A1;0.3;0.0;0.00.0;0.1;0.4
1198 20060102@18:23;rmna;<span>CommEngine</span>;1569.3;2920.2;0.064.3;0.1;4553.8
1199 20060102@18:23;rmna;<span>NewTest</span>;0.2;0.0;0.00.0;0.1;0.2
1200 20060102@18:23;rmna;<span>OnePhone</span>;1226.7;3007.9;0.0321.0;0.1;4555.7
1201 20060102@18:23;rmna;<span>SpiceBoxSW</span>;114.3;169.3;0.00.0;0.1;283.7
1202 20060102@18:23;rmna;<span>TrainCommEngine</span>;1.6;10.7;0.00.0;0.1;12.4
1203 20060102@18:23;rmna;adm;0.6;277.8;0.0547.0;0.1;825.5
1204 20060102@18:23;rmna;alpha_video;115.9;205.9;0.00.0;0.1;321.8
1205 </pre></div>
1206
1207 <p>and</p>
1208
1209 <div class="code"><pre>
1210 #################################################################################<br>
1211 # File:         rmna.log
1212 # Description:  This file contains statistical information about the vobs/views
1213 #               at this site.
1214 # Format:       The format of this file is:
1215 #
1216 # date/time;site;nbr vobs;total vob size;nbr snapshot;nbr dynamic;nbr ucm;nbr file elements;nbr dir elements
1217 #
1218 ################################################################################<br>
1219 20060102@19:58;rmna;57;54222.1;0;10;5;&lt;To be determined&gt;;&lt;To be determined&gt;
1220 </pre></div>
1221                               
1222                               <p class="entry-footer">
1223                                  <span class="post-footers">Posted by  at  2:56 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000508.html">Permalink</a>
1224                                  
1225                                  
1226                               </p>
1227                            </div>
1228                         </div>
1229                      </div>
1230                      
1231                   </div>
1232                </div>
1233             </div>
1234          </div>
1235       </div>
1236    </div>
1237 </body>
1238 </html>