<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a device that since a firmware upgrade the prompt has changed from :-<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">hostname><o:p></o:p></p>
<p class="MsoNormal">hostname#<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To :-<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">hostname*><o:p></o:p></p>
<p class="MsoNormal">hostname*#<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The device is in a cluster and the asterisk is to indicated that it is the master, the non-master member is still working using clogin.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone guide me in the changes needed to clogin, so that this will detect the prompt correctly? I’ve had a look and I believe the issue to be with the asterisk as the prompt is used as a regular expression but the asterisk is not escaped.
My knowledge of tcl/expect scripts is every limited and I don’t know where to start to fix it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m not worried about breaking clogin for other devices as I would implement this in its own login script as it already has its own custom rancid script.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any pointers would be greatly received.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Adam<o:p></o:p></p>
</div>
<style>
<!--
/* Style Definitions */
.CompanySignature
{
font-size:9.0pt;
font-family:"Calibri","sans-serif";
color:#1F497D;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-fareast-language:EN-GB;
mso-no-proof:yes;
margin:0cm;
margin-bottom:.0001pt;
}
.CompanySignatureAddress
{
font-size:8.0pt;
font-family:"Calibri","sans-serif";
color:#1F497D;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-fareast-language:EN-GB;
mso-no-proof:yes;
margin:0cm;
margin-bottom:.0001pt;
}
.CompanySignatureRegisteredOffices
{
color:#1F497D;
margin:0px;
padding:0px;
border:0px;
}
.CompanySignatureRegisteredOffices table
{
color:#1F497D;
border-collapse: collapse;
border-spacing: 0;
margin:0px;
padding:0px;
}
.CompanySignatureRegisteredOffices td
{
font-size:7.0pt;
font-family:"Calibri","sans-serif";
color:#1F497D;
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-fareast-language:EN-GB;
mso-no-proof:yes;
text-align:left;
vertical-align:middle;
border:0px;
border-width:0px 0px 0px 0px;
padding:0px;
}
.CompanySignatureColour
{
color:#1F497D;
}
-->
</style>
<div>
<p class="CompanySignature"><br>
<table class="CompanySignatureRegisteredOffices">
<tbody>
<tr>
<td><a href="http://www.brantano.co.uk/"><img src="http://brantano.s3.amazonaws.com/CorporateLogos/Bran-182x59.jpg"></a></td>
<td width="25"> </td>
<td><a href="http://www.jonesbootmaker.com/"><img src="http://brantano.s3.amazonaws.com/CorporateLogos/Jones-169x59.jpg"></a></td>
</tr>
<tr>
<td>
<center><a style="font-size:9.0pt;" href="http://www.brantano.co.uk/">www.brantano.co.uk</a></center>
</td>
<td></td>
<td>
<center><a style="font-size:9.0pt;" href="http://www.jonesbootmaker.com/">www.jonesbootmaker.com</a></center>
</td>
</tr>
</tbody>
</table>
<br>
<span class="CompanySignatureAddress">Interlink Way West, Interlink Business Park, Bardon, Coalville, Leicestershire, LE67 1LD
</span><br>
<br>
<table class="CompanySignatureRegisteredOffices">
<tbody>
<tr>
<td><span class="CompanySignatureColour">Brantano (UK) Limited</span></td>
<td><span class="CompanySignatureColour">| Registered Office: Interlink Way West, Interlink Business Park, Bardon, Coalville, Leicestershire, LE67 1LD</span></td>
<td><span class="CompanySignatureColour">| Registered in England No. 3472784</span></td>
</tr>
<tr>
<td><span class="CompanySignatureColour">A Jones & Sons Limited</span></td>
<td><span class="CompanySignatureColour">| Registered Office: Interlink Way West, Interlink Business Park, Bardon, Coalville, Leicestershire, LE67 1LD</span></td>
<td><span class="CompanySignatureColour">| Registered in England No. 288766</span></td>
</tr>
<tr>
<td><span class="CompanySignatureColour">Gordon Scott Limited</span></td>
<td><span class="CompanySignatureColour">| Registered Office: Interlink Way West, Interlink Business Park, Bardon, Coalville, Leicestershire, LE67 1LD</span></td>
<td><span class="CompanySignatureColour">| Registered in England No. 788228</span></td>
</tr>
<tr>
<td><span class="CompanySignatureColour">Beghins Shoes Limited</span></td>
<td><span class="CompanySignatureColour">| Registered Office: 51-53 King Street, St Helier, Jersey, JE2 4WE</span></td>
<td><span class="CompanySignatureColour">| Registered in Jersey No. 039</span></td>
</tr>
</tbody>
</table>
</p>
<span style="color:#FFFFFF;font-size:0.1pt;">V0rrdxEPJHoqJPnV2YlZlXJguHyy4Fe87aZZMtXR</span>
</div>
</body>
</html>