Discussion:
[rancid] Extra Characters after logging in Arista switches
Matt Almgren
2015-05-01 19:54:48 UTC
Permalink
Hi, I’m seeing some extra characters appear on the lines after logging in to Arista switches.

Here’s an example:

***@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 here’s 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 doesn’t do this:

***@SITE-tools01:~$ ssh ***@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
2015-05-01 21:13:32 UTC
Permalink
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.
Hi, Im seeing some extra characters appear on the lines after logging in to Arista switches.
SITE-sw16
spawn ssh -c 3des -x -l userremoved SITE-sw16
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.
## 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.
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_________
heasley
2015-05-02 15:28:59 UTC
Permalink
Post by 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.
Post by Jon Lewis
Hi, Im seeing some extra characters appear on the lines after logging in to Arista switches.
SITE-sw16
spawn ssh -c 3des -x -l userremoved SITE-sw16
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.
## 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.
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
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Loading...