Discussion:
[rancid] Troubles extreme swicthes login with rancid 2.3.1
Felipe
2009-02-11 03:12:36 UTC
Permalink
hi i have a trouble with login Extreme switches summitx450a and BD8810 i have this trouble when i want to clogin it :

***@serverbackup:~/bin$ clogin 10.10.45.2
10.10.45.2
spawn telnet 10.10.45.2
Trying 10.10.45.2...
Connected to 10.10.45.2.
Escape character is '^]'.

telnet session telnet0 on /dev/ptyb0

login: rancid
password:

Login incorrect
login: rancid1234
password:

Login incorrect
login: rancid1234
password:

Login incorrect
Maximum number of login attempts reached!
Connection closed by foreign host.

Error: Connection closed (telnet): 10.10.45.2
***@serverbackup:~/bin$

i test the password and user is correct and login without problem ,but when i login in the server with ***@serverbackup:~/bin$ clogin 10.10.45.2 i can't login and don't make backup of extreme swicthes.

thanks for your help in this case.

Felipe

_________________________________________________________________
See how Windows® connects the people, information, and fun that are part of your life
http://clk.atdmt.com/MRT/go/119463819/direct/01/
Felipe
2009-02-11 03:15:20 UTC
Permalink
From: ***@hotmail.com
To: rancid-***@shrubbery.net
Date: Wed, 11 Feb 2009 03:12:36 +0000
Subject: [rancid] Troubles extreme swicthes login with rancid 2.3.1








hi i have a trouble with login Extreme switches summitx450a and BD8810 i have this trouble when i want to clogin it :

***@serverbackup:~/bin$ clogin 10.10.45.2
10.10.45.2
spawn telnet 10.10.45.2
Trying 10.10.45.2...
Connected to 10.10.45.2.
Escape character is '^]'.

telnet session telnet0 on /dev/ptyb0

login: rancid
password:

Login incorrect
login: rancid1234
password:

Login incorrect
login: rancid1234
password:

Login incorrect
Maximum number of login attempts reached!
Connection closed by foreign host.

Error: Connection closed (telnet): 10.10.45.2
***@serverbackup:~/bin$

i test the password and user is correct and login without problem ,but when i login in the server with ***@serverbackup:~/bin$ clogin 10.10.45.2 i can't login and don't make backup of extreme swicthes.

thanks for your help in this case.

Felipe

See how Windows® connects the people, information, and fun that are part of your life
_________________________________________________________________
See how Windows® connects the people, information, and fun that are part of your life
http://clk.atdmt.com/MRT/go/119463819/direct/01/
Hahues, Sven
2009-02-11 14:03:43 UTC
Permalink
Felipe,

Double check your .cloginrc file and see if the username and password are correct for the host you have specified. I also found it helpful to put the password in { }. I had a $ in my password and that was causing it to fail.

I have an 8810 that I am using with SSH and the ./clogin worked fine once I added "autoenable" to the router.db entry for the host. There is some quirkyness with it doffing the configs, but I think that is mostly extreme's fault, not rancid's.

HTH,

Sven

-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Felipe
Sent: Tuesday, February 10, 2009 10:13 PM
To: rancid-***@shrubbery.net
Subject: [rancid] Troubles extreme swicthes login with rancid 2.3.1

hi i have a trouble with login Extreme switches summitx450a and BD8810 i have this trouble when i want to clogin it :

***@serverbackup:~/bin$ clogin 10.10.45.2
10.10.45.2
spawn telnet 10.10.45.2
Trying 10.10.45.2...
Connected to 10.10.45.2.
Escape character is '^]'.

telnet session telnet0 on /dev/ptyb0

login: rancid
password:

Login incorrect
login: rancid1234
password:

Login incorrect
login: rancid1234
password:

Login incorrect
Maximum number of login attempts reached!
Connection closed by foreign host.

Error: Connection closed (telnet): 10.10.45.2 ***@serverbackup:~/bin$

i test the password and user is correct and login without problem ,but when i login in the server with ***@serverbackup:~/bin$ clogin 10.10.45.2 i can't login and don't make backup of extreme swicthes.

thanks for your help in this case.

Felipe


________________________________

See how Windows(r) connects the people, information, and fun that are part of your life <http://clk.atdmt.com/MRT/go/119463819/direct/01/>
Felipe
2009-02-11 15:50:28 UTC
Permalink
Hi my Friend Sven

my user is rancid and my password is rancid1234 and with this password log without problem this is ok.

and i have the same problem with extreme swicthes the ip of swicthes extreme is 10.10.45.2 ,its my first time that install rancid but this login in cisco ,juniper very well in these devices i don't have problems

i like that you send the correct configuration for its that i new user of rancid .

it is my .cloginrc configuration :

serverbackup:/home/rancid# more .cloginrc
add method 172.1.255.1 ssh
add method 172.1.255.2 ssh
add method 172.1.255.3 ssh
add method 10.10.200.1 ssh
add method 10.10.45.9 telnet
add autoenable 172.1.255.1 1
add autoenable 172.1.255.2 1
add autoenable 172.1.255.3 1
add autoenable 10.10.45.9 1
add noenable 10.10.200.1 0

add password * {rancid1234}
add user * rancid
add method * telnet
add autoenable * 1



# comments are cool, as is whitespace
# clogin supports a number of add directives:
# password
# user
# userprompt
# userpassword
# passprompt
# method
# noenable
# enauser
# enableprompt
# autoenable
# cyphertype
# identity
#
# Details on each of these follows. Also see cloginrc(5).
#
# add password <router name glob> <vty passwd> <enable passwd>
#
# add user <router name glob> <username>
# The default user is $USER (i.e.: the user running clogin).
#
# add userprompt <router name glob> <username prompt>
# What the router prints to prompt for the username.
# Default: {"(Username|login|user name):"}
#
# add userpassword <router name glob> <user password>
# The password for user if different than the password set
# using 'add password'.
#
# add passprompt <router name glob> <password prompt>
# What the router prints to prompt for the password.
# Default: {"(\[Pp]assword|passwd):"}
#
# add method <router name glob> {ssh} [...]
# Defines, in order, which connection method(s) to use for a device
# from the set {ssh,telnet,rsh}. e.g.: add method * {ssh} {telnet} {rsh}
# will attempt ssh connection first. if ssh fails with connection
# refused (i.e.: not due to authentication failure), then try telnet,
# then rsh.
# Default: {telnet} {ssh}
#
# add noenable <router name glob>
# equivalent of -noenable on the cmd line to not enable at login.
#
# add enableprompt <router name glob> <enable prompt>
# What the router prints to prompt for the enable password.
# Default: {"\[Pp]assword:"}
#
# add enauser <router name glob> <username>
# This is only needed if enable asks for a username and this
# username is different from what user is set to.
#
# add autoenable <router name glob> <1/0>
# This is used if you are automatically enabled by the login process.
#
# add cyphertype <router name glob> <ssh encryption type>
# Default is 3des.
#
# add identity <router name glob> <path to ssh identity file>
# Default is your default ssh identity.
#
# include <file>
# include a secondary .cloginrc file
#
#
# Note: The first match for a hostname takes precedence.

#add password sl-bb*-dc cow24
#add password sl-gw*-dc geeks
#add password sl* hank dog
#add password at* pete cow
#add password sdn* mujahid horse
#add password icm* peter
#add password * anything
#
#add user sl-gw*-dc twit
#add user sdn* sdn_auto
#add user sdn-bb* ops_eng
#add user * $env(USER)

add password * {rancid1234}
add user * rancid

# customer x
# these routers ask for a username and password. we automatically get
# enable access after successful authentication.
add user *.custx.net roger
add password *.custx.net {doger}
add autoenable *.custx.net 1

# customer y
# this is the normal cisco login. a password followed by and enable password.
# try ssh first, then rlogin.
add password *.custy.net {vector} {victor}
add method *.custy.net ssh rlogin

# customer z; they use ssh only.
add user *.custz.net shirley
add password *.custz.net {jive} {surely}
add method *.custz.net ssh

# the route-server's do not provide enable access. cmdline -noenable
# equivalent.
add noenable route-server* 1

# all our routers, i.e.: everything else
add password * {clearance} {clarence}

# set ssh encryption type, dflt: 3des
add cyphertype * {3des}

# set the username prompt to "router login:"
#add userprompt * {"router login:"}

# ssh identity for a juniper; used with jlogin
add identity my.juniper $env(HOME)/.ssh/juniper

# riverstone / enterasys / cabletron (rivlogin) example
# these boxes are 'back-to-front' from cisco (i.e., ask
# for vty password always, then tac+/radius if configured).
#
# vty password and last resort (enable) password for rivlogin
add password rs3000 {vtypass} {lastresort}
# if using tac+ or radius login, include these lines
add user rs3000 {monster}
add userpassword rs3000 {scary}

add noenable cisco*
add autoenable *1

serverbackup:/home/rancid#

thank you my friend.

Felipe
Date: Wed, 11 Feb 2009 09:03:43 -0500
Subject: RE: [rancid] Troubles extreme swicthes login with rancid 2.3.1
Felipe,
Double check your .cloginrc file and see if the username and password are correct for the host you have specified. I also found it helpful to put the password in { }. I had a $ in my password and that was causing it to fail.
I have an 8810 that I am using with SSH and the ./clogin worked fine once I added "autoenable" to the router.db entry for the host. There is some quirkyness with it doffing the configs, but I think that is mostly extreme's fault, not rancid's.
HTH,
Sven
-----Original Message-----
Sent: Tuesday, February 10, 2009 10:13 PM
Subject: [rancid] Troubles extreme swicthes login with rancid 2.3.1
10.10.45.2
spawn telnet 10.10.45.2
Trying 10.10.45.2...
Connected to 10.10.45.2.
Escape character is '^]'.
telnet session telnet0 on /dev/ptyb0
login: rancid
Login incorrect
login: rancid1234
Login incorrect
login: rancid1234
Login incorrect
Maximum number of login attempts reached!
Connection closed by foreign host.
thanks for your help in this case.
Felipe
________________________________
See how Windows(r) connects the people, information, and fun that are part of your life <http://clk.atdmt.com/MRT/go/119463819/direct/01/>
_________________________________________________________________
Windows Live Hotmail now works up to 70% faster.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008
john heasley
2009-02-12 19:34:28 UTC
Permalink
Post by Felipe
10.10.45.2
spawn telnet 10.10.45.2
Trying 10.10.45.2...
Connected to 10.10.45.2.
Escape character is '^]'.
telnet session telnet0 on /dev/ptyb0
login: rancid
Login incorrect
login: rancid1234
the question is why did it send rancid1234 in reply to 'login:'. check
that there are no special characters in your cloginrc for the 'user' (ie:
^M for example) or place {}s around the value.

Loading...