<div dir="ltr">I think I figured it out. The user account had a .cloginrc file in the home directory. I also found a .cloginrc file within the rancid directory. Looks like it was using the .clogin file in the rancid directory. I hadn't known about that and I had been making my changes to the .clogin in the home directory of the user. <div>
<br></div><div style>Interesting behavior I didn't see documented anywhere. </div><div style><br></div><div style>Thanks for your help!</div><div style>-Tim</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, May 1, 2013 at 12:13 PM, Hughes, Doug <span dir="ltr"><<a href="mailto:Douglas.Hughes@deshawresearch.com" target="_blank">Douglas.Hughes@deshawresearch.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><font color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hrm.. that is odd. I’d turn on debugging with panlogin and see what it’s actually trying to send. It sure does
seem like it’s either a bad password or a failure to match the password prompt in some way.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">From:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:rancid-discuss-bounces@shrubbery.net" target="_blank">rancid-discuss-bounces@shrubbery.net</a> [mailto:<a href="mailto:rancid-discuss-bounces@shrubbery.net" target="_blank">rancid-discuss-bounces@shrubbery.net</a>]
<b><span style="font-weight:bold">On Behalf Of </span></b>Tim Eberhard<br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, May 01, 2013 12:25 PM<br>
<b><span style="font-weight:bold">To:</span></b> <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
<b><span style="font-weight:bold">Subject:</span></b> [rancid] backup problems with new element type<u></u><u></u></span></font></p><div><div class="h5">
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Rancid folks,<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I've hit a wall and I was hoping you all might be able to provide some insight. <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">In an attempt to get some palo alto firewalls added to rancid for config backup I'm having issues with rancid properly logging in.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">From the logs I see this for all the firewalls:<u></u><u></u></span></font></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">firewall1 panlogin error: Error: Check your passwd for firewall1<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">firewall1: missed cmd(s): show config running,set cli pager off,set cli configuration-output-format set,set cli scripting-mode on,show system
info<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">firewall1: End of run not found<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">If I run it via CLI (sudo su - ranciduser before running it..) it completes correctly. Both are using the exact same clogin file as this works
for a lot of routers and other firewalls. It's just specifically the palo alto firewalls that are failing. Suggestions on what to check or how to debug this behavior? <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">#<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">[ranciduser@tools ~]$ /usr/local/rancid/bin/panrancid -d firewall1<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">executing panlogin -t 90 -c"set cli scripting-mode on;set cli pager off;set cli configuration-output-format set;show system info;show config running" firewall1<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line: firewall1<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line: spawn ssh -c 3des -x -l ranciduser firewall1<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line: Password:<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line: Last login: Wed May 1 12:12:57 2013 from
<a href="http://tools.removed.com" target="_blank">tools.removed.com</a><u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line: ranciduser@fw1(passive)><u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line: ranciduser@fw1(passive)><u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line: ranciduser@fw1(passive)> set ranciduser@fw1(passive)> set cli ranciduser@fw1(passive)> set cli scripting-mode ranciduser@fw1(passive)> set cli scripting-mode on<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">PROMPT MATCH: ranciduser@fw1\(passive\)[#>]<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">HIT COMMAND:ranciduser@fw1(passive)> set ranciduser@fw1(passive)> set cli ranciduser@fw1(passive)> set cli scripting-mode ranciduser@fw1(passive)> set cli scripting-mode on<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">COMMAND is: set cli scripting-mode on|EatCommand<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">HIT COMMAND:ranciduser@fw1(passive)> set cli pager off<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">COMMAND is: set cli pager off|EatCommand<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">HIT COMMAND:ranciduser@fw1(passive)> set cli configuration-output-format set<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">COMMAND is: set cli configuration-output-format set|EatCommand<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">HIT COMMAND:ranciduser@fw1(passive)> show system info<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">COMMAND is: show system info|ShowInfo<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt"> In ShowInfo:: ranciduser@fw1(passive)> show system info<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">HIT COMMAND:ranciduser@fw1(passive)> show config running<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">COMMAND is: show config running|ShowConfig<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt"> In ShowConfig: ranciduser@fw1(passive)> show config running<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line:<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">exiting<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">#<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">Thanks for your help!<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">-Tim<u></u><u></u></span></font></p>
</div>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>