<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        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";}
@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-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have successfully managed to get Rancid working with all Cisco and Extreme equipment on the network as well as with SVN etc, I am however still having some ongoing issues with getting it to work with Fortinet, have installed and running
Rancid-2.3.6 which I am led to believe is the version with the patch applied already, when running rancid on the Fortigate’s I am getting the below in the log files.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">x.x.x.x fnlogin error: Error: TIMEOUT reached<o:p></o:p></p>
<p class="MsoNormal">x.x.x.x: missed cmd(s): show full-configuration,get system status<o:p></o:p></p>
<p class="MsoNormal">0: found end<o:p></o:p></p>
<p class="MsoNormal">x.x.x.x End of run not found<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Looking through the FAQ they are talking about various debugs to try, which I have done as per below.<o:p></o:p></p>
<p class="MsoNormal">clogin x.x.x.x<o:p></o:p></p>
<p class="MsoNormal">When doing this it appears that its using telnet to connect, however I need SSH , if I run it with the –d option I receive this error eventually.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">rancid@syd-nms001:~/bin$ ./clogin -d xxxxxxxxx<o:p></o:p></p>
<p class="MsoNormal">xxxxxxxx<o:p></o:p></p>
<p class="MsoNormal">spawn telnet xxxxxxxxxxxxxxxx<o:p></o:p></p>
<p class="MsoNormal">parent: waiting for sync byte<o:p></o:p></p>
<p class="MsoNormal">parent: telling child to go ahead<o:p></o:p></p>
<p class="MsoNormal">parent: now unsynchronized from child<o:p></o:p></p>
<p class="MsoNormal">spawn: returns {3532}<o:p></o:p></p>
<p class="MsoNormal">expect: does "" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no<o:p></o:p></p>
<p class="MsoNormal">"(Connection closed by|Connection to [^\n\r]+ closed)"? no<o:p></o:p></p>
<p class="MsoNormal">expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no<o:p></o:p></p>
<p class="MsoNormal">expect: does "" (spawn_id exp6) match glob pattern "Host is unreachable"? no<o:p></o:p></p>
<p class="MsoNormal">"No address associated with name"? no<o:p></o:p></p>
<p class="MsoNormal">"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no<o:p></o:p></p>
<p class="MsoNormal">"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no<o:p></o:p></p>
<p class="MsoNormal">"Offending key for .* (yes/no)?"? no<o:p></o:p></p>
<p class="MsoNormal">"(denied|Sorry)"? no<o:p></o:p></p>
<p class="MsoNormal">"Login failed"? no<o:p></o:p></p>
<p class="MsoNormal">"% (Bad passwords|Authentication failed)"? no<o:p></o:p></p>
<p class="MsoNormal">"Press any key to continue"? no<o:p></o:p></p>
<p class="MsoNormal">"Enter Selection: "? no<o:p></o:p></p>
<p class="MsoNormal">"Last login:"? no<o:p></o:p></p>
<p class="MsoNormal">"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no<o:p></o:p></p>
<p class="MsoNormal">"Enter passphrase.*: "? no<o:p></o:p></p>
<p class="MsoNormal">"(Username|Login|login|user name|User):"? no<o:p></o:p></p>
<p class="MsoNormal">"([Pp]assword|passwd|Enter password for [^ :]+):"? no<o:p></o:p></p>
<p class="MsoNormal">"(>|#| \(enable\))"? no<o:p></o:p></p>
<p class="MsoNormal">"Login invalid"? no<o:p></o:p></p>
<p class="MsoNormal">Trying xxxxxxxxxxxxx...<o:p></o:p></p>
<p class="MsoNormal">expect: does "Trying xxxxxxxxxx...\r\n" (spawn_id exp6) match regular expression "(Connection refused|Secure connection [^\n\r]+ refused)"? no<o:p></o:p></p>
<p class="MsoNormal">"(Connection closed by|Connection to [^\n\r]+ closed)"? no<o:p></o:p></p>
<p class="MsoNormal">expect: does "Trying xxxxxxxxxx...\r\n" (spawn_id exp6) match glob pattern "unknown host\r"? no<o:p></o:p></p>
<p class="MsoNormal">expect: does "Trying xxxxxxxxxx...\r\n" (spawn_id exp6) match glob pattern "Host is unreachable"? no<o:p></o:p></p>
<p class="MsoNormal">"No address associated with name"? no<o:p></o:p></p>
<p class="MsoNormal">"(Host key not found |The authenticity of host .* be established).*(yes/no)?"? no<o:p></o:p></p>
<p class="MsoNormal">"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no<o:p></o:p></p>
<p class="MsoNormal">"Offending key for .* (yes/no)?"? no<o:p></o:p></p>
<p class="MsoNormal">"(denied|Sorry)"? no<o:p></o:p></p>
<p class="MsoNormal">"Login failed"? no<o:p></o:p></p>
<p class="MsoNormal">"% (Bad passwords|Authentication failed)"? no<o:p></o:p></p>
<p class="MsoNormal">"Press any key to continue"? no<o:p></o:p></p>
<p class="MsoNormal">"Enter Selection: "? no<o:p></o:p></p>
<p class="MsoNormal">"Last login:"? no<o:p></o:p></p>
<p class="MsoNormal">"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no<o:p></o:p></p>
<p class="MsoNormal">"Enter passphrase.*: "? no<o:p></o:p></p>
<p class="MsoNormal">"(Username|Login|login|user name|User):"? no<o:p></o:p></p>
<p class="MsoNormal">"([Pp]assword|passwd|Enter password for [^ :]+):"? no<o:p></o:p></p>
<p class="MsoNormal">"(>|#| \(enable\))"? no<o:p></o:p></p>
<p class="MsoNormal">"Login invalid"? no<o:p></o:p></p>
<p class="MsoNormal">expect: timed out<o:p></o:p></p>
<p class="MsoNormal">Error: TIMEOUT reached<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am guessing that this means that the expect is not getting what it is meant to see, however I cant seem to resolve this no matter what I do.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I ssh direct to the host’s the following is the output.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">rancid@rancid-server:~/bin$ ssh admin@hostname<o:p></o:p></p>
<p class="MsoNormal">The authenticity of host ‘hostname (hostname)' can't be established.<o:p></o:p></p>
<p class="MsoNormal">RSA key fingerprint is xxxxxxxxxxxxxxxxxxxxxxxx.<o:p></o:p></p>
<p class="MsoNormal">Are you sure you want to continue connecting (yes/no)? yes<o:p></o:p></p>
<p class="MsoNormal">Warning: Permanently added ‘hostname’(RSA) to the list of known hosts.<o:p></o:p></p>
<p class="MsoNormal">admin@ hostname’s password: <o:p></o:p></p>
<p class="MsoNormal">hostname #<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">I am really batteling to try and resolve this and any help that anyone can provide would be hugely appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">Thanks in advance, also if you need any further information just shout and I will provide.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">Kind Regards</span><span style="font-size:8.0pt;font-family:"Arial","sans-serif""><o:p></o:p></span></p>
</div>
</body>
</html>