Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000508.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: cvsims/Vobs</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/000507.html" title="pulse" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000509.html" title="More Clearcase modules" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
29             <div id="banner-inner" class="pkg">
30                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31                <h2 id="banner-description">Searchable status reports and work log</h2>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000507.html">&laquo; pulse</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000509.html">More Clearcase modules &raquo;</a>
44                      </p>
45
46                      <a id="a000508"></a>
47                      <div class="entry" id="entry-508">
48                         <h3 class="entry-header">cvsims/Vobs</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Documented set up of <a href="http://intranet.broadcom.com/~adefaria/CVS/">CVS SCP connector</a></li>
53
54   <li>Added more functionality to Clearcase::Vob</li>
55
56   <li>Coded up a preliminary stats script</li>
57 </ul>
58                            </div>
59                            <div id="more" class="entry-more">
60                               <h2>CVS CSP Connector</h2>
61
62 <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>
63
64 <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>
65
66 <div class="code"><pre>
67 Sticky Tag:          andrew-branch (branch: 1.1.2)
68 </pre></div>
69
70 <p>then make the association between all 1.1.2.x revisions and andrew-branch above.</p>
71
72 <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>
73
74 <h2>stats</h2>
75
76 <p>Ray Tran wrote:</p>
77  
78 <blockquote type="cite">
79   <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>
80
81   <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>
82 </blockquote>
83
84 <p>I need a little clarification about some of the above...</p>
85
86 <ul>
87   <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>
88
89   <li>As for #vobs - skip private vobs?</li>
90
91   <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>
92     <br>
93     <div class="code"><pre>
94 <font color="#3333ff"><b>ccase-rmna-3:</b></font><u>ct lsview -region rmnaNT adefaria_dynamic</u>
95   adefaria_dynamic     \\<span>ltsjca</span>-adefaria\Views\adefaria_dynamic.vws
96 <font color="#3333ff"><b>ccase-rmna-3:</b></font><u>ct lsview -full -properties -region rmnaNT 
97 adefaria_dynamic</u>
98   adefaria_dynamic     \\ltsjca-adefaria\Views\adefaria_dynamic.vws
99 cleartool: Error: Unknown host 'ltsjca-adefaria': Host not found
100 cleartool: Error: Unable to get view handle: error detected by ClearCase subsystem.
101   </pre></div>
102
103     <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>
104
105     <p>Normally this would be the result of an lsview with -full and -properties:</p>
106
107     <div class="code"><pre>
108     <font color="#3333ff"><b>ccase-rmna-3:</b></font><u>ct lsview -full -properties phonex_3.0</u>
109   phonex_3.0           /projects/ccstgloc-cabu/viewstore/nnalluri/phonex_3.0.vws
110 Created 29-Dec-04.16:48:19 by nnalluri.clearusers@ccase-rmna-3
111 Last modified 29-Dec-04.16:48:20 by nnalluri.clearusers@ccase-rmna-3
112 Last accessed 29-Dec-04.16:48:20 by nnalluri.clearusers@ccase-rmna-3
113 Last config spec update 29-Dec-04.16:48:20 by nnalluri.clearusers@ccase-rmna-3
114 Text mode: unix
115 Properties: dynamic ucmview readwrite shareable_dos
116 Owner: richmond/nnalluri : rwx (all)
117 Group: richmond/clearusers : r-x (read)
118 Other:                  : r-x (read)
119 Additional groups: richmond/brcm richmond/users
120 richmond/ccadmin richmond/clearcase richmond/cc_ecan richmond/rmna180qa
121     </pre></div>
122     
123     <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>
124
125   <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
126 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>
127
128   <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>
129 </ul>
130
131 <blockquote type="cite">
132   <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>
133
134   <p>The directory structure that I envisioned is as such</p> 
135
136   <p>/projects/scm_tools_logs</p>
137
138   <blockquote>-cc
139     <blockquote>- 2005
140       <blockquote>- 12
141         <blockquote>- 01
142         </blockquote>
143       </blockquote>
144     </blockquote>
145   </blockquote>
146 </blockquote>
147
148 <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>
149
150 <div class="code"><pre>
151 ################################################################################<br>
152 #
153 # File:         vob.log
154 # Description:  This file contains a list of all vobs at rmna along with some
155 #               statistical information.
156 # Format:       The format of this file is:
157 #
158 # date/time;site;VOB name;db size;src size;do size;<span>clrtxt</span>
159 size;adm size
160 #
161 ################################################################################<br>
162 20060102@18:23;rmna;A1;0.3;0.0;0.00.0;0.1;0.4
163 20060102@18:23;rmna;<span>CommEngine</span>;1569.3;2920.2;0.064.3;0.1;4553.8
164 20060102@18:23;rmna;<span>NewTest</span>;0.2;0.0;0.00.0;0.1;0.2
165 20060102@18:23;rmna;<span>OnePhone</span>;1226.7;3007.9;0.0321.0;0.1;4555.7
166 20060102@18:23;rmna;<span>SpiceBoxSW</span>;114.3;169.3;0.00.0;0.1;283.7
167 20060102@18:23;rmna;<span>TrainCommEngine</span>;1.6;10.7;0.00.0;0.1;12.4
168 20060102@18:23;rmna;adm;0.6;277.8;0.0547.0;0.1;825.5
169 20060102@18:23;rmna;alpha_video;115.9;205.9;0.00.0;0.1;321.8
170 </pre></div>
171
172 <p>and</p>
173
174 <div class="code"><pre>
175 #################################################################################<br>
176 # File:         rmna.log
177 # Description:  This file contains statistical information about the vobs/views
178 #               at this site.
179 # Format:       The format of this file is:
180 #
181 # date/time;site;nbr vobs;total vob size;nbr snapshot;nbr dynamic;nbr ucm;nbr file elements;nbr dir elements
182 #
183 ################################################################################<br>
184 20060102@19:58;rmna;57;54222.1;0;10;5;&lt;To be determined&gt;;&lt;To be determined&gt;
185 </pre></div>
186                            </div>
187                         </div>
188                         <p class="entry-footer">
189                            <span class="post-footers">Posted by  on January  2, 2006  2:56 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000508.html">Permalink</a>
190                         </p>
191                      </div>
192
193                      
194
195                      
196                   </div>
197                </div>
198             </div>
199          </div>
200       </div>
201    </div>
202 </body>
203 </html>