<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="" 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:"Calibri","sans-serif";
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:"Calibri","sans-serif";
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’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:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
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:"Calibri","sans-serif";
color:#1F497D">FGT100A_VPN $<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: does " \r\nFGT100A_VPN $ " (spawn_id exp6) match glob pattern "Connection refused"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"Unknown host\r\n"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"Host is unreachable"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"No address associated with name"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"Are you sure you want to continue connecting .*"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"Host key not found .* (yes/no)?"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"Offending key for .* (yes/no)?"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"denied"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">" ### Login failed"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"(login:)"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"@[^\r\n]+[Pp]assword:"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"[Pp]assword:"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">" $ "? yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: set expect_out(0,string) " $ "<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: set expect_out(spawn_id) "exp6"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: set expect_out(buffer) " \r\nFGT100A_VPN $ "<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">send: sending "\r" to { exp6 }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"^(.+ $ )"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">FGT100A_VPN $<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: does "\r\r\nFGT100A_VPN $ " (spawn_id exp6) match regular expression "[\r\n]+"? yes<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: set expect_out(0,string) "\r\r\n"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: set expect_out(spawn_id) "exp6"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: set expect_out(buffer) "\r\r\n"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: continuing expect<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: does "FGT100A_VPN $ " (spawn_id exp6) match regular expression "[\r\n]+"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">"^(.+ $ )"? no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">expect: timed out<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">Error: TIMEOUT reached<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
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:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">so it matches the modified prompt I made but then it fails after when it tries to match it with [\r\n]+<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">any ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#606060">Mina Eskander<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#C00000">Perimeterwatch Technologies</span></b><b><span style="font-size:
10.0pt;font-family:"Futura Bk";color:navy"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#606060">Direct: +1 (347) 448-2845<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#606060">Mobile: +1 (347) 510-4102<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";
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:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#606060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#606060">Network Security</span><span style="font-size:10.0pt;font-family:
"Futura Bk";color:#7F7F7F">
</span><b><span style="font-size:10.0pt;font-family:
"Futura Bk";color:#C00000">|
</span></b><span style="font-size:10.0pt;
font-family:"Futura Bk";color:#606060">Disaster Recovery</span><span style="font-size:10.0pt;font-family:"Futura Bk";color:#7F7F7F">
</span><b><span style="font-size:10.0pt;font-family:"Futura Bk";color:#C00000">|</span></b><b><span style="font-size:10.0pt;font-family:"Futura Bk";color:#FF7F00">
</span></b><span style="font-size:10.0pt;font-family:"Futura Bk";color:#606060">Business Continuity</span><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#7F7F7F">
</span><b><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#C00000">|</span></b><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#FF7F00">
</span><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#606060">IT Projects</span><span style="font-size:10.0pt;font-family:
"Futura Bk";color:#7F7F7F">
</span><b><span style="font-size:10.0pt;font-family:
"Futura Bk";color:#C00000">|</span></b><span style="font-size:10.0pt;
font-family:"Futura Bk";color:black">
</span><span style="font-size:10.0pt;
font-family:"Futura Bk";color:#606060">Application Development</span><span style="font-size:10.0pt;font-family:"Futura Bk";color:#7F7F7F"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Futura Bk";
color:#606060">_____________________________________________________________________<br>
New York: (347) 448-2845 - 34-12 36th Street – 2nd Floor - Astoria, NY 11106 </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </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:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> 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> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">For an admin account the prompt is (sans quotes):<br>
<br>
"FGT[model][s/n] # "<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 <<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Thu, Apr 23, 2009 at 11:19:03AM -0400, Mina Eskander:<br>
> I changed the -> 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 '-> ', 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. But, the manual for their CLI seems poorly written.<br>
<br>
> [rancid@pwcolocacti bin]$ nlogin -d -t 90 -c"get system status;get conf" pwcolofgt100c<o:p></o:p></p>
<div>
<p class="MsoNormal">> pwcolofgt100c<br>
> spawn ssh -c 3des -x -l meskander pwcolofgt100c<br>
> parent: waiting for sync byte<br>
> parent: telling child to go ahead<br>
> parent: now unsynchronized from child<o:p></o:p></p>
</div>
<p class="MsoNormal">> spawn: returns {16963}<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">><br>
> expect: does "" (spawn_id exp6) match glob pattern "Connection refused"? no<br>
> "Unknown host\r\n"? no<br>
> "Host is unreachable"? no<br>
> "No address associated with name"? no<br>
> "Are you sure you want to continue connecting .*"? no<br>
> "Host key not found .* (yes/no)?"? no<br>
> "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no<br>
> "Offending key for .* (yes/no)?"? no<br>
> "denied"? no<br>
> " ### Login failed"? no<br>
> "(login:)"? no<br>
> "@[^\r\n]+[Pp]assword:"? no<br>
> "[Pp]assword:"? no<br>
> "~ $ "? no<br>
> meskander@pwcolofgt100c's password:<br>
> expect: does "meskander@pwcolofgt100c's password: " (spawn_id exp6) match glob pattern "Connection refused"? no<br>
> "Unknown host\r\n"? no<br>
> "Host is unreachable"? no<br>
> "No address associated with name"? no<br>
> "Are you sure you want to continue connecting .*"? no<br>
> "Host key not found .* (yes/no)?"? no<br>
> "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no<br>
> "Offending key for .* (yes/no)?"? no<br>
> "denied"? no<br>
> " ### Login failed"? no<br>
> "(login:)"? no<br>
> "@[^\r\n]+[Pp]assword:"? yes<br>
> expect: set expect_out(0,string) "@pwcolofgt100c's password:"<br>
> expect: set expect_out(spawn_id) "exp6"<br>
> expect: set expect_out(buffer) "meskander@pwcolofgt100c's password:"<br>
> send: sending "G0ds@v3s\r" to { exp6 }<br>
> expect: continuing expect<br>
><br>
> expect: does " " (spawn_id exp6) match glob pattern "Connection refused"? no<br>
> "Unknown host\r\n"? no<br>
> "Host is unreachable"? no<br>
> "No address associated with name"? no<br>
> "Are you sure you want to continue connecting .*"? no<br>
> "Host key not found .* (yes/no)?"? no<br>
> "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no<br>
> "Offending key for .* (yes/no)?"? no<br>
> "denied"? no<br>
> " ### Login failed"? no<br>
> "(login:)"? no<br>
> "@[^\r\n]+[Pp]assword:"? no<br>
> "[Pp]assword:"? no<br>
> "~ $ "? no<br>
><br>
><br>
> expect: does " \r\n" (spawn_id exp6) match glob pattern "Connection refused"? no<br>
> "Unknown host\r\n"? no<br>
> "Host is unreachable"? no<br>
> "No address associated with name"? no<br>
> "Are you sure you want to continue connecting .*"? no<br>
> "Host key not found .* (yes/no)?"? no<br>
> "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no<br>
> "Offending key for .* (yes/no)?"? no<br>
> "denied"? no<br>
> " ### Login failed"? no<br>
> "(login:)"? no<br>
> "@[^\r\n]+[Pp]assword:"? no<br>
> "[Pp]assword:"? no<br>
> "~ $ "? no<br>
> FGT100C3G0860259~ $<br>
> expect: does " \r\nFGT100C3G0860259~ $ " (spawn_id exp6) match glob pattern "Connection refused"? no<br>
> "Unknown host\r\n"? no<br>
> "Host is unreachable"? no<br>
> "No address associated with name"? no<br>
> "Are you sure you want to continue connecting .*"? no<br>
> "Host key not found .* (yes/no)?"? no<br>
> "HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no<br>
> "Offending key for .* (yes/no)?"? no<br>
> "denied"? no<br>
> " ### Login failed"? no<br>
> "(login:)"? no<br>
> "@[^\r\n]+[Pp]assword:"? no<br>
> "[Pp]assword:"? no<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">> "~ $ "? yes<br>
> expect: set expect_out(0,string) "~ $ "<o:p></o:p></p>
<div>
<p class="MsoNormal">> expect: set expect_out(spawn_id) "exp6"<o:p></o:p></p>
</div>
<p class="MsoNormal">> expect: set expect_out(buffer) " \r\nFGT100C3G0860259~ $ "<br>
> send: sending "\r" to { exp6 }<br>
><br>
> expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? no<br>
> "^(.+~ $ )"? no<br>
><br>
><br>
> expect: does "\r\r\n" (spawn_id exp6) match regular expression "[\r\n]+"? yes<br>
> expect: set expect_out(0,string) "\r\r\n"<o:p></o:p></p>
<div>
<p class="MsoNormal">> expect: set expect_out(spawn_id) "exp6"<o:p></o:p></p>
</div>
<p class="MsoNormal">> expect: set expect_out(buffer) "\r\r\n"<br>
> expect: continuing expect<br>
><br>
> expect: does "" (spawn_id exp6) match regular expression "[\r\n]+"? no<br>
> "^(.+~ $ )"? no<br>
> FGT100C3G0860259~ $<br>
> expect: does "FGT100C3G0860259~ $ " (spawn_id exp6) match regular expression "[\r\n]+"? no<o:p></o:p></p>
<div>
<p class="MsoNormal">> "^(.+~ $ )"? no<br>
> expect: timed out<br>
><br>
> Error: TIMEOUT reached<br>
> write() failed to write anything - will sleep(1) and retry...<o:p></o:p></p>
</div>
<p class="MsoNormal">> [rancid@pwcolocacti bin]$<br>
><br>
> 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>
> Sent: Monday, April 20, 2009 11:06 PM<br>
> To: <a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a><br>
> Subject: [rancid] Re: Rancid with Fortigate Devices?<o:p></o:p></p>
<div>
<p class="MsoNormal">><br>
> 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>
><br>
> I have experienced similar problems<br>
><br>
> Thanks<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> On Mon, Apr 20, 2009 at 10:45 AM, john heasley <<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a><mailto:<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>>> wrote:<br>
> yep, your prompt is nFGT100C3G0860259~ $<br>
> but the script expects -><br>
><br>
> _______________________________________________<br>
> Rancid-discuss mailing list<o:p></o:p></p>
</div>
<p class="MsoNormal">> <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><mailto:<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">> <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
><br>
><br>
><br>
> --<br>
> -- Jeff Moorse --<br>
<br>
> _______________________________________________<br>
> Rancid-discuss mailing list<br>
> <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
> <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>