<div dir="ltr"><div>Hello,</div><div><br></div><div>Unfortunately, that does not fix it, and neither does "network" or "dumb". Something that I might suggest is that you install the free CHR (cloud hosted router) as a VM rather easily, as long as you have a hypervisor, and test against that.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 15, 2021 at 1:56 PM heasley <<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Fri, Oct 15, 2021 at 01:39:18PM -0700, Michael Ducharme:<br>
> Hello,<br>
> <br>
> I had a look at your patch and I'm not sure that would fix the issue. Also<br>
> show-sensitive only works with v7 and above and throws an error on RouterOS<br>
> v6.<br>
> <br>
> Someone on the MikroTik forums found that there is no longer a newline<br>
> being generated after the output so the regexp doesn't match and so RANCID<br>
> no longer identifies the end of the command. You can see more detail here:<br>
> <a href="https://forum.mikrotik.com/viewtopic.php?t=179233#p885616" rel="noreferrer" target="_blank">https://forum.mikrotik.com/viewtopic.php?t=179233#p885616</a><br>
<br>
ah, thats a separate problem. thats fun. without looking-up that esc<br>
code, looks like some fancy cmdline hanlding. Maybe this will avoid<br>
that stupidity?<br>
<br>
diff --git a/lib/<a href="http://routeros.pm.in" rel="noreferrer" target="_blank">routeros.pm.in</a> b/lib/<a href="http://routeros.pm.in" rel="noreferrer" target="_blank">routeros.pm.in</a><br>
index 3b1b7dae..4ab9730e 100644<br>
--- a/lib/<a href="http://routeros.pm.in" rel="noreferrer" target="_blank">routeros.pm.in</a><br>
+++ b/lib/<a href="http://routeros.pm.in" rel="noreferrer" target="_blank">routeros.pm.in</a><br>
@@ -23,6 +23,8 @@ use rancid @VERSION@;<br>
<br>
# load-time initialization<br>
sub import {<br>
+ $ENV{'TERM'} = "vt100";<br>
+<br>
$timeo = 90; # mtlogin timeout in seconds<br>
<br>
0;<br>
<br>
or "network" or "dumb", if it has either in its termcap.<br>
<br>
> They came up with this patch to fix it and I confirmed that it works with<br>
> RouterOS v6.49 and v7. However I haven't tested with older RouterOS<br>
> versions, and I don't know if it might break something else:<br>
<br>
it could match other output unintentionally - maybe.<br>
<br>
> --- /usr/libexec/rancid/mtrancid-orig 2021-10-14<br>
> 03:44:22.102333666 +0200+++ /usr/libexec/rancid/mtrancid<br>
> 2021-10-13 07:16:22.567538444 +0200@@ -348,7 +348,7 @@<br>
> $clean_run=0;<br>
> last;<br>
> }<br>
> - while (/\s*($cmds_regexp)\s*$/) {<br>
> + while (/\s*($cmds_regexp)\s*/) {<br>
> $cmd = $1;<br>
> if (!defined($prompt)) {<br>
> $prompt = "\] > "; # crude but effective<br>
</blockquote></div>