<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=utf-8">
<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:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
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;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I notice your .cloginrc defines “user1” as the login username, but rancid is trying with username “rancid” - is it possible there might be another matching definition higher in the .cloginrc file, with different credentials? Rancid stops
processing at the first possible match.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also, do you have user1 defined as an account in your AAA servers? Or with IOS version 12.2(55)EX3 this is likely a Catalyst switch – if you don’t have AAA servers defined or if they’re offline/unreachable, then is user1 defined in the
local user database?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">weylin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">nandhakumar a <nandhakumar.a0519@gmail.com><br>
<b>Date: </b>Monday, May 28, 2018 at 12:47 AM<br>
<b>To: </b><rancid-discuss@shrubbery.net><br>
<b>Cc: </b><rancid-discuss-request@shrubbery.net><br>
<b>Subject: </b>[rancid] Cloginrc file is not working<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hi, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have tried to login into the device using clogin, But the user credentials is not working from the .clogin rc. Please take a look on the below example.<br>
<br>
<br>
For Ex:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">add user 1x.1x.1x.1x user1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">add password <span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;background:white">
1x.1x.1x.1x</span> {userpwd} {$userpwd$}<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">add method <span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#222222;background:white">
1x.1x.1x.1x</span> telnet ssh<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">When we try to execute <o:p></o:p></p>
<div>
<p class="MsoNormal">> /usr/local/rancid/bin/clogin x.x.x.x<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> x.x.x.x<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> spawn telnet x.x.x.x<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Trying x.x.x.x...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Connected to x.x.x.x.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Escape character is '^]'.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> CC*******************************************<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> HostName : Compiled_hostname<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Hardware : ABCDE<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> IOS version : Version 12.2(55)EX3<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> SettingDate : 2014/11/11<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> ModifyDate :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Region : Global<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Country : XXXXXX<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Owner : abc<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> *******************************************<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> User Access Verification<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Username: rancid<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Password:<br>
Login Invalid<br>
<br>
<br>
I can see that username which is in ,cloginrc and while executing the username is diff, it looks like that the username it takes the server credentials.<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>