(2013-06-28)
Problem
Fortigate firewalls don't get updated. Error in rancid log is similar to:
Getting missed routers: round 4.
192.168.2.1 fnlogin error: Error: Couldn't login: 192.168.2.1
192.168.2.1: missed cmd(s): show full-configuration,get system status
0: found end
192.168.2.1: End of run not found
Solution
Index: bin/fnlogin.in
===================================================================
--- bin/fnlogin.in (revision 2376)
+++ bin/fnlogin.in (revision 2435)
@@ -303,7 +303,7 @@
} elseif [string match "ssh*" $prog] {
regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port
set cmd $sshcmd
- if {"$port" == ""} {
+ if {"$port" != ""} {
set cmd "$cmd -p $port"
}
set retval [ catch {eval spawn [split "$cmd -c $cyphertype -x -l $user $router" { }]} reason ]
(
Source)