[rancid] Fortigate problem

Gareth Hopkins gabbawp at gmail.com
Mon May 20 14:02:59 UTC 2013


Hi Charles, 

I had the same issue as per http://www.shrubbery.net/pipermail/rancid-discuss/2012-May/006382.html

The following change in fnrancid should work 

Replace 

} elseif [string match "ssh*" $prog] {
            regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port
            set cmd $sshcmd
            if {"$port" == ""} { #BAD!!
                set cmd "$cmd -p $port"
            } 

with 

} elseif [string match "ssh*" $prog] {
            regexp {ssh(:([^[:space:]]+))*} $prog methcmd suffix port
            set cmd $sshcmd
            if {"$port" != ""} {
                set cmd "$cmd -p $port"
            } 

Regards, 
Gareth 

On 20 May 2013, at 12:24 PM, Charles van der Spuy <charlesvds at yahoo.com> wrote:

> I hope someone can assist me.
> 
> I have recently upgraded to rancid 2.3.8 and this seems to have broken the Fortigate module.
> Cisco devices still work and I am able to manually login to Fortigate devices using clogin.
> 
> When I run the full rancid-run I get the following in the logfile:
> 
> Trying to get all of the configs.
> ftg1-universal fnlogin error: Error: Couldn't login: ftg1-universal
> ftg1-universal: missed cmd(s): show full-configuration,get system status
> 0: found end
> ftg1-universal: End of run not found
> etc.....
> 
> I'm getting to the end of my tether on this one and don't want to have to degrade to an earlier version.
> Has anybody been experiencing the same ?
> 
> Charles van der Spuy.
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130520/9c985b63/attachment.html>


More information about the Rancid-discuss mailing list