<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" 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 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Futura Bk";}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Thanks for your replay and sorry for such a late response.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Does it make a difference what prompt it is? As long as what I have matches the prompt in the script? I don&#8217;t know if I can get privileges on this box so
 I can get the # prompt.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">The weird thing is the following:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">FGT100A_VPN $<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: does &quot; \r\nFGT100A_VPN $ &quot; (spawn_id exp6) match glob pattern &quot;Connection refused&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;Unknown host\r\n&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;Host is unreachable&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;No address associated with name&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;Are you sure you want to continue connecting .*&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;Host key not found .* (yes/no)?&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;HOST IDENTIFICATION HAS CHANGED.* (yes/no)?&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;Offending key for .* (yes/no)?&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;denied&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot; ### Login failed&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;(login:)&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;@[^\r\n]&#43;[Pp]assword:&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;[Pp]assword:&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot; $ &quot;? yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: set expect_out(0,string) &quot; $ &quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: set expect_out(spawn_id) &quot;exp6&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: set expect_out(buffer) &quot; \r\nFGT100A_VPN $ &quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">send: sending &quot;\r&quot; to { exp6 }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: does &quot;&quot; (spawn_id exp6) match regular expression &quot;[\r\n]&#43;&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;^(.&#43; $ )&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">FGT100A_VPN $<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: does &quot;\r\r\nFGT100A_VPN $ &quot; (spawn_id exp6) match regular expression &quot;[\r\n]&#43;&quot;? yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: set expect_out(0,string) &quot;\r\r\n&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: set expect_out(spawn_id) &quot;exp6&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: set expect_out(buffer) &quot;\r\r\n&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: continuing expect<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: does &quot;FGT100A_VPN $ &quot; (spawn_id exp6) match regular expression &quot;[\r\n]&#43;&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">&quot;^(.&#43; $ )&quot;? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">expect: timed out<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Error: TIMEOUT reached<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">write() failed to write anything - will sleep(1) and retry...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">so it matches the modified prompt I made but then it fails after when it tries to match it with [\r\n]&#43;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">any ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#606060">Mina Eskander<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#C00000">Perimeterwatch Technologies</span></b><b><span style="font-size:
10.0pt;font-family:&quot;Futura Bk&quot;;color:navy"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#606060">Direct:&nbsp;&nbsp; &#43;1 (347) 448-2845<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#606060">Mobile:&nbsp;&nbsp; &#43;1 (347) 510-4102<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><a href="mailto:meskander@perimeterwatch.com"><span style="color:blue">meskander@perimeterwatch.com</span></a></span><span style="font-size:8.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#606060"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#606060">Network Security</span><span style="font-size:10.0pt;font-family:
&quot;Futura Bk&quot;;color:#7F7F7F">
</span><b><span style="font-size:10.0pt;font-family:
&quot;Futura Bk&quot;;color:#C00000">|
</span></b><span style="font-size:10.0pt;
font-family:&quot;Futura Bk&quot;;color:#606060">Disaster Recovery</span><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;color:#7F7F7F">
</span><b><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;color:#C00000">|</span></b><b><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;color:#FF7F00">
</span></b><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;color:#606060">Business Continuity</span><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#7F7F7F">
</span><b><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#C00000">|</span></b><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#FF7F00">
</span><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#606060">IT Projects</span><span style="font-size:10.0pt;font-family:
&quot;Futura Bk&quot;;color:#7F7F7F">
</span><b><span style="font-size:10.0pt;font-family:
&quot;Futura Bk&quot;;color:#C00000">|</span></b><span style="font-size:10.0pt;
font-family:&quot;Futura Bk&quot;;color:black">
</span><span style="font-size:10.0pt;
font-family:&quot;Futura Bk&quot;;color:#606060">Application Development</span><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;color:#7F7F7F"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Futura Bk&quot;;
color:#606060">_____________________________________________________________________<br>
New York: (347) 448-2845 - 34-12 36th Street &#8211; 2nd Floor - Astoria,&nbsp;NY 11106&nbsp;</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></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:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Jeff Moorse [mailto:jmoorse@gmail.com]
<br>
<b>Sent:</b> Tuesday, April 28, 2009 3:08 PM<br>
<b>To:</b> john heasley<br>
<b>Cc:</b> Mina Eskander; rancid-discuss@shrubbery.net<br>
<b>Subject:</b> Re: [rancid] Re: Rancid with Fortigate Devices?<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">For an admin account the prompt is (sans quotes):<br>
<br>
&quot;FGT[model][s/n] # &quot;<br>
<br>
Please note the trailing space<br>
<br>
For a read only account it is the same but with a $ instead of a #<br>
<br>
-Jeff Moorse<o:p></o:p></p>
<div>
<p class="MsoNormal">On Tue, Apr 28, 2009 at 12:04 PM, john heasley &lt;<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">Thu, Apr 23, 2009 at 11:19:03AM -0400, Mina Eskander:<br>
&gt; I changed the -&gt; in the nlogin script to ~ $ and it still does not work, here is the output I get<br>
<br>
Would someone who knows the fortigate well please confirm the prompt format?<br>
I was told '-&gt; ', but reading through the manual that I found online, it<br>
seems that the prompt is '$ ' and gives no indication that it changes with<br>
elevated permissions. &nbsp;But, the manual for their CLI seems poorly written.<br>
<br>
&gt; [rancid@pwcolocacti bin]$ nlogin -d -t 90 -c&quot;get system status;get conf&quot; pwcolofgt100c<o:p></o:p></p>
<div>
<p class="MsoNormal">&gt; pwcolofgt100c<br>
&gt; spawn ssh -c 3des -x -l meskander pwcolofgt100c<br>
&gt; parent: waiting for sync byte<br>
&gt; parent: telling child to go ahead<br>
&gt; parent: now unsynchronized from child<o:p></o:p></p>
</div>
<p class="MsoNormal">&gt; spawn: returns {16963}<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">&gt;<br>
&gt; expect: does &quot;&quot; (spawn_id exp6) match glob pattern &quot;Connection refused&quot;? no<br>
&gt; &quot;Unknown host\r\n&quot;? no<br>
&gt; &quot;Host is unreachable&quot;? no<br>
&gt; &quot;No address associated with name&quot;? no<br>
&gt; &quot;Are you sure you want to continue connecting .*&quot;? no<br>
&gt; &quot;Host key not found .* (yes/no)?&quot;? no<br>
&gt; &quot;HOST IDENTIFICATION HAS CHANGED.* (yes/no)?&quot;? no<br>
&gt; &quot;Offending key for .* (yes/no)?&quot;? no<br>
&gt; &quot;denied&quot;? no<br>
&gt; &quot; ### Login failed&quot;? no<br>
&gt; &quot;(login:)&quot;? no<br>
&gt; &quot;@[^\r\n]&#43;[Pp]assword:&quot;? no<br>
&gt; &quot;[Pp]assword:&quot;? no<br>
&gt; &quot;~ $ &quot;? no<br>
&gt; meskander@pwcolofgt100c's password:<br>
&gt; expect: does &quot;meskander@pwcolofgt100c's password: &quot; (spawn_id exp6) match glob pattern &quot;Connection refused&quot;? no<br>
&gt; &quot;Unknown host\r\n&quot;? no<br>
&gt; &quot;Host is unreachable&quot;? no<br>
&gt; &quot;No address associated with name&quot;? no<br>
&gt; &quot;Are you sure you want to continue connecting .*&quot;? no<br>
&gt; &quot;Host key not found .* (yes/no)?&quot;? no<br>
&gt; &quot;HOST IDENTIFICATION HAS CHANGED.* (yes/no)?&quot;? no<br>
&gt; &quot;Offending key for .* (yes/no)?&quot;? no<br>
&gt; &quot;denied&quot;? no<br>
&gt; &quot; ### Login failed&quot;? no<br>
&gt; &quot;(login:)&quot;? no<br>
&gt; &quot;@[^\r\n]&#43;[Pp]assword:&quot;? yes<br>
&gt; expect: set expect_out(0,string) &quot;@pwcolofgt100c's password:&quot;<br>
&gt; expect: set expect_out(spawn_id) &quot;exp6&quot;<br>
&gt; expect: set expect_out(buffer) &quot;meskander@pwcolofgt100c's password:&quot;<br>
&gt; send: sending &quot;G0ds@v3s\r&quot; to { exp6 }<br>
&gt; expect: continuing expect<br>
&gt;<br>
&gt; expect: does &quot; &quot; (spawn_id exp6) match glob pattern &quot;Connection refused&quot;? no<br>
&gt; &quot;Unknown host\r\n&quot;? no<br>
&gt; &quot;Host is unreachable&quot;? no<br>
&gt; &quot;No address associated with name&quot;? no<br>
&gt; &quot;Are you sure you want to continue connecting .*&quot;? no<br>
&gt; &quot;Host key not found .* (yes/no)?&quot;? no<br>
&gt; &quot;HOST IDENTIFICATION HAS CHANGED.* (yes/no)?&quot;? no<br>
&gt; &quot;Offending key for .* (yes/no)?&quot;? no<br>
&gt; &quot;denied&quot;? no<br>
&gt; &quot; ### Login failed&quot;? no<br>
&gt; &quot;(login:)&quot;? no<br>
&gt; &quot;@[^\r\n]&#43;[Pp]assword:&quot;? no<br>
&gt; &quot;[Pp]assword:&quot;? no<br>
&gt; &quot;~ $ &quot;? no<br>
&gt;<br>
&gt;<br>
&gt; expect: does &quot; \r\n&quot; (spawn_id exp6) match glob pattern &quot;Connection refused&quot;? no<br>
&gt; &quot;Unknown host\r\n&quot;? no<br>
&gt; &quot;Host is unreachable&quot;? no<br>
&gt; &quot;No address associated with name&quot;? no<br>
&gt; &quot;Are you sure you want to continue connecting .*&quot;? no<br>
&gt; &quot;Host key not found .* (yes/no)?&quot;? no<br>
&gt; &quot;HOST IDENTIFICATION HAS CHANGED.* (yes/no)?&quot;? no<br>
&gt; &quot;Offending key for .* (yes/no)?&quot;? no<br>
&gt; &quot;denied&quot;? no<br>
&gt; &quot; ### Login failed&quot;? no<br>
&gt; &quot;(login:)&quot;? no<br>
&gt; &quot;@[^\r\n]&#43;[Pp]assword:&quot;? no<br>
&gt; &quot;[Pp]assword:&quot;? no<br>
&gt; &quot;~ $ &quot;? no<br>
&gt; FGT100C3G0860259~ $<br>
&gt; expect: does &quot; \r\nFGT100C3G0860259~ $ &quot; (spawn_id exp6) match glob pattern &quot;Connection refused&quot;? no<br>
&gt; &quot;Unknown host\r\n&quot;? no<br>
&gt; &quot;Host is unreachable&quot;? no<br>
&gt; &quot;No address associated with name&quot;? no<br>
&gt; &quot;Are you sure you want to continue connecting .*&quot;? no<br>
&gt; &quot;Host key not found .* (yes/no)?&quot;? no<br>
&gt; &quot;HOST IDENTIFICATION HAS CHANGED.* (yes/no)?&quot;? no<br>
&gt; &quot;Offending key for .* (yes/no)?&quot;? no<br>
&gt; &quot;denied&quot;? no<br>
&gt; &quot; ### Login failed&quot;? no<br>
&gt; &quot;(login:)&quot;? no<br>
&gt; &quot;@[^\r\n]&#43;[Pp]assword:&quot;? no<br>
&gt; &quot;[Pp]assword:&quot;? no<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&gt; &quot;~ $ &quot;? yes<br>
&gt; expect: set expect_out(0,string) &quot;~ $ &quot;<o:p></o:p></p>
<div>
<p class="MsoNormal">&gt; expect: set expect_out(spawn_id) &quot;exp6&quot;<o:p></o:p></p>
</div>
<p class="MsoNormal">&gt; expect: set expect_out(buffer) &quot; \r\nFGT100C3G0860259~ $ &quot;<br>
&gt; send: sending &quot;\r&quot; to { exp6 }<br>
&gt;<br>
&gt; expect: does &quot;&quot; (spawn_id exp6) match regular expression &quot;[\r\n]&#43;&quot;? no<br>
&gt; &quot;^(.&#43;~ $ )&quot;? no<br>
&gt;<br>
&gt;<br>
&gt; expect: does &quot;\r\r\n&quot; (spawn_id exp6) match regular expression &quot;[\r\n]&#43;&quot;? yes<br>
&gt; expect: set expect_out(0,string) &quot;\r\r\n&quot;<o:p></o:p></p>
<div>
<p class="MsoNormal">&gt; expect: set expect_out(spawn_id) &quot;exp6&quot;<o:p></o:p></p>
</div>
<p class="MsoNormal">&gt; expect: set expect_out(buffer) &quot;\r\r\n&quot;<br>
&gt; expect: continuing expect<br>
&gt;<br>
&gt; expect: does &quot;&quot; (spawn_id exp6) match regular expression &quot;[\r\n]&#43;&quot;? no<br>
&gt; &quot;^(.&#43;~ $ )&quot;? no<br>
&gt; FGT100C3G0860259~ $<br>
&gt; expect: does &quot;FGT100C3G0860259~ $ &quot; (spawn_id exp6) match regular expression &quot;[\r\n]&#43;&quot;? no<o:p></o:p></p>
<div>
<p class="MsoNormal">&gt; &quot;^(.&#43;~ $ )&quot;? no<br>
&gt; expect: timed out<br>
&gt;<br>
&gt; Error: TIMEOUT reached<br>
&gt; write() failed to write anything - will sleep(1) and retry...<o:p></o:p></p>
</div>
<p class="MsoNormal">&gt; [rancid@pwcolocacti bin]$<br>
&gt;<br>
&gt; From: <a href="mailto:rancid-discuss-bounces@shrubbery.net">rancid-discuss-bounces@shrubbery.net</a> [mailto:<a href="mailto:rancid-discuss-bounces@shrubbery.net">rancid-discuss-bounces@shrubbery.net</a>] On Behalf Of Jeff Moorse<br>
&gt; Sent: Monday, April 20, 2009 11:06 PM<br>
&gt; To: <a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><br>
&gt; Subject: [rancid] Re: Rancid with Fortigate Devices?<o:p></o:p></p>
<div>
<p class="MsoNormal">&gt;<br>
&gt; Anyone know what the correct syntax for the expect script would be to match prompt (assuming the string of #'s following FGT is variable)?<br>
&gt;<br>
&gt; I have experienced similar problems<br>
&gt;<br>
&gt; Thanks<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&gt; On Mon, Apr 20, 2009 at 10:45 AM, john heasley &lt;<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>&lt;mailto:<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>&gt;&gt; wrote:<br>
&gt; yep, your prompt is nFGT100C3G0860259~ $<br>
&gt; but the script expects -&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Rancid-discuss mailing list<o:p></o:p></p>
</div>
<p class="MsoNormal">&gt; <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>&lt;mailto:<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>&gt;<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">&gt; <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; -- Jeff Moorse --<br>
<br>
&gt; _______________________________________________<br>
&gt; Rancid-discuss mailing list<br>
&gt; <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
&gt; <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
-- Jeff Moorse --<o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
The information contained in this email is confidential and may also contain privileged information. Sender does not waive confidentiality or legal<br>
privilege. If you are not one of the intended recipients, please notify the sender immediately and destroy this e-mail; you must not copy,<br>
distribute or take any action in reliance on the information contained within.<br>
Internet communications are not secure or error free and the sender does not accept any liability for the content of the email. Although emails are<br>
routinely screened for viruses, the sender does not accept responsibility for any damage caused. Replies to this email may be monitored.<br>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
</font>
</body>
</html>