
networkgeni at gmail
Jan 24, 2011, 4:25 AM
Post #1 of 1
(218 views)
Permalink
|
|
End of Run Not found [New device type]
|
|
Dear Friends, 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. however i am getting problem in fetching configuration with it. Its showing following messages in logs ===================================== Getting missed routers: round 4. testrouter: End of run not found Error: TIMEOUT reached 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. 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" Can someone tell me how can i fix it??? ----------------------------- expect: does "---MORE---\r" (spawn_id exp6) match regular expression "\u0008+"? no "^[^\n\r *]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "^--More--[\r\n]+"? no "[\n\r]+"? yes expect: set expect_out(0,string) "\r" expect: set expect_out(spawn_id) "exp6" expect: set expect_out(buffer) "---MORE---\r" expect: continuing expect expect: does "" (spawn_id exp6) match regular expression "\u0008+"? no "^[^\n\r *]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no "^[^\n\r]*router([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no "^--More--[\r\n]+"? no "[\n\r]+"? no "[^\r\n]*Press <SPACE> to cont[^\r\n]*"? no "^ *--More--[^\n\r]*"? no "^<-+ More -+>[^\n\r]*"? no expect: timed out Error: TIMEOUT reached write() failed to write anything - will sleep(1) and retry...
|