<p dir="ltr">I can open a ticket, but I'm concerned that I can not show them an example of it broke besides the script. They may work with me if can't show its broke manually. Thanks again Doug for assistance. </p>

<p dir="ltr">-Chip</p>
<div class="gmail_quote">On Jun 18, 2014 1:14 PM, "Hughes, Doug" <<a href="mailto:Douglas.Hughes@deshawresearch.com">Douglas.Hughes@deshawresearch.com</a>> wrote:<br type="attribution"><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">EatCommand just takes care of registering and aligning for the next command since that command doesn’t produce
 any ouput, but you still need to do something with what echoes back to expect.<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">Your below panlogin to firewallv5 worked perfectly.<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">You can see it repeating each word and building until cli scripting-mode is on, and then everything after that
 works ok.<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">Yet it didn’t work for firewallv6. This seems like a bug. I’d open a case with <a href="http://support.paloaltonetworks.com" target="_blank">support.paloaltonetworks.com</a> to
 see what’s going on. Something weird is causing the cli scripting-mode on to fail.<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"">
 Chip Pleasants [mailto:<a href="mailto:wpleasants@gmail.com" target="_blank">wpleasants@gmail.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, June 18, 2014 12:12 PM<br>
<b><span style="font-weight:bold">To:</span></b> Hughes, Doug<br>
<b><span style="font-weight:bold">Cc:</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> Re: [rancid] Panrancid with PAN 6.0<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>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I think I see what you are talking about now.  Here are the two examples.  One from a version 6 and one from a  version 5.  Now the odd part is
 when I perform this test manually t</span></font><font face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">urning on  </span></font><font face="Arial"><span style="font-family:"Arial","sans-serif"">'set cli scripting-mode
 on' it doesn't auto-complete on versions 6.0.2 or 5.0.11.  Would there be a difference with the EatCommand portion of the script?  Thanks for taking the time to work with me Doug.</span></font><u></u><u></u></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"><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">[rancid@cmh1vlobs01 rancid]$ /usr/libexec/rancid/panrancid -d
<a href="http://FIREWALLV5.domain.com" target="_blank">FIREWALLV5.domain.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">executing panlogin -t 90 -c"set cli scripting-mode on;set cli pager off;show system info;show config running"
<a href="http://FIREWALLV5.domain.com" target="_blank">FIREWALLV5.domain.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: <a href="http://FIREWALLV5.domain.com" target="_blank">
FIREWALLV5.domain.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: rancid@FIREWALLV5(active)>
<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: rancid@FIREWALLV5(active)> set rancid@FIREWALLV5(active)> set cli rancid@FIREWALLV5(active)> set cli scripting-mode rancid@FIREWALLV5(active)> 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: rancid@FIREWALLV5\(active\)[#>]<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:rancid@FIREWALLV5(active)> set rancid@FIREWALLV5(active)> set cli rancid@FIREWALLV5(active)> set cli scripting-mode rancid@FIREWALLV5(active)> 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"> <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:rancid@FIREWALLV5(active)> 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"> <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:rancid@FIREWALLV5(active)> 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"> <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:: rancid@FIREWALLV5(active)> 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:rancid@FIREWALLV5(active)> 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"> <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: rancid@FIREWALLV5(active)> 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">[rancid@cmh1vlobs01 rancid]$
<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">[rancid@cmh1vlobs01 rancid]$ /usr/libexec/rancid/panrancid -d
<a href="http://FIREWALLV6.domain.com" target="_blank">FIREWALLV6.domain.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">executing panlogin -t 90 -c"set cli scripting-mode on;set cli pager off;show system info;show config running"
<a href="http://FIREWALLV6.domain.com" target="_blank">FIREWALLV6.domain.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: <a href="http://FIREWALLV6.domain.com" target="_blank">
FIREWALLV6.domain.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: rancid@FIREWALLV6(active)>
<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: rancid@FIREWALLV6(active)> set rancid@FIREWALLV6(active)> set cli rancid@FIREWALLV6(active)> set cli scripting-mode rancid@FIREWALLV6(active)> 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: rancid@FIREWALLV6\(active\)[#>]<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:rancid@FIREWALLV6(active)> set rancid@FIREWALLV6(active)> set cli rancid@FIREWALLV6(active)> set cli scripting-mode rancid@FIREWALLV6(active)> 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"> <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" color="red" face="Times New Roman"><span style="font-size:12.0pt;color:red">HIT COMMAND:rancid@FIREWALLV6(active)> set rancid@FIREWALLV6(active)> set cli rancid@FIREWALLV6(active)> set cli pager rancid@FIREWALLV6(active)> set cli pager off</span></font><u></u><u></u></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">COMMAND is: set cli pager off|EatCommand<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" color="red" face="Times New Roman"><span style="font-size:12.0pt;color:red">HIT COMMAND:rancid@FIREWALLV6(active)> show rancid@FIREWALLV6(active)> show system rancid@FIREWALLV6(active)> show system info</span></font><u></u><u></u></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">COMMAND is: show system info|ShowInfo<u></u><u></u></span></font></p>
<p class="MsoNormal" style="margin-left:.5in">
<font size="3" color="red" face="Times New Roman"><span style="font-size:12.0pt;color:red">    In ShowInfo:: rancid@FIREWALLV6(active)> show rancid@FIREWALLV6(active)> show system rancid@FIREWALLV6(active)> show system info</span></font><u></u><u></u></p>

<p class="MsoNormal" style="margin-left:.5in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt"><a href="http://FIREWALLV6.domain.com" target="_blank">FIREWALLV6.domain.com</a>: missed cmd(s): 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"><a href="http://FIREWALLV6.domain.com" target="_blank">FIREWALLV6.domain.com</a>: missed cmd(s): 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"><a href="http://FIREWALLV6.domain.com" target="_blank">FIREWALLV6.domain.com</a>: End of run not found<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"><a href="http://FIREWALLV6.domain.com" target="_blank">FIREWALLV6.domain.com</a>: End of run not found<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">[rancid@cmh1vlobs01 rancid]$ !<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"> -Chip<font color="#1f497d"><span style="color:#1f497d">     </span></font><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>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;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">On Wed, Jun 18, 2014 at 11:35 AM, Hughes, Doug <<a href="mailto:Douglas.Hughes@deshawresearch.com" target="_blank">Douglas.Hughes@deshawresearch.com</a>>
 wrote:<u></u><u></u></span></font></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in">
<font color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It doesn’t look like it is from your very first debugging output:</span></font><u></u><u></u></p>

<div>
<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<br>
    In ShowInfo:: rancid@FIREWALL(active)> <font color="red"><span style="color:red">show rancid@FIREWALL(active)> show system rancid@FIREWALL(active)></span></font> show system info<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"><br>
if scripting-mode was on, we wouldn’t see the stuff in red. (html mode on to read). The fact that the extra prompts show up indicates that it is intercepting the spaces and attempting to do ‘helpful command completion’.<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 color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></font><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in">
<font color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></font><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:1.0in">
<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""> Chip Pleasants [mailto:<a href="mailto:wpleasants@gmail.com" target="_blank">wpleasants@gmail.com</a>]
<br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, June 18, 2014 8:52 AM</span></font><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Tahoma"><span style="font-size:12.0pt;font-family:"Tahoma","sans-serif""><br>
<b><span style="font-weight:bold">To:</span></b> Hughes, Doug<br>
<b><span style="font-weight:bold">Cc:</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> Re: [rancid] Panrancid with PAN 6.0</span></font><u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:1.0in">
<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:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">It doesn't appear to be a bug, because I think its operating as you describe.  When I turn on </span></font><font face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> 'set
 cli scripting-mode on' it doesn't autocomplete on versions 6.0.2 or 5.0.11. Any other thoughts what could be going on?</span></font><u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:1.0in">
<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:1.0in">
<font size="3" face="Arial"><span style="font-size:12.0pt;font-family:"Arial","sans-serif"">Thanks,</span></font><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:1.0in">
<font size="3" face="Arial"><span style="font-size:12.0pt;font-family:"Arial","sans-serif"">Chip</span></font><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:1.0in">
<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:1.0in">
<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:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:1.0in">
<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:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">On Tue, Jun 17, 2014 at 3:34 PM, Hughes, Doug <<a href="mailto:Douglas.Hughes@deshawresearch.com" target="_blank">Douglas.Hughes@deshawresearch.com</a>> wrote:<u></u><u></u></span></font></p>

<p class="MsoNormal" style="margin-left:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hrm. Yes, I had it correct the first time. (oof, busy day)<br>
<br>
‘on’ is needed to prevent this ‘feature’:<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">line: rancid@FIREWALL(active)> set rancid@FIREWALL(active)> set cli rancid@FIREWALL(active)> set cli pager rancid@FIREWALL(active)> set cli pager off<u></u><u></u></span></font></p>

</div>
<p class="MsoNormal" style="margin-left:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">After each space, it does essentially a rewrite of the line as it tried to ‘auto-correct’ you from typing the wrong thing. This gets in the way of parsing with expect quite heavily, so I attempt
 to disable it as soon as possible. If set cli scripting-mode on does not cause this to stop (and it looks like it doesn’t), then that appears to be a bug. You can also see this by using type script:<br>
<br>
Here’s how it looks at the command line:<br>
Drdgpfs0002:/tmp$ script<br>
drdgpfs0002:/tmp$ ssh -l admin paloalto.en<br>
<a href="mailto:admin@paloalto.en's" target="_blank">admin@paloalto.en's</a> password:<br>
Last login: Tue Jun 17 15:05:06 2014 from <a href="http://drdbcntl.en.desres.deshaw.com" target="_blank">
drdbcntl.en.desres.deshaw.com</a><br>
Welcome admin.<br>
<a href="mailto:admin@paloalto.en" target="_blank">admin@paloalto.en</a>> set cli scripting-mode on<br>
<a href="mailto:admin@paloalto.en" target="_blank">admin@paloalto.en</a>> set cli ? <ENTER here><br>
<br>
Invalid syntax.<br>
<a href="mailto:admin@paloalto.en" target="_blank">admin@paloalto.en</a>> exit<br>
<br>
<br>
Here's how it looks in the corresponding typescript file:<br>
i Script started on Tue 17 Jun 2014 03:25:13 PM EDT<br>
drdgpfs0002:/tmp$ ssh -l admin paloalto<br>
<a href="mailto:admin@paloalto.en's" target="_blank">admin@paloalto.en's</a> password: ^M<br>
Last login: Tue Jun 17 15:05:06 2014 from <a href="http://drdbcntl.en.desres.deshaw.com" target="_blank">
drdbcntl.en.desres.deshaw.com</a>^M^M<br>
Welcome admin.^M<br>
<a href="mailto:admin@paloalto.en" target="_blank">admin@paloalto.en</a>> set ^M^[[Kadmin@paloalto.en> set cli ^M^[[Kadmin@paloalto.en><br>
 set cli scripting-mode ^M^[[Kadmin@paloalto.en> set cli scripting-mode on^M<br>
<a href="mailto:admin@paloalto.en" target="_blank">admin@paloalto.en</a>> set cli ?^M<br>
^M<br>
Invalid syntax.^M<br>
<a href="mailto:admin@paloalto.en" target="_blank">admin@paloalto.en</a>> exit^M<br>
Connection to paloalto.en closed.^M^M<br>
drdgpfs0002:/tmp$ exit^M^M<br>
exit^M<br>
<br>
Script done on Tue 17 Jun 2014 03:25:34 PM EDT<br>
<br>
If 'set cli scripting-mode on' doesn't disable the 'space' feature, then the rest of the expect is very iffy at best and difficult to manage<br>
<br>
Here's another way to confirm the behavior<br>
<br>
Type config <space><br>
<br>
If it autocompletes to 'configure', then cli scripting-mode is not on and results *will* vary.<br>
Disabling the pager is also important since it disables the --more-- when show config is running.<br>
<br>
I am running 6.0.2 but no HA on PA-3020 and PA-2050<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal" style="margin-left:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
<br>
<br>
From: Chip Pleasants [mailto:<a href="mailto:wpleasants@gmail.com" target="_blank">wpleasants@gmail.com</a>]<u></u><u></u></span></font></p>
</div>
<p class="MsoNormal" style="margin-left:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">Sent: Tuesday, June 17, 2014 3:21 PM<u></u><u></u></span></font></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt">To: Hughes, Doug<br>
Cc: <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
Subject: Re: [rancid] Panrancid with PAN 6.0<br>
<br>
Tried it on both versions.  Seems like they both yield the same result.  Doesn't the script turn cli scripting-mode on? Or do we don't really care that's its on or off?<br>
<br>
<br>
<br>
<br>
user@FIREWALLV6(active)> set cli scripting-mode off<br>
user@FIREWALLV6(active)> set cli scripting-mode <br>
  off   off <br>
  on    on <br>
<br>
user@FIREWALLV6(active)> set cli scripting-mode <br>
<br>
<br>
<br>
<br>
<br>
<br>
user@FIREWALLV5(active)> set cli scripting-mode off<br>
user@FIREWALLV5(active)> set cli scripting-mode <br>
  off   off <br>
  on    on <br>
<br>
user@FIREWALLV5(active)> set cli scripting-mode <br>
<br>
<br>
<br>
-Chip<br>
<br>
<br>
On Tue, Jun 17, 2014 at 3:10 PM, Hughes, Doug <<a href="mailto:Douglas.Hughes@deshawresearch.com" target="_blank">Douglas.Hughes@deshawresearch.com</a>> wrote:<br>
Sorry, I meant ‘off’, you need to set it to off and then try the ? test.<br>
 <br>
From: Chip Pleasants [mailto:<a href="mailto:wpleasants@gmail.com" target="_blank">wpleasants@gmail.com</a>]<br>
Sent: Tuesday, June 17, 2014 2:48 PM<br>
<br>
To: Hughes, Doug<br>
Cc: <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
Subject: Re: [rancid] Panrancid with PAN 6.0<br>
 <br>
Here's what I get. I get the same result from a version 5.x PA. I removed the "set cli scripting-mode on" from the script to test. Version 5.x PA works and version 6.x PA end up with the same result. <br>
 <br>
 <br>
user@FIREWALL(active)> set cli scripting-mode on<br>
user@FIREWALL(active)> set cli scripting-mode ?<br>
? is not one of <on|off><br>
 <br>
Invalid syntax.<br>
user@FIREWALL(active)> <br>
 <br>
 <br>
 <br>
line: rancid@FIREWALL(active)> set rancid@FIREWALL(active)> set cli rancid@FIREWALL(active)> set cli pager rancid@FIREWALL(active)> set cli pager off<br>
PROMPT MATCH: rancid@FIREWALL\(active\)[#>]<br>
HIT COMMAND:rancid@FIREWALL(active)> set rancid@FIREWALL(active)> set cli rancid@FIREWALL(active)> set cli pager rancid@FIREWALL(active)> set cli pager off<br>
 <br>
COMMAND is: set cli pager off|EatCommand<br>
HIT COMMAND:rancid@FIREWALL(active)> show rancid@FIREWALL(active)> show system rancid@FIREWALL(active)> show system info<br>
 <br>
COMMAND is: show system info|ShowInfo<br>
    In ShowInfo:: rancid@FIREWALL(active)> show rancid@FIREWALL(active)> show system rancid@FIREWALL(active)> show system info<br>
<a href="http://FIREWALL.dswinc.net" target="_blank">FIREWALL.dswinc.net</a>: missed cmd(s): show config running<br>
<a href="http://FIREWALL.dswinc.net" target="_blank">FIREWALL.dswinc.net</a>: missed cmd(s): show config running<br>
<a href="http://FIREWALL.dswinc.net" target="_blank">FIREWALL.dswinc.net</a>: End of run not found<br>
<a href="http://FIREWALL.dswinc.net" target="_blank">FIREWALL.dswinc.net</a>: End of run not found<br>
#<br>
[rancid@server rancid]$<br>
 <br>
 <br>
 <br>
 <br>
On Tue, Jun 17, 2014 at 2:28 PM, Hughes, Doug <<a href="mailto:Douglas.Hughes@deshawresearch.com" target="_blank">Douglas.Hughes@deshawresearch.com</a>> wrote:<br>
Ah, you are running in HA mode I see. That could be throwing things off, but I think I fixed that in 2013 sometime.<br>
(I don’t run any in HA)<br>
 <br>
It looks to me like ‘set cli scripting-mode on’ is failing<br>
 <br>
To confirm this, login to the PA at command line, then type set cli scripting-mode on<br>
 <br>
Now type “set cli scripting-mode ?”<br>
 <br>
If you get any sort of command completion, the cli scripting mode setting is not working and needs to be turned into a PA bug report. That is what it looks like it is happening by looking at the command staggering for subsequent lines.<br>

 <br>
From: Chip Pleasants [mailto:<a href="mailto:wpleasants@gmail.com" target="_blank">wpleasants@gmail.com</a>]<br>
Sent: Tuesday, June 17, 2014 1:39 PM<br>
To: Hughes, Doug<br>
Cc: <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
Subject: Re: [rancid] Panrancid with PAN 6.0<br>
 <br>
Thanks Doug. I am running the most recent version, but for grins I replaced them anyway.  Still seeing the issue on two sets. The others seem to work fine. Anything I provide that help find the trouble?<br>
 <br>
-Chip<br>
 <br>
 <br>
On Mon, Jun 16, 2014 at 4:37 PM, Hughes, Doug <<a href="mailto:Douglas.Hughes@deshawresearch.com" target="_blank">Douglas.Hughes@deshawresearch.com</a>> wrote:<br>
Yes, it’s working for me. Are you using the latest? (attached)<br>
 <br>
 <br>
From: Rancid-discuss [mailto:<a href="mailto:rancid-discuss-bounces@shrubbery.net" target="_blank">rancid-discuss-bounces@shrubbery.net</a>] On Behalf Of Chip Pleasants<br>
Sent: Monday, June 16, 2014 2:01 PM<br>
To: <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
Subject: [rancid] Panrancid with PAN 6.0<br>
 <br>
Does anyone have Panrancid working with PAN version 6.0.2?  I have four sets running PAN version 5.0.11 without an issues.  Once I upgraded one set the script times out. Below is a debug. Let me know if you have any questions. <br>

 <br>
Cheers,<br>
 <br>
Chip<br>
 <br>
 <br>
[rancid@cmh1vlobs01 rancid]$ /usr/libexec/rancid/panrancid -d <a href="http://cmh1-z4-f01.domain.com" target="_blank">cmh1-z4-f01.domain.com</a> <br>
executing panlogin -t 90 -c"set cli scripting-mode on;set cli pager off;show system info;show config running" <a href="http://cmh1-z4-f01.domain.com" target="_blank">cmh1-z4-f01.domain.com</a><br>
line: <a href="http://cmh1-z4-f01.domain.com" target="_blank">cmh1-z4-f01.domain.com</a><br>
line: spawn ssh -c 3des -x -l rancid <a href="http://cmh1-z4-f01.domain.com" target="_blank">cmh1-z4-f01.domain.com</a><br>
line:                                 NOTICE TO USERS              <br>
line:   This is an official computer system and is the property of POOP Incorporated. <br>
line:   It is for authorized users only.  Unauthorized  users are prohibited. <br>
line:   Users (authorized or unauthorized) have no  explicit or implicit expectation of <br>
line:   privacy.  Any or all uses of this system may be subject to one or more of the <br>
line:   following actions:  interception, monitoring, recording, auditing, inspection and<br>
line:   disclosing to security personnel and law enforcement personnel, as well as <br>
line:   authorized officials of other agencies, both domestic and foreign. By using this <br>
line:   system, the user consents to these actions.  Unauthorized or improper use of <br>
line:   this system may result in administrative disciplinary action and civil and criminal <br>
line:   penalties.  By accessing this system you indicate your awareness of and<br>
line:   consent to these terms and conditions of use. Discontinue access immediately <br>
line:   if you do not agree to the conditions stated in this notice.<br>
line: <br>
line: Password: <br>
line: Last login: Mon Jun 16 08:00:00 2014 from <a href="http://cmh1vlobs01.domain.com" target="_blank">cmh1vlobs01.domain.com</a><br>
line: Welcome rancid.<br>
line: <br>
line: rancid@CMH1-Z4-F01(active)> <br>
line: rancid@CMH1-Z4-F01(active)> <br>
line: rancid@CMH1-Z4-F01(active)> set rancid@CMH1-Z4-F01(active)> set cli rancid@CMH1-Z4-F01(active)> set cli scripting-mode rancid@CMH1-Z4-F01(active)> set cli scripting-mode on<br>
PROMPT MATCH: rancid@CMH1-Z4-F01\(active\)[#>]<br>
HIT COMMAND:rancid@CMH1-Z4-F01(active)> set rancid@CMH1-Z4-F01(active)> set cli rancid@CMH1-Z4-F01(active)> set cli scripting-mode rancid@CMH1-Z4-F01(active)> set cli scripting-mode on<br>
 <br>
COMMAND is: set cli scripting-mode on|EatCommand<br>
HIT COMMAND:rancid@CMH1-Z4-F01(active)> set rancid@CMH1-Z4-F01(active)> set cli rancid@CMH1-Z4-F01(active)> set cli pager rancid@CMH1-Z4-F01(active)> set cli pager off<br>
 <br>
COMMAND is: set cli pager off|EatCommand<br>
HIT COMMAND:rancid@CMH1-Z4-F01(active)> show rancid@CMH1-Z4-F01(active)> show system rancid@CMH1-Z4-F01(active)> show system info<br>
 <br>
COMMAND is: show system info|ShowInfo<br>
    In ShowInfo:: rancid@CMH1-Z4-F01(active)> show rancid@CMH1-Z4-F01(active)> show system rancid@CMH1-Z4-F01(active)> show system info<br>
<a href="http://cmh1-z4-f01.domain.com" target="_blank">cmh1-z4-f01.domain.com</a> : missed cmd(s): show config running<br>
<a href="http://cmh1-z4-f01.domain.com" target="_blank">cmh1-z4-f01.domain.com</a> : missed cmd(s): show config running<br>
<a href="http://cmh1-z4-f01.domain.com" target="_blank">cmh1-z4-f01.domain.com</a> : End of run not found<br>
<a href="http://cmh1-z4-f01.domain.com" target="_blank">cmh1-z4-f01.domain.com</a> : End of run not found<br>
 <br>
 <br>
 <u></u><u></u></span></font></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-left:1.0in">
<font size="3" face="Times New Roman"><span style="font-size:12.0pt"> <u></u><u></u></span></font></p>
</div>
</div>
</div>
</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>
</div>

</blockquote></div>