Mailing List Archive

Problem with rancid & rsh
sorry, rsh does not work well at the moment. clogin (et al) need some
rework to handle rsh properly.

Wed, Aug 25, 2004 at 10:18:40AM -0700, Chris Garcia:
> Hi,
> I'm trying to use rancid, with rsh. My .cloginrc
> contains the following:
>
> add method * {rsh}
> add user * privuser
> add password * test test
> add autoenable * 1
>
> When trying to do a clogin, I get
> $ ./clogin 172.15.254.31
> 172.15.254.31
> spawn /usr/bin/rsh -l privuser 172.15.254.31
> ::ffff:172.15.254.31: Connection refused
>
> Error: Connection Refused (rsh)
>
> But, when just running
> $/usr/bin/rsh -l privuser 172.15.254.31 sh ver
> I do get back what I should...
>
> Cisco Internetwork Operating System Software
> IOS (tm) C3750 Software (C3750-I5-M), ...
>
> If I run $/usr/bin/rsh -l lprivuser 172.15.254.31,
> without the sh ver, I get reproduce the Connection
> Refused message.
>
> I get the similar behavior when running do-diffs.
>
> $ more pod-c.20040825.114819
> starting: Wed Aug 25 11:48:19 CDT 2004
>
> cvs status: failed to create lock directory for
> `/opt/rancid/CVS/pod-c/configs'
> (/opt/rancid/CVS/pod-c/
> configs/#cvs.lock): Permission denied
> cvs status: failed to obtain dir lock in repository
> `/opt/rancid/CVS/pod-c/configs'
> cvs [status aborted]: read lock failed - giving up
>
> Trying to get all of the configs.
> 172.15.254.31 clogin error: Error: Connection Refused
> (rsh)
> 172.15.254.31: missed cmd(s): show env all,show
> module,show controllers,show diagbus,show diag,dir
> /all disk1
> :,show gsr chassis,dir /all bootflash:,write term,dir
> /all disk2:,show vtp status,dir /all
> sup-bootflash:,dir
> /all slot2:,dir /all slot0:,dir /all
> sup-microcode:,dir /all disk0:,show install
> active,show bootvar,show vl
> an,show controllers cbus,dir /all nvram:,show
> flash,show version,show variables boot,show c7200,show
> boot,dir
> /all slot1:
> 172.15.254.31: End of run not found
> !
> =====================================
> It's like the commands are never sent to the device.
> I think rsh is being handled the same as telnet/ssh,
> where expect is expecting something back, but it isn't
> getting anything, so it never sends commands to the
> router, and just times out the rsh connection.
> Or am I doing something wrong?
> Any help you can provide would be appreciated.
> Thanks,
> Chris Garcia
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail