[rancid] microtik problems

Michael W. Lucas mwlucas at blackhelicopters.org
Mon Dec 6 14:12:31 UTC 2010


Chris,

Thanks for the hint (and the script).  I wound up with the following
working configuration:

add password core-5 YourPasswordHere
add user core-5 username+ct
add method core-5 ssh
add sshcmd core-5 {/usr/local/scripts/microtiklogin.sh}
add noenable core-5 {1}

sshcmd apparently doesn't handle spaces well, so I had to use an
external script.  The sshcmd script is just:

#!/bin/sh
exec ssh -p 2222 $@

I guess that the SSH username part of mtlogin doesn't add +ct
correctly.

==ml

On Fri, Dec 03, 2010 at 02:07:14PM -0600, Chris Wopat wrote:
> Michael,
> 
> I wonder if the issue has something to do with the Mikrotik doing a
> color terminal by default? If you look at the code it looks like it's
> supposed to append '+ct' to your username when you log in which
> disables color (c) and terminal autodetection (t) per changelog:
> 
> http://www.mikrotik.com/download/CHANGELOG_3
> 
> I did a clogin test using ssh and I had the same issue. Doing it over
> telnet does let me interact with the device. However, rancid-run -r
> <mikrotik> does work properly.
> 
> --Chris
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-- 
Michael W. Lucas 	mwlucas at BlackHelicopters.org
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
New book available: Network Flow Analysis
http://www.networkflowanalysis.com/


More information about the Rancid-discuss mailing list