[rancid] MikroTik missed cmd(s): system package print detail without-paging

IT-Info it-info at bugtusselwireless.com
Wed Jan 14 15:27:53 UTC 2015


Hi Heasley,


This patch got rid of that message in the logs.  Everything seems to be working well.   Thanks for all the help!


Brian 

-----Original Message-----
From: heasley [mailto:heas at shrubbery.net] 
Sent: Friday, January 9, 2015 5:48 PM
To: IT-Info; heasley
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] MikroTik missed cmd(s): system package print detail without-paging

Fri, Jan 09, 2015 at 08:37:51PM +0000, heasley:
> Fri, Jan 09, 2015 at 05:51:52PM +0000, IT-Info:
> > After patching bin/mtlogin, there seems to be improvement.  The devices that were experiencing the error are now being backed up properly.
> > 
> > The logs show many of these messages, though.  Is this normal?
> > are you disconnected or in a batch, at, or cron script?stty: impossible in this context
> 
> that is coming from expect...though i do not understand why.  catch should
> have prevented it.  what version of expect is this?
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

Please try this alternative patch:

Index: bin/mtlogin.in
===================================================================
--- bin/mtlogin.in	(revision 3012)
+++ bin/mtlogin.in	(working copy)
@@ -457,6 +457,15 @@
 source_password_file $password_file
 set in_proc 0
 set exitval 0
+# http://www.shrubbery.net/pipermail/rancid-discuss/2015-January/007984.html
+# if we have dont have a tty, we need some additional terminal settings
+if [catch {open /dev/tty w} ttyid] {
+    # no tty, ie: cron
+    set spawnopts "-nottycopy"
+    set stty_init "cols 132"
+} else {
+    catch {close ttyid} reason
+}
 foreach router [lrange $argv $i end] {
     set router [string tolower $router]
     send_user "$router\n"


More information about the Rancid-discuss mailing list