For When You Can't Have The Real Thing
[ start | index | login ]
start > Rancid > 2.3.8 > fnlogin won't login

fnlogin won't login

Created by dave. Last edited by dave, 5 years and 168 days ago. Viewed 2,266 times. #1
[edit] [rdf]
labels
attachments
(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)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt