Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000432.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: Code Page/rgy_switchover</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/000431.html" title="Clearquest Code Pages" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000435.html" title="Clearcase Deliver problem" />
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/000431.html">&laquo; Clearquest Code Pages</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000435.html">Clearcase Deliver problem &raquo;</a>
44                      </p>
45
46                      <a id="a000432"></a>
47                      <div class="entry" id="entry-432">
48                         <h3 class="entry-header">Code Page/rgy_switchover</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Worked more on detecting and report invalid ASCII characters in PQA databases</li>
53
54   <li>Working with IBM Rational Support regarding rgy_switchover</li>
55 </ul>
56                            </div>
57                            <div id="more" class="entry-more">
58                               <h3>Code Page</h3>
59
60 <p>Managed to get the non ASCII characters in the databases down to a handful of cases and implement a "fix_char" routine. The basic mapping turns out to be:</p.
61
62 <div class="code"><pre>
63 # Translate from special char -> ASCII
64 my %char_mapping = (
65   "ffffff85"    => "_",
66   "ffffff91"    => "\'",
67   "ffffff92"    => "\'",
68   "ffffff93"    => "\"",
69   "ffffff94"    => "\"",
70   "ffffff96"    => "-",
71 #  "ffffffa2"   =>
72 #  "ffffffae"   =>
73   "ffffffb7"    => "\."
74 #  "ffffffbd"   => "1/2",
75 #  "ffffffe7"   => ???
76 );
77 </pre></div>
78
79 <p>The commented out lines represent characters I have not be able to determine the ASCII equivalents, except the 1/2 which is a 1/2 in one character. In order to translate the one character 1/2 to the 3 character 1/2 I would need to expand the array. I have not done this yet.</p>
80
81 <h3>PMR#59845,999,000 backup rgy switchover not working on Windows clients</h3>
82
83 <p>Steven Chaves wrote:</p>
84
85 <blockquote><p>Andrew,</p>
86
87 <p>During the tech session, other TSEs did say that rgy_switchover does not always work. For DNS resolution, running:  ipconfig /release and then afterwards ipconfig /renew usually works, but this would have to be done on each client. Can you give the servers fixed IP addresses.</p></blockquote>
88
89 <p>There still seems to be some confusion here. I will attempt to be explicit here.</p>
90
91 <p>I realize that rgy_switchover will not always work 100%. Client machines may be down, etc. However what I'm seeing is that rgy_switchover never works - or at least never works with any of the Windows client  machines who has their IP address assigned via DHCP and who's Windows machine name (WINS name) != Unix DNS CNAME.</p>
92
93 <p>Here's the situation. There are two Unix Solaris boxes: ccase-sj1-3 (10.16.191.241) and ccase-sj1-4 (10.16.191.243). Both are servers and have statically assigned IP addresses.</p>
94
95 <p>There are just a few Windows clients in this test scenario, mostly laptops. All fail. All have DHCP assigned IP addresses and Windows computer names that are not the same as DNS. Let's use my laptop as an example: ltsjca-adefaria (10.16.191.243) is it's name. It's a Windows XP box, is a laptop yet remains docked at my desk.</p>
96
97 <p>When the rgy_switchover command was run from ccase-sj1-3 to switch over to ccase-sj1-4 both ccase-sj1-3 and ccase-sj1-4 became aware of the change and switched over. None (i.e. 0) of the other clients (all DHCP assigned Windows boxes) failed, including my laptop (who's IP address, BTW, had not changed).</p>
98
99 <p>Investigating I find that I can nslookup and ping ccase-sj1-3 and ccase-sj1-4 from my laptop, ltsjca-adefaria</p>
100
101 <div class="code"><pre>
102     <font color="blue"><b>Local:</b></font><u>nslookup ccase-sj1-3</u>
103     Server:  dns-sj1-1b.sj.broadcom.com
104     Address:  10.16.64.11
105
106     Name:    ccase-sj1-3.sj.broadcom.com
107     Address:  10.16.191.241
108     Aliases:  ccase-sj1-3.broadcom.com
109
110     <font color="blue"><b>Local:</b></font><u>nslookup ccase-sj1-4</u>
111     Server:  dns-sj1-1b.sj.broadcom.com
112     Address:  10.16.64.11
113
114     Name:    ccase-sj1-4.sj.broadcom.com
115     Address:  10.16.191.243
116     Aliases:  ccase-sj1-4.broadcom.com
117     <font color="blue"><b>Local:</b></font><u>ping ccase-sj1-3</u>
118     Pinging ccase-sj1-3.sj.broadcom.com [10.16.191.241] with 32 bytes of data:
119
120     Reply from 10.16.191.241: bytes=32 time<1ms TTL=254
121     Reply from 10.16.191.241: bytes=32 time<1ms TTL=254
122     Reply from 10.16.191.241: bytes=32 time<1ms TTL=254
123     Reply from 10.16.191.241: bytes=32 time<1ms TTL=254
124
125     Ping statistics for 10.16.191.241:
126         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
127     Approximate round trip times in milli-seconds:
128         Minimum = 0ms, Maximum = 0ms, Average = 0ms
129     <font color="blue"><b>Local:</b></font><u>ping ccase-sj1-4</u>
130     Pinging ccase-sj1-4.sj.broadcom.com [10.16.191.243] with 32 bytes of data:
131
132     Reply from 10.16.191.243: bytes=32 time<1ms TTL=254
133     Reply from 10.16.191.243: bytes=32 time<1ms TTL=254
134     Reply from 10.16.191.243: bytes=32 time<1ms TTL=254
135     Reply from 10.16.191.243: bytes=32 time<1ms TTL=254
136
137     Ping statistics for 10.16.191.243:
138         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
139     Approximate round trip times in milli-seconds:
140         Minimum = 0ms, Maximum = 0ms, Average = 0ms
141 </pre></div>
142
143 <p>I can ping my laptop by name but I cannot nslookup it:</p>
144
145 <div class="code"><pre>
146     <font color="blue"><b>Local:</b></font><u>ping ltsjca-adefaria</u>
147     Pinging LTSJCA-ADEFARIA.corp.ad.broadcom.com [10.16.65.94] with 32 bytes of data:
148
149     Reply from 10.16.65.94: bytes=32 time<1ms TTL=64
150     Reply from 10.16.65.94: bytes=32 time<1ms TTL=64
151     Reply from 10.16.65.94: bytes=32 time<1ms TTL=64
152     Reply from 10.16.65.94: bytes=32 time<1ms TTL=64
153
154     Ping statistics for 10.16.65.94:
155         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
156     Approximate round trip times in milli-seconds:
157         Minimum = 0ms, Maximum = 0ms, Average = 0ms
158     <font color="blue"><b>Local:</b></font><u>nslookup ltsjca-adefaria</u>
159     *** dns-sj1-1b.sj.broadcom.com can't find ltsjca-adefaria: Non-existent domain
160     Server:  dns-sj1-1b.sj.broadcom.com
161     Address:  10.16.64.11
162 </pre></div>
163
164 <p>From the Solaris boxes (either ccase-sj1-3 or ccase-sj1-4) I cannot nslookup nor ping ltsjca-adefaria by name:</p>
165
166 <div class="code"><pre>
167     <font color="red"><b>ccase-sj1-3:</b></font><u>nslookup ltsjca-adefaria</u>
168     Server:  dns-sj1-1c.sj.broadcom.com
169     Address:  10.16.128.11
170
171     *** dns-sj1-1c.sj.broadcom.com can't find ltsjca-adefaria: Non-existent host/domain
172     ccase-sj1-3:ping ltsjca-adefaria
173     ping: unknown host ltsjca-adefaria
174     ccase-sj1-3:
175 </pre></div>
176
177 <p>I can ping by IP address:</p>
178
179 <div class="code"><pre>
180     <font color="red"><b>ccase-sj1-3:</b></font><u>ping 10.16.65.94</u>
181     10.16.65.94 is alive
182 </pre></div>
183
184 <p>However the Solaris boxes (nor the laptop it seems) can resolve the name ltsjca-adefaria to an IP address:</p>
185
186 <div class="code"><pre>
187     <font color="red"><b>ccase-sj1-3:</b></font><u>nslookup ltsjca-adefaria</u>
188     Server:  dns-sj1-1c.sj.broadcom.com
189     Address:  10.16.128.11
190
191     *** dns-sj1-1c.sj.broadcom.com can't find ltsjca-adefaria: Non-existent host/domain
192 </pre></div>
193
194 <p>Finally a nslookup by IP address yields the following:</p>
195
196 <div class="code"><pre>
197     <font color="red"><b>ccase-sj1-3:</b></font><u>nslookup 10.16.65.94</u>
198     Server:  dns-sj1-1c.sj.broadcom.com
199     Address:  10.16.128.11
200
201     Name:    dhcpe1-sj1-094.sj.broadcom.com
202     Address:  10.16.65.94
203 </pre></div>
204
205 <p>Thus showing that the DNS CNAME for 10.16.65.94 is dhcpe1-sj1-094.sj.broadcom.com not ltsjca-adefaria.</p>
206
207 <p>If I cannot translate ltsjca-adefaria to an IP address for ping then how is rgy_switchover gonna do it?</p>
208
209 <p>Now assuming that it's prevalent or common here at my client's site to have Windows clients with DHCP assigned addresses who's Windows machine names do not resolve in DNS and assuming that if the client name does not resolve in DNS then rgy_switchover fails, can it be said that rgy_switchover is relatively useless given this enviornment?</p>
210
211                            </div>
212                         </div>
213                         <p class="entry-footer">
214                            <span class="post-footers">Posted by  on September 27, 2005  2:08 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000432.html">Permalink</a>
215                         </p>
216                      </div>
217
218                      
219
220                      
221                   </div>
222                </div>
223             </div>
224          </div>
225       </div>
226    </div>
227 </body>
228 </html>