<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Thanks! Sadly our RHEL6 and other servers are running 3.1...<br>
<br>
Next time I'll check your source tree before duplicating effort on
a feature<br>
you've already added :)<br>
<br>
Thank you for the work!<br>
<br>
E</tt><br>
<br>
<div class="moz-cite-prefix">On 07/13/2015 03:01 PM, heasley wrote:<br>
</div>
<blockquote cite="mid:20150713220101.GG65441@shrubbery.net"
type="cite">
<pre wrap="">Sat, Jul 11, 2015 at 04:51:55PM -0700, Ehud Gavron:
</pre>
<blockquote type="cite">
<pre wrap="">The following patch allows
"add method ip.address.goes.here ssh:nnnn" for MikroTik routers.
It also extends the line width so that wide line (200 characters)
responses don't mess up rancid.
Ehud Gavron
--- /usr/libexec/rancid/mtlogin 2015-05-30 11:16:40.000000000 -0700
+++ /home/rancid2/bin/mtlogin 2015-05-15 15:14:01.923740909 -0700
@@ -309,9 +309,16 @@
send_user "\nError: telnet failed: $reason\n"
return 1
}
- } elseif ![string compare $prog "ssh"] {
- if [ catch {spawn $sshcmd -c $cyphertype -x -l $user+ct $router} reason ] {
- send_user "\nError: $sshcmd failed: $reason\n"
+ } elseif [string match "ssh*" $prog] {
+ regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port
+ set cmd $sshcmd
+ if {"$port" != ""} {
+ set retval [ catch {spawn $sshcmd -p $port -c $cyphertype -x -l $user+ct200w $router} reason ]
+ } else {
+ set retval [ catch {spawn $sshcmd -c $cyphertype -x -l $user+ct200w $router} reason ]
+ }
+ if { $retval } {
+ send_user "\nError: $sshcmd failed: $reason\n"
return 1
}
} elseif ![string compare $prog "rsh"] {
</pre>
</blockquote>
<pre wrap="">
we already have this for 3.2. copy attached.
</pre>
<blockquote type="cite">
<pre wrap="">@@ -382,7 +389,7 @@
return 1 }
-re "$u_prompt" {
- send -- "$user+ct\r"
+ send -- "$user+ct200w\r"
set uprompt_seen 1
exp_continue
}
</pre>
</blockquote>
<pre wrap="">
that is a bizarre platform. is it wrapping long lines, truncating or
discarding? Is there any reason that this username feature may not be
supported? eg: a minimum version, etc.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Rancid-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>
<a class="moz-txt-link-freetext" href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a></pre>
</blockquote>
<br>
</body>
</html>