<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div>Interesting! I have yet to upgrade our installations to 8.1.4. Thanks for the heads up!<br /><br /><div style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:10px 0;vertical-align:middle;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#F77A0B;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="vertical-align:top;font-family:Calibri;font-weight:700;">Chris<span style="font-family:remialcxesans;font-size:1px;color:#FFFFFF;"></span> </td><td align="left" style="vertical-align:top;font-family:Calibri;font-weight:700;">Gauthier</td><td align="left" style="vertical-align:top;color:#444444;font-family:Calibri;"> Senior Network Engineer</td><td align="left" style="vertical-align:top;font-family:Calibri;"> | </td><td align="left" style="vertical-align:top;color:#444444;font-family:Calibri;">comScore, Inc.</td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:3px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#444444;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="vertical-align:top;font-family:Calibri;">t +1 <a href="tel:(503)%20331-2704" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#444444;"><strong style="font-weight:400;">(503) 331-2704</strong></a></td><td align="left" style="vertical-align:top;color:#F77A0B;font-family:Calibri;"> | <br /></td><td align="left" style="vertical-align:top;font-family:Calibri;"><a href="mailto:cgauthier@comscore.com" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#444444;"><strong style="font-weight:400;">cgauthier@comscore.com</strong></a></td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:2px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#444444;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="vertical-align:top;font-family:Calibri;">317 SW Alder Street, Suite 700</td><td align="left" style="vertical-align:top;color:#F77A0B;font-family:Calibri;"> | </td><td align="left" style="vertical-align:top;font-family:Calibri;">Portland, OR 97204 </td><td align="left" style="vertical-align:top;font-family:Calibri;"> United States</td></tr></table></td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:2px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;color:#444444;font-style:normal;font-weight:400;white-space:nowrap;"><tr style="font-size:14.67px;"><td align="left" style="vertical-align:top;font-family:Calibri;"><a href="http://www.comscore.com/" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#0563C1;"><strong style="font-weight:400;">comscore.com</strong></a></td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:10px 0 2px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="white-space:normal;color:#444444;font-size:10.67px;font-family:Calibri;font-weight:400;font-style:normal;text-align:justify;width:500px;"><tr style="font-size:10.67px;"><td style="font-family:Calibri;">This e-mail (including any attachments) may contain information that is private, confidential, or protected by attorney-client or other privilege. If you received this e-mail in error, please delete it from your system and notify sender.</td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></div>-----Original Message-----<br />From: Rancid-discuss <rancid-discuss-bounces@shrubbery.net> on behalf of Erik Muller <erikm@buh.org><br />Date: Friday, October 26, 2018 at 3:25 PM<br />To: heasley <heas@shrubbery.net><br />Cc: rancid list <rancid-discuss@shrubbery.net><br />Subject: [rancid] paloalto feedback in current alpha [was: Re: clogin commenting script commands following multiple blanks lines]<br /><br />On 10/24/18 18:32 , heasley wrote:<br />> Wed, Oct 24, 2018 at 09:19:31PM +0000, heasley:<br />> ok; committed. Either the alpha tarball or the svn repo. Welcome testers,<br />> esp for palo alto, of which I have none.<br /><br />At least on 8.1.4 on my 3250s, the cli is a little bit busted until you get out of interactive mode - for every space you enter between words in the command, it redraws the current line, which was messing up the prompt matching as below. Fix for that attached at end of message.<br />-e<br /><br />rancid@status:~$ rancid -t paloalto -d fw1.ams<br />loadtype: device type paloalto<br />loadtype: found device type paloalto in /home/erikm/rancidtest/etc/rancid.types.base<br />executing panlogin -t 90 -c"set cli scripting-mode on;set cli pager off;show system info;show config running" fw1.ams<br />line: fw1.ams<br />line: spawn ssh -c aes256-ctr,aes192-ctr -x -l rancid fw1.ams<br />line: Password:<br />line: Last login: Fri Oct 26 20:04:51 2018 from 10.x.x.x<br />line: No entry for terminal type "network";<br />line: using dumb terminal settings.<br />line:<br />line: Number of failed attempts since last successful login: 0<br />line:<br />line:<br />line: rancid@fw1.ams(active)><br />line: rancid@fw1.ams(active)><br />line: rancid@fw1.ams(active)> set<br />line: rancid@fw1.ams(active)> set cli<br />line: rancid@fw1.ams(active)> set cli scripting-mode<br />line: rancid@fw1.ams(active)> set cli scripting-mode on<br />PROMPT MATCH: rancid@fw1.ams\(active\)[#>]<br />HIT COMMAND:rancid@fw1.ams(active)> set cli scripting-mode on<br /><br />COMMAND is: set cli scripting-mode on|rancid::RunCommand<br /> In RunCommand: rancid@fw1.ams(active)> set cli scripting-mode on<br />line: srancid@fw1.ams(active)> how system info<br />line: s<br />line: hostname: fw1.ams<br />line: ip-address: 10.x.x.x<br />...<br />line: family: 3200<br />line: model: PA-3250<br />line: sw-version: 8.1.4-h2<br />...<br />line: multi-vsys: off<br />line: operational-mode: normal<br />line:<br />line: rancid@fw1.ams(active)> how config running<br />line: exit<br />line:<br />line: config {<br />line: mgt-config {<br />line: users {<br />...<br />line: rancid@fw1.ams(active)> Connection to fw1.ams closed.<br />fw1.ams: missed cmd(s): set cli pager off, show system info<br />fw1.ams: End of run not found<br />fw1.ams: clean_run is false<br />fw1.ams: found_end is false<br />!<br /><br /><br /><br />erikm@status:~/src$ diff -ur rancid-3.99.99 rancid-3.99.99-em/<br />diff -ur rancid-3.99.99/bin/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpanlogin.in&c=E,1,6ITCpn7S8etHwRGxye4nnY-WXsOspZJKTHaSxUMwn7CUVVRDtL9N4eULfbpZKMnS2fE-49UrdfNQg0zd5F8rE7gq5t_QzpoQwMmdI9v87bdIynxj_kNZYaM,&typo=1 rancid-3.99.99-em/bin/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpanlogin.in&c=E,1,AFuvKrybC8GB6DG7swV-DVjqoacwb3bN-9HbNrwIHSu3eQM0RtFFTm_43KfETWr8-Uz_SJGx3N-3-OaDDhdxtdoNE4ZVfLEnq_ly_T8O8XSbFZ9ZEA,,&typo=1<br />--- rancid-3.99.99/bin/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpanlogin.in&c=E,1,PaBCXESaFYWjzoqImlahNbNlLrsy_b2vXybrRIrH36LE0245jqMqk6zO7RNZojKH5MycizqdsA_XLMSlWFTJWC55BdQ4EZyVefR65_EuhGMq766dEcz4ZHHC&typo=1 2018-10-24 18:26:50.000000000 -0400<br />+++ rancid-3.99.99-em/bin/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpanlogin.in&c=E,1,EMioRKDRQlsHo46MUuAFylZdiNznL5XtoxGxMWzoJ-zE-yjczHpChxK9eUwVOkVfFMmWgFqx3n44hw-w1Ry9jmPUH43kK_du2ctguUJdL-p0-eIk&typo=1 2018-10-26 17:24:55.945967567 -0400<br />@@ -455,14 +455,22 @@<br /> }<br /> }<br /><br />+ # PAN-OS in interactive mode will send a newline and then redraw the<br />+ # whole prompt-and-command if you send a space.<br />+ if { $do_command || $do_script } {<br />+ set cmd "set cli scripting-mode on\r"<br />+ send $cmd<br />+ # ensure we eat the partial commands redrawn while entering the command<br />+ expect -re "$cmd.*$prompt" {}<br />+ send "set cli pager off\r"<br />+ expect -re $prompt {}<br />+ }<br />+<br /> if { $do_command } {<br /> if {[run_commands $prompt $command]} {<br /> continue<br /> }<br /> } elseif { $do_script } {<br />-# send "set cli scripting-mode on\r"<br />-# send "set cli pager off\r"<br />- expect -re $prompt {}<br /> source $sfile<br /> close<br /> } else {<br />diff -ur rancid-3.99.99/etc/rancid.types.base rancid-3.99.99-em/etc/rancid.types.base<br />--- rancid-3.99.99/etc/rancid.types.base 2018-10-24 11:13:49.000000000 -0400<br />+++ rancid-3.99.99-em/etc/rancid.types.base 2018-10-26 17:16:53.950868707 -0400<br />@@ -607,9 +607,8 @@<br /> paloalto;login;panlogin<br /> paloalto;module;panos<br /> paloalto;inloop;panos::inloop<br />-paloalto;command;rancid::RunCommand;set cli scripting-mode on<br />-paloalto;command;rancid::RunCommand;set cli pager off<br /> paloalto;command;panos::ShowInfo;show system info<br />+paloalto;command;panos::ShowInventory;show chassis inventory<br /> paloalto;command;panos::ShowConfig;show config running<br /> #<br /> procket;script;prancid<br />diff -ur rancid-3.99.99/lib/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fnxos.pm.in&c=E,1,tqRFL7QBqp5N9_vWuTMWwfLR3zhD5Z-aWd8zb4ymx8UXKMyN4UAsbleguZppsQZxEyybiih1kmjUe3xh14kBFX99sF7DlgjDCb_Dqhs0KvfdQyw7gcgAUw,,&typo=1 rancid-3.99.99-em/lib/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fnxos.pm.in&c=E,1,JACD8ijcXFc2KdkXkmtL6QSeGU_NOOPVmovZiHGdVPL85CLgHDDILs-KqaEsZu-Kns8_DELxKloc1Bt5GQTRNK7SrBuQaac2T00J7L_MXtfumXfO77s,&typo=1<br />--- rancid-3.99.99/lib/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fnxos.pm.in&c=E,1,NGNes7dJXeV8s2Sqt0gQmCAXeJfUQi1YJcx4CsmImWwi4axvCK2eDslTWStHiRGGW1syuxjnoCXxk2ss4RlSrQ5CxLytEWhqgMCHDyIfHpiAwF6dh1U,&typo=1 2018-09-19 18:02:44.000000000 -0400<br />+++ rancid-3.99.99-em/lib/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fnxos.pm.in&c=E,1,Gsr8TiBW7YqcDWKivbh5ZgN_vVlB7lZod_5hLaW8lxrqDhBKsSchvI7ctiyw7Iniv2TGTTSPOCleizxfWjFMxYNZhNrysDxx7AnHpRWp3JM42XJrztV5ClK96Q,,&typo=1 2018-10-26 17:58:51.611639817 -0400<br />@@ -494,9 +494,12 @@<br /> # Drop vtp_debug.log and vtp_debug_old.log CDETS bug CSCuy87611<br /> /\s+vtp_debug(_old)?\.log$/ && next;<br /><br />+ # Drop bcm_mem_locl_trace.log<br />+ /\s+bcm_mem_lock_trace\.log$/ && next;<br />+<br /> next if (/BufferMonitor-1HourData/);<br /><br />- if (/( debug_logs| log)\/$/) {<br />+ if (/( debug_logs| log| vdc_\d+)\/$/) {<br /> # change<br /> # 8192 Jan 08 14:05:05 2015 log/<br /> # to<br />diff -ur rancid-3.99.99/lib/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpanos.pm.in&c=E,1,wybM--nn0b3GZezeXwnIASz16ohSfuG3iIF0YSZF-tJFQEmGCjoPfdvn2RkyDIOedhV3QbLekcjMJVR9w-1zOzONAQNqp64Rq9HpvMh86ubh3CJxgQ,,&typo=1 rancid-3.99.99-em/lib/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpanos.pm.in&c=E,1,znAoj5aoZ94EWlULAGnVz3BQyYPOB9RhC6dl1kZnj9hjMYHJXRLtzaa7hRQj57fWGgbmrcZsHQQcPZA0dttaCKLwj2DzN1xiulF-1bxqz84IK2RSttw3j86tkOTf&typo=1<br />--- rancid-3.99.99/lib/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpanos.pm.in&c=E,1,w5a1nRpygvqdqCmQHt0uHGLjgyPiJ98Vh8Hta2vTPcDOG3K6Dm94ovl7YeWSvgXQuHGL9gVrJKuzPUVB8SwzHwZBP2tNAh7xnrw4QNq_kAbC3jo,&typo=1 2016-02-16 07:28:46.000000000 -0500<br />+++ rancid-3.99.99-em/lib/https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fpanos.pm.in&c=E,1,uHSi8I1UcPVkwxOQRitK7GrRCXWOBpiFZ0PePIt2xZ-v24ryFpOozglEeqOnuUyGaAXn-mZZQ1q2vX5Kq-mPkDdUtIYX4wQMv--AEZgftElzvmHHZEjqGA,,&typo=1 2018-10-26 17:19:11.552895792 -0400<br />@@ -119,6 +119,23 @@<br /> return(0);<br /> }<br /><br />+# This routine parses "show chassis inventory"<br />+sub ShowInventory {<br />+ my($INPUT, $OUTPUT, $cmd) = @_;<br />+ my($slot);<br />+<br />+ print STDERR " In ShowInventory:: $_" if ($debug);<br />+<br />+ while (<$INPUT>) {<br />+ tr/\015//d;<br />+ last if (/^$prompt/);<br />+<br />+ ProcessHistory("INV","","","#$_");<br />+ }<br />+ ProcessHistory("INV","","","#\n");<br />+ return(0);<br />+}<br />+<br /><br /> # This routine parses "show config running"<br /> sub ShowConfig {<br /><br />_______________________________________________<br />Rancid-discuss mailing list<br />Rancid-discuss@shrubbery.net<br />https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.shrubbery.net%2fmailman%2flistinfo%2francid-discuss&c=E,1,aTwBxlJBb2A79a84ZvNFSyGs9kKZthxrSkYDt2m12f_KQgm6lVqOehmfnuc1GF8ELKLva2F6-xMYm8hzWNkhRAU3zKscC9lpA6sWt7qDJSDS5N8k8fA,&typo=1<br /><br /></div></body></html>