[rancid] cannot login to sf302-08P managed swictch

Per-Olof Olsson peo at chalmers.se
Wed May 15 05:16:46 UTC 2013


On 05/14/2013 06:02 PM, Alex DEKKER wrote:
> On 2013-05-14 09:04, Natxo Asenjo wrote:
> 
>> User Name:
> 
> I'm guessing that clogin is waiting for something it recognises as a username prompt and in the mean time the
> switch closes the connection:
> 
> $ clogin 192.168.253.20
> 192.168.253.20
> spawn ssh -c 3des -x -l admin 192.168.253.20
> 
> 
> 
> User Name:
> Error: Connection closed (ssh): 192.168.253.20
> 
> 

Or just a new prompter for user name

default from clogin
...
   set u_prompt "(Username|Login|login|user name|User):"
...

it will not match

from .cloginrc
...
# add userprompt <router name glob> <username prompt>
#       What the router prints to prompt for the username.
#       Default: {"(Username|login|user name):"}
...

So what about testing
  add userprompt switch {User name:}
in your .cloginrc

>> This is the relevant part of my .cloginrc:
>>
>> add user switch    
> 
> I don't see a username in here ^^^
> 
>> add password switch {paassword}
>> add method switch {telnet}
>>
>> I tried enclosing the user name in {} but that does not help either.
>>
>> Any clues? Does anyone have those devices on their networks?
> 
> Yes, I'd like to do the same with some SG500x.
> 
> alexd
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


/Peo
----------------------------------------------------------
Per-Olof Olsson               Email: peo at chalmers.se
Chalmers tekniska högskola    IT-service
Hörsalsvägen 5                412 96 Göteborg
Tel: 031/772 6738  Fax: 031/772 8660
----------------------------------------------------------


More information about the Rancid-discuss mailing list