<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div>I can run “panlogin" and I can get output from our Palo Alto Firewall, but rancid-run fails:</div>
<div><br>
</div>
<div>———</div>
<div><br>
</div>
<div>
<div>rancid@sjc-nettools02:~$ bin/panlogin -t 90 -c"show system info" sjc-fw01-sec</div>
<div>sjc-fw01-sec</div>
<div>spawn ssh -c 3des -x -l rancid sjc-fw01-sec</div>
<div>* * * * * * * * * * * W A R N I N G * * * * * * * * * * * * *</div>
<div> __________________________________________________________________________</div>
<div> /This computer system is the property of SurveyMonkey and may be accessed \</div>
<div><REDACTED></div>
<div>Password:</div>
<div>Last login: Wed Jul 29 20:22:49 2015 from sjc-nettools02.endor.lan</div>
<div>Welcome rancid.</div>
<div><br>
</div>
<div>rancid@sjc-fw01-sec(active)></div>
<div>rancid@sjc-fw01-sec(active)></div>
<div>rancid@sjc-fw01-sec(active)> show system info</div>
<div><br>
</div>
<div>hostname: sjc-fw01-sec</div>
<div><REDACTED></div>
<div>family: 3000</div>
<div>model: PA-3020</div>
<div><REDACTED></div>
<div>multi-vsys: off</div>
<div><br>
</div>
<div>rancid@sjc-fw01-sec(active)> exit</div>
<div>Connection to sjc-fw01-sec closed.</div>
<div>rancid@sjc-nettools02:~$</div>
</div>
<div>
<div><br>
</div>
<div>———</div>
<div><br>
</div>
<div><b>The router.db: </b></div>
<div><br>
</div>
<div>…</div>
<div>sjc-fw01-sec.endor.lan;paloalto;up</div>
<div>…</div>
<div><br>
</div>
<div><br>
</div>
<div><b>The .clogin:</b></div>
<div><br>
</div>
<div>
<div># PAN</div>
<div>add method sjc-fw01-sec ssh</div>
<div>add passprompt sjc-fw01-sec {"\[Pp]assword:"}</div>
<div>add user sjc-fw01-sec {rancid}</div>
<div>add password sjc-fw01-sec {REDACTED!}</div>
<div>add noenable sjc-fw01-sec 1</div>
</div>
<div><br>
</div>
<div>But when rancid-run kicks off, I get nothing. Logs show:</div>
<div><br>
</div>
<div>
<div>=====================================</div>
<div>Getting missed routers: round 1.</div>
<div>sjc-fw01-sec.endor.lan: missed cmd(s): all commands</div>
<div>sjc-fw01-sec.endor.lan: End of run not found</div>
</div>
<div>
<div>#</div>
<div>=====================================</div>
<div>Getting missed routers: round 2.</div>
<div>sjc-fw01-sec.endor.lan: missed cmd(s): all commands</div>
<div>sjc-fw01-sec.endor.lan: End of run not found</div>
</div>
<div>Etc…</div>
<div><br>
</div>
<div><br>
</div>
<div><b>Debugs with rancid:</b></div>
<div><br>
</div>
<div><snip></div>
<div>
<div>expect: does "rancid@sjc-fw01-sec(active)> " (spawn_id exp6) match regular expression "[\r\n]+"? (No Gate, RE only) gate=yes re=no</div>
<div>"^(.+>)"? Gate "*>"? gate=yes re=yes</div>
<div>expect: set expect_out(0,string) "rancid@sjc-fw01-sec(active)>"</div>
<div>expect: set expect_out(1,string) "rancid@sjc-fw01-sec(active)>"</div>
<div>expect: set expect_out(spawn_id) "exp6"</div>
<div>expect: set expect_out(buffer) "rancid@sjc-fw01-sec(active)>"</div>
<div>tty_raw_noecho: was raw = 0 echo = 1</div>
<div>spawn id exp0 sent <\r></div>
<div>spawn id exp6 sent <\r\n></div>
<div><br>
</div>
<div>spawn id exp6 sent <rancid@sjc-fw01-sec(active)> ></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I noticed on some forums that there was a pan rancid file, but I don’t have on in the 3.2 install. I see in some notes that it was converted to a module, so I assume it’s not needed.</div>
<div><br>
</div>
<div>Any ideas?</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</body>
</html>