[rancid] Extra Characters after logging in Arista switches

Jon Lewis jlewis at lewis.org
Fri May 1 21:13:32 UTC 2015


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.

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_________


More information about the Rancid-discuss mailing list