[rancid] microtik problems

john heasley heas at shrubbery.net
Wed Apr 27 18:10:50 UTC 2011


Mon, Dec 06, 2010 at 09:12:31AM -0500, Michael W. Lucas:
> sshcmd apparently doesn't handle spaces well, so I had to use an
> external script.  The sshcmd script is just:

This should fix that and will be included in the next release along
with the mikrotik module from Chris Boot.

Index: bin/mtlogin.in
===================================================================
--- bin/mtlogin.in	(revision 2295)
+++ bin/mtlogin.in	(working copy)
@@ -518,7 +518,7 @@
     if { "$cmethod" == "" } { set cmethod {{telnet} {ssh}} }
 
     # Figure out the SSH executable name
-    set sshcmd [find sshcmd $router]
+    set sshcmd [join [lindex [find sshcmd $router] 0] ""]
     if { "$sshcmd" == "" } { set sshcmd {ssh} }
 
     # Login to the router


More information about the Rancid-discuss mailing list