[rancid] Extra Characters after logging in Arista switches

heasley heas at shrubbery.net
Sat May 2 15:28:59 UTC 2015


Fri, May 01, 2015 at 05:13:32PM -0400, Jon Lewis:
> IIRC, it's an interaction of the Arista, clogin, and your TERM type.  Set 
> your TERM env variable to something "plain" like vt100, and it should 
> stop doing that.

it probably is caused by the terminal setting.  you can try hlogin with
the arista, or if collections work, set it to the TERM setting from
rancid.conf.


> On Fri, 1 May 2015, Matt Almgren wrote:
> 
> > Hi, Im seeing some extra characters appear on the lines after logging in to Arista switches.
> >
> > Heres an example:
> >
> > rancid at SITE-tools01:~$ bin/clogin SITE-sw16
> > SITE-sw16
> > spawn ssh -c 3des -x -l userremoved SITE-sw16
> > Password:
> > Last login: Fri May  1 19:37:19 2015 from 10.1.1.1
> > ^[[0nSITE-sw16#
> > SITE-sw16#n
> > % Incomplete command
> > SITE-sw16#
> >
> > Yes, the n and control characters above are sic.
> >
> >
> > And heres the config in .cloginrc if that helps:
> >
> >
> > ## Arista
> > add method {SITE-sw[16|17|18]*} ssh
> > add passprompt {SITE-sw[16|17|18]*} {"\[Pp]assword:"}
> > add user {SITE-sw[16|17|18]*} {userremoved}
> > add password {SITE-sw[16|17|18]*} {removed}
> > add noenable {SITE-sw[16|17|18]*} 1
> > #
> >
> >
> > The SITE, IP, username and password have been changed to protect the innocent.
> >
> >
> > Logging in manually with same username and password doesnt do this:
> >
> > rancid at SITE-tools01:~$ ssh userremoved at SITE-sw16
> > Password:
> > Last login: Fri May  1 19:40:44 2015 from 10.1.1.1
> > SITE-sw16#
> > SITE-sw16#
> > SITE-sw16#
> >
> > We use TAC+ for ALL authentication if that adds any help figuring out this problem.
> >
> > Thanks, Matt
> >
> >
> 
> ----------------------------------------------------------------------
>   Jon Lewis, MCP :)           |  I route
>                               |  therefore you are
> _________ http://www.lewis.org/~jlewis/pgp for PGP public key_________
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss


More information about the Rancid-discuss mailing list