2 <html lang="en-us" itemscope itemtype="http://schema.org/Article">
5 <meta name="description" content=" Standardized some modules a little bit Added much more functionality to Clearcase modules and tied that into stats and log_activity Changed the startup of many scripts to be more standard Implemented much more functionality in stats...">
6 <meta name="generator" content="Movable Type 5.2.3">
7 <title>More module coding - Status</title>
8 <link rel="alternate" type="application/atom+xml" title="Recent Entries" href="http://defaria.com/blogs/Status/atom.xml">
9 <link rel="canonical" href="http://defaria.com/blogs/Status/2006/01/more-module-cod.html">
10 <meta name="viewport" content="width=device-width,initial-scale=1">
11 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles.css">
13 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles_ie.css">
14 <script src="/mt/mt-static/support/theme_static/rainier/js/html5shiv.js"></script>
17 <link rel="start" href="http://defaria.com/blogs/Status/">
19 <link rel="prev" href="http://defaria.com/blogs/Status/2006/01/more-clearcase.html" title="More Clearcase modules">
20 <link rel="next" href="http://defaria.com/blogs/Status/2006/01/mailpmcq-web.html" title="Mail.pm/CQ Web">
21 <!-- Open Graph Protocol -->
22 <meta property="og:type" content="article">
23 <meta property="og:locale" content="en-us">
24 <meta property="og:title" content="More module coding">
25 <meta property="og:url" content="http://defaria.com/blogs/Status/2006/01/more-module-cod.html">
26 <meta property="og:description" content=" Standardized some modules a little bit Added much more functionality to Clearcase modules and tied that into stats and log_activity Changed the startup of many scripts to be more standard Implemented much more functionality in stats...">
27 <meta property="og:site_name" content="Status">
28 <meta property="og:image" content="/mt/mt-static/support/theme_static/rainier/img/siteicon-sample.png">
30 <meta itemprop="description" content=" Standardized some modules a little bit Added much more functionality to Clearcase modules and tied that into stats and log_activity Changed the startup of many scripts to be more standard Implemented much more functionality in stats...">
31 <link itemprop="url" href="http://defaria.com/blogs/Status/2006/01/more-module-cod.html">
32 <link itemprop="image" href="/mt/mt-static/support/theme_static/rainier/img/siteicon-sample.png">
37 <div id="container-inner">
38 <header id="header" role="banner">
39 <div id="header-inner">
40 <div id="header-content">
42 <a href="http://defaria.com/blogs/Status/">
51 <nav role="navigation">
53 <li><a href="http://defaria.com/blogs/Status/">Home</a></li>
62 <div id="content-inner">
63 <ul class="breadcrumb breadcrumb-list">
64 <li class="breadcrumb-list-item"><a href="http://defaria.com/blogs/Status/">Home</a></li>
65 <li class="breadcrumb-list-item">More module coding</li>
67 <div id="individual-main" class="main" role="main">
68 <article id="entry-1773" class="entry entry-asset asset hentry">
69 <div class="asset-header">
70 <h2 itemprop="name" class="asset-name entry-title">More module coding</h2>
71 <footer class="asset-meta">
72 <ul class="asset-meta-list">
73 <li class="asset-meta-list-item">Posted on <time datetime="2006-01-04T18:19:15-08:00" itemprop="datePublished">January 4, 2006</time></li>
74 <li class="asset-meta-list-item">by <span class="author entry-author vcard"></span></li>
77 <li class="asset-meta-list-item">in <a itemprop="articleSection" rel="tag" href="http://defaria.com/blogs/Status/broadcom/">Broadcom</a></li>
83 <div class="entry-content asset-content" itemprop="articleBody">
85 <li>Standardized some modules a little bit</li>
87 <li>Added much more functionality to Clearcase modules and tied that into stats and log_activity</li>
89 <li>Changed the startup of many scripts to be more standard</li>
91 <li>Implemented much more functionality in stats</li>
93 <h2>Odd characters in view tags</h2>
95 <p>I found this odd view tag in the <span>SanJoseNT</span> region:
97 <div class="code"><pre>
98 ccase-sj1-1:ct lsview -long -region SanJoseNT helenay_PIRelease_12022002_7031RC\)
99 Tag: helenay_PIRelease_12022002_7031RC)
100 Global path: \\Pc-1ubrv\Myview\helenay.v.vws
101 Server host: Pc-1ubrv
104 View tag uuid:132d6e50.0eee11d7.a7a4.00:b0:d0:20:ba:8a
105 View on host: Pc-1ubrv
106 View server access path: F:\Myview\helenay.v.vws
107 View uuid: 132d6e50.0eee11d7.a7a4.00:b0:d0:20:ba:8a
108 View attributes: snapshot
109 View owner: BROADCOM\helenay
112 <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>
114 <div class="code"><pre>
115 `cleartool lsview -long -region SanJoseNT $view_tag 2> /dev/null`
118 <p>when $view_tag is the above results in:</p>
120 <div class="code"><pre>
121 sh: -c: line 1: syntax error near unexpected token `)'
122 sh: -c: line 1: `cleartool lsview -long -region SanJoseNT helenay_PIRelease_12022002_7031RC) 2> /dev/null'
125 <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>
129 <p>Kerrynn De Roche wrote:</p>
131 <blockquote type="cite">
132 <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>
135 <p>10.136.128.37 has always been the IP address of ccase-rmna-4. If you
136 had previously had 10.138.128.34 then that was what was wrong (with
137 that workaround).</p>
139 <blockquote type="cite">
140 <p>I would rather not have to worry about having to check the hosts file whenever the IP address changes though.</p>
143 <p>You see that's the difference between desktops and servers - server IP
144 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>
146 <blockquote type="cite">
147 <p>What is the method you use to not have to worry about hosts file?</p>
150 <p>As I said, in my environment it works without /etc/hosts:</p>
152 <div class="code"><pre>
153 <font color="#3333ff"><b>Local:</b></font><u>cat /etc/hosts</u>
154 # Copyright (c) 1993-1999 Microsoft Corp.
156 # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
158 # This file contains the mappings of IP addresses to host names. Each
159 # entry should be kept on an individual line. The IP address should
160 # be placed in the first column followed by the corresponding host name.
161 # The IP address and the host name should be separated by at least one
164 # Additionally, comments (such as these) may be inserted on individual
165 # lines or following the machine name denoted by a '#' symbol.
169 # 102.54.94.97 rhino.acme.com # source server
170 # 38.25.63.10 x.acme.com # x client host
171 127.0.0.1 localhost laptop
172 #10.136.128.37 ccase-rmna-4
175 <p>Note ccase-rmna-4's entry is commented out. Additionally I do not have
176 ca.broadcom.com on the DNS Suffix Search List:</p>
178 <div class="code"><pre>
179 <font color="#3333ff"><b>Local:</b></font><u>ipconfig /all</u>
181 Windows IP Configuration
183 Host Name . . . . . . . . . . . . : LTSJCA-ADEFARIA
184 Primary Dns Suffix . . . . . . . : corp.ad.broadcom.com
185 Node Type . . . . . . . . . . . . : Hybrid
186 IP Routing Enabled. . . . . . . . : No
187 WINS Proxy Enabled. . . . . . . . : No
188 <font color="#ff0000"><b>DNS Suffix Search List. . . . . . : corp.ad.broadcom.com
189 broadcom.com</b></font>
191 Ethernet adapter Wireless:
193 Media State . . . . . . . . . . . : Media disconnected
194 Description . . . . . . . . . . . : Broadcom 802.11g Network
196 Physical Address. . . . . . . . . : 00-10-18-90-1D-11
198 Ethernet adapter Secondary:
200 Media State . . . . . . . . . . . : Media disconnected
201 Description . . . . . . . . . . . : 3Com 3C920 Integrated Fast Ethernet Controller (3C905C-TX Compatible) #2
202 Physical Address. . . . . . . . . : 00-08-74-95-4A-24
204 Ethernet adapter Primary:
206 Connection-specific DNS Suffix . : broadcom.com
207 Description . . . . . . . . . . . : 3Com 3C920 Integrated Fast Ethernet Controller (3C905C-TX Compatible)
208 Physical Address. . . . . . . . . : 00-B0-D0-0E-A2-71
209 Dhcp Enabled. . . . . . . . . . . : Yes
210 Autoconfiguration Enabled . . . . : Yes
211 IP Address. . . . . . . . . . . . : 10.16.65.219
212 Subnet Mask . . . . . . . . . . . : 255.255.240.0
213 Default Gateway . . . . . . . . . : 10.16.64.1
214 DHCP Server . . . . . . . . . . . : 10.16.192.15
215 DNS Servers . . . . . . . . . . . : 10.16.64.11
218 Primary WINS Server . . . . . . . : 10.16.192.15
219 Secondary WINS Server . . . . . . : 10.16.192.16
220 Lease Obtained. . . . . . . . . . : Tuesday, January 03, 2006 8:29:46 PM
221 Lease Expires . . . . . . . . . . : Friday, January 06, 2006 8:29:46 PM
224 <p>So I don't have any kind of workaround any more. It just works. By that
225 I mean the following command used to fail stating a WINSOCK error trying to contact ccase-rman-4:</p>
227 <div class="code"><pre>
228 <font color="#3333ff"><b>Local:</b></font><u>ct lsstream -invob \\rmna_projects</u>
231 <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>
233 <div class="code"><pre>
234 <font color="#3333ff"><b>Local:</b></font><u>nslookup ccase-rmna-4</u>
235 *** dns-sj1-1b.sj.broadcom.com can't find ccase-rmna-4: Non-existent domain
236 Server: dns-sj1-1b.sj.broadcom.com
240 <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>
242 <div class="code"><pre>
243 <font color="#3333ff"><b>Local:</b></font><u>nslookup ccase-rmna-4.ca.broadcom.com</u>
244 Non-authoritative answer:
245 Server: dns-sj1-1b.sj.broadcom.com
248 Name: ccase-rmna-4.ca.broadcom.com
249 Address: 10.136.128.37
252 <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>
254 <p>However the whole reason that Clearcase is using ccase-rmna-4 is
255 because that's what <b>was</b> listed in the vob tag:</p>
257 <div class="code"><pre>
258 <font color="#3333ff"><b>Local:</b></font><u>llvob \\rmna_projects</u>
260 Global path: \\cc-rmna-storage\ccstgloc-cabu\vobstore\rmna_projects.vbs
261 Server host: ccase-rmna-4.ca.broadcom.com
266 Vob tag replica uuid: 088b79e0.0b0c11d9.9204.00:01:80:c8:b5:2d
267 <font color="#ff0000"><b>Vob on host: ccase-rmna-4.ca.broadcom.com</b></font>
268 Vob server access path: /projects/ccstgloc-<span>cabu</span>/vobstore/rmna_projects.vbs
269 Vob family uuid: 09d0e19e.8b6611d5.b03b.00:01:80:c8:b5:2d
270 Vob replica uuid: 088b79e0.0b0c11d9.9204.00:01:80:c8:b5:2d
271 Vob registry attributes: ucmvob,replicated
274 <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
275 without an /etc/host workaround or an "add to DNS Suffix Search List"
276 workaround. Why that's not working remains a mystery.
278 <nav class="page-navigation entry-navigation pagination content-nav">
279 <ul class="page-navigation-list">
281 <li class="page-navigation-list-item page-navigation-prev"><a rel="prev" href="http://defaria.com/blogs/Status/2006/01/more-clearcase.html" title="More Clearcase modules">Previous entry</a></li>
284 <li class="page-navigation-list-item page-navigation-next"><a rel="next" href="http://defaria.com/blogs/Status/2006/01/mailpmcq-web.html" title="Mail.pm/CQ Web">Next entry</a></li>
289 <aside id="zenback" class="zenback feedback">
290 Please paste Zenback script code here.
297 <aside class="widgets related" role="complementary">
298 <nav class="widget-search widget">
299 <div class="widget-content">
300 <form method="get" id="search" action="http://defaria.com/mt/mt-search.cgi">
302 <input type="text" name="search" value="" placeholder="Search...">
304 <input type="hidden" name="IncludeBlogs" value="8">
306 <input type="hidden" name="limit" value="20">
307 <button type="submit" name="button">
308 <img alt="Search" src="/mt/mt-static/support/theme_static/rainier/img/search-icon.png">
314 <nav class="widget-archive-category widget">
315 <h3 class="widget-header">Categories</h3>
316 <div class="widget-content">
319 <ul class="widget-list">
322 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/ameriquest/">Ameriquest (99)</a>
330 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/audience/">Audience (3)</a>
338 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/broadcom/">Broadcom (76)</a>
346 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/gpdb/">GPDB (35)</a>
354 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/general-dynamics/">General Dynamics (61)</a>
362 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/general-electric/">General Electric (13)</a>
370 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/hewlett-packard/">Hewlett Packard (13)</a>
378 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/lynuxworks/">LynuxWorks (162)</a>
386 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/pqa/">PQA (35)</a>
394 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/salira/">Salira (79)</a>
402 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/tellabs/">Tellabs (2)</a>
410 <li class="widget-list-item"><a href="http://defaria.com/blogs/Status/texas-instruments/">Texas Instruments (31)</a>
422 <nav class="widget-archive-dropdown widget">
423 <h3 class="widget-header">Archives</h3>
424 <div class="widget-content">
426 <option>Select a Month...</option>
428 <option value="http://defaria.com/blogs/Status/2016/02/">February 2016</option>
432 <option value="http://defaria.com/blogs/Status/2014/09/">September 2014</option>
436 <option value="http://defaria.com/blogs/Status/2014/04/">April 2014</option>
440 <option value="http://defaria.com/blogs/Status/2014/03/">March 2014</option>
444 <option value="http://defaria.com/blogs/Status/2013/02/">February 2013</option>
448 <option value="http://defaria.com/blogs/Status/2012/09/">September 2012</option>
452 <option value="http://defaria.com/blogs/Status/2012/08/">August 2012</option>
456 <option value="http://defaria.com/blogs/Status/2012/05/">May 2012</option>
460 <option value="http://defaria.com/blogs/Status/2012/04/">April 2012</option>
464 <option value="http://defaria.com/blogs/Status/2012/02/">February 2012</option>
468 <option value="http://defaria.com/blogs/Status/2012/01/">January 2012</option>
472 <option value="http://defaria.com/blogs/Status/2011/10/">October 2011</option>
476 <option value="http://defaria.com/blogs/Status/2011/07/">July 2011</option>
480 <option value="http://defaria.com/blogs/Status/2010/09/">September 2010</option>
484 <option value="http://defaria.com/blogs/Status/2010/08/">August 2010</option>
488 <option value="http://defaria.com/blogs/Status/2010/04/">April 2010</option>
492 <option value="http://defaria.com/blogs/Status/2010/03/">March 2010</option>
496 <option value="http://defaria.com/blogs/Status/2010/02/">February 2010</option>
500 <option value="http://defaria.com/blogs/Status/2009/05/">May 2009</option>
504 <option value="http://defaria.com/blogs/Status/2009/04/">April 2009</option>
508 <option value="http://defaria.com/blogs/Status/2008/07/">July 2008</option>
512 <option value="http://defaria.com/blogs/Status/2008/05/">May 2008</option>
516 <option value="http://defaria.com/blogs/Status/2008/04/">April 2008</option>
520 <option value="http://defaria.com/blogs/Status/2008/03/">March 2008</option>
524 <option value="http://defaria.com/blogs/Status/2008/02/">February 2008</option>
528 <option value="http://defaria.com/blogs/Status/2008/01/">January 2008</option>
532 <option value="http://defaria.com/blogs/Status/2007/12/">December 2007</option>
536 <option value="http://defaria.com/blogs/Status/2007/11/">November 2007</option>
540 <option value="http://defaria.com/blogs/Status/2007/10/">October 2007</option>
544 <option value="http://defaria.com/blogs/Status/2007/09/">September 2007</option>
548 <option value="http://defaria.com/blogs/Status/2007/08/">August 2007</option>
552 <option value="http://defaria.com/blogs/Status/2007/07/">July 2007</option>
556 <option value="http://defaria.com/blogs/Status/2007/06/">June 2007</option>
560 <option value="http://defaria.com/blogs/Status/2007/05/">May 2007</option>
564 <option value="http://defaria.com/blogs/Status/2007/04/">April 2007</option>
568 <option value="http://defaria.com/blogs/Status/2007/03/">March 2007</option>
572 <option value="http://defaria.com/blogs/Status/2007/01/">January 2007</option>
576 <option value="http://defaria.com/blogs/Status/2006/12/">December 2006</option>
580 <option value="http://defaria.com/blogs/Status/2006/11/">November 2006</option>
584 <option value="http://defaria.com/blogs/Status/2006/10/">October 2006</option>
588 <option value="http://defaria.com/blogs/Status/2006/09/">September 2006</option>
592 <option value="http://defaria.com/blogs/Status/2006/07/">July 2006</option>
596 <option value="http://defaria.com/blogs/Status/2006/06/">June 2006</option>
600 <option value="http://defaria.com/blogs/Status/2006/05/">May 2006</option>
604 <option value="http://defaria.com/blogs/Status/2006/04/">April 2006</option>
608 <option value="http://defaria.com/blogs/Status/2006/03/">March 2006</option>
612 <option value="http://defaria.com/blogs/Status/2006/02/">February 2006</option>
616 <option value="http://defaria.com/blogs/Status/2006/01/">January 2006</option>
620 <option value="http://defaria.com/blogs/Status/2005/12/">December 2005</option>
624 <option value="http://defaria.com/blogs/Status/2005/11/">November 2005</option>
628 <option value="http://defaria.com/blogs/Status/2005/10/">October 2005</option>
632 <option value="http://defaria.com/blogs/Status/2005/09/">September 2005</option>
636 <option value="http://defaria.com/blogs/Status/2005/08/">August 2005</option>
640 <option value="http://defaria.com/blogs/Status/2005/07/">July 2005</option>
644 <option value="http://defaria.com/blogs/Status/2005/06/">June 2005</option>
648 <option value="http://defaria.com/blogs/Status/2005/05/">May 2005</option>
652 <option value="http://defaria.com/blogs/Status/2005/04/">April 2005</option>
656 <option value="http://defaria.com/blogs/Status/2005/03/">March 2005</option>
660 <option value="http://defaria.com/blogs/Status/2005/02/">February 2005</option>
664 <option value="http://defaria.com/blogs/Status/2005/01/">January 2005</option>
668 <option value="http://defaria.com/blogs/Status/2004/12/">December 2004</option>
672 <option value="http://defaria.com/blogs/Status/2004/09/">September 2004</option>
676 <option value="http://defaria.com/blogs/Status/2004/08/">August 2004</option>
680 <option value="http://defaria.com/blogs/Status/2004/07/">July 2004</option>
684 <option value="http://defaria.com/blogs/Status/2004/06/">June 2004</option>
688 <option value="http://defaria.com/blogs/Status/2004/05/">May 2004</option>
692 <option value="http://defaria.com/blogs/Status/2004/04/">April 2004</option>
696 <option value="http://defaria.com/blogs/Status/2004/03/">March 2004</option>
700 <option value="http://defaria.com/blogs/Status/2004/02/">February 2004</option>
704 <option value="http://defaria.com/blogs/Status/2004/01/">January 2004</option>
708 <option value="http://defaria.com/blogs/Status/2003/12/">December 2003</option>
712 <option value="http://defaria.com/blogs/Status/2003/11/">November 2003</option>
720 <div class="widget-syndication widget section">
721 <div class="widget-content">
722 <p><img src="http://defaria.com/mt/mt-static/images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="http://defaria.com/blogs/Status/atom.xml">Subscribe to this blog's feed</a></p>
730 <footer id="footer" role="contentinfo">
731 <div id="footer-inner">
732 <div id="footer-content">
733 <nav role="navigation">
735 <li><a href="http://defaria.com/blogs/Status/">Home</a></li>
741 <p class="license">© Copyright 2016.</p>
742 <p class="poweredby">Powered by <a href="http://www.movabletype.org/">Movable Type</a></p>
748 <script src="http://defaria.com/mt/mt-static/jquery/jquery.min.js"></script>
749 <script src="http://defaria.com/blogs/Status/mt-theme-scale2.js"></script>