<div>Dear Friends,</div>
<div> </div>
<div>I have a device which has cisco like command syntax and format. I have tried to copy cisco login/scripts and created it as new device type.</div>
<div> </div>
<div>however i am getting problem in fetching configuration with it. Its showing following messages in logs</div>
<div> </div>
<div>=====================================<br>Getting missed routers: round 4.<br>testrouter: End of run not found<br>Error: TIMEOUT reached</div>
<div> </div>
<div> </div>
<div>On running in Debugg mode i get the below pasted output. Which shows that there is issue with --MORE-- comming and requiring to press SPACE bar.</div>
<div> </div>
<div>Another thing i noticed is that Cisco running-config Ends with the Keyword "end" where as this device ends with exclimation mark with end like "!end"</div>
<div> </div>
<div> </div>
<div> </div>
<div>Can someone tell me how can i fix it???</div>
<div> </div>
<div>-----------------------------</div>
<div> </div>
<div>expect: does "---MORE---\r" (spawn_id exp6) match regular expression "\u0008+"? no<br>"^[^\n\r *]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no<br>"^[^\n\r]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no<br>
"^--More--[\r\n]+"? no<br>"[\n\r]+"? yes<br>expect: set expect_out(0,string) "\r"<br>expect: set expect_out(spawn_id) "exp6"<br>expect: set expect_out(buffer) "---MORE---\r"<br>
expect: continuing expect</div>
<div>expect: does "" (spawn_id exp6) match regular expression "\u0008+"? no<br>"^[^\n\r *]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no<br>"^[^\n\r]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no<br>
"^--More--[\r\n]+"? no<br>"[\n\r]+"? no<br>"[^\r\n]*Press <SPACE> to cont[^\r\n]*"? no<br>"^ *--More--[^\n\r]*"? no<br>"^<-+ More -+>[^\n\r]*"? no</div>
<div> </div>
<div>expect: timed out</div>
<div>Error: TIMEOUT reached<br>write() failed to write anything - will sleep(1) and retry...</div>
<div> </div>
<div> </div>