Hi Héctor!

On Wed, 28 Dec 2016, Héctor Sánchez wrote:

> Many thanks for the advise!, I'll try fnlogin then.

Did this solve your issue, so we can close this bug report now?

Greetings
Roland

> > > Package:rancid
> > > Version:2.3.8-6
> >
> > > Clogin fails to connect to our fortigate devices (300D & 600D) using
> > > read-only users, no issue using admin ones (except having to force an
> > > specific cypher for newer fortigate firmware):
> >
> > Please try using fnlogin for Fortigate devices instead of clogin.
> > This should work around your problems, since it is optimized for
> > Fortigate.
> >
> > > root@rancid[PRO]:~# diff /usr/bin/clogin{,_bk}
> > >
> > > 788c788
> > >
> > > <     set prompt "(\\$|>|#| \\(enable\\))"
> > >
> > > ---
> > >
> > > >     set prompt "(>|#| \\(enable\\))"
> >
> > That's why you should use fnlogin:
> >
> >     # FortiOS 2.x prompts can end in either '#' or '$'
> >     set prompt "\[#\\$] "

Reply via email to