[rancid] Rancid + Fortinet

Andy andy at benthamroad.co.uk
Wed Dec 8 11:02:40 UTC 2010


You are correct, the script I use is fnlogin which is from a patch (provided
by Diego Ercolani) which modifies the original nlogin;

The line is remarked;

# FortiOS 2.x prompts can end in either '#' or '$'
    set prompt "\[#\\$]"


Andy

-----Original Message-----
From: Chris Kilian [mailto:chris.kilian at seccomglobal.com] 
Sent: 07 December 2010 22:17
To: Andy; 'Mozzi'; rancid-discuss at shrubbery.net
Subject: RE: [rancid] Rancid + Fortinet

Guys

I was under the belief that fnlogin was used for Fortigate, is this correct,
also I cant find that line you talk about Andy can you provide any more
detail

-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Andy
Sent: Tuesday, 7 December 2010 11:19 PM
To: 'Mozzi'; rancid-discuss at shrubbery.net
Subject: Re: [rancid] Rancid + Fortinet

Hi,
Is the prompt set to expect "#" in your nlogin script?

Line 458 in nlogin should be;
set prompt "\[#\\$] $"

That works for me.

Andy

-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Mozzi
Sent: 07 December 2010 09:15
To: rancid-discuss at shrubbery.net
Subject: [rancid] Rancid + Fortinet

Allo all

I have an issue with rancid backing up fortigate devices.
Everything seems correct, but when checking if nlogin works, it auto logs
in, but I get this:

rancid at thunderaxe:/backups/Networking/bin> ./nlogin -t 90 -c"get system
status;get conf" 192.168.0.51
192.168.0.51
spawn ssh -c 3des -x -l mozz 192.168.0.51 mozzi at 192.168.0.51's password: 
ONEFIRE # get system status

Error: TIMEOUT reached
rancid at thunderaxe:/backups/Networking/bin> get system status If 'get' is not
a typo you can use command-not-found to lookup the package that contains it,
like this:
    cnf get
rancid at thunderaxe:/backups/Networking/bin> 


Now I just don't understand!!

Mozzi


_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss



More information about the Rancid-discuss mailing list