<div dir="ltr"><div>Hello,<br><br></div>Tried different options, but I'm still stuck at this point. Can anyone help me solve this last problem?<br>My new .cloginrc and output are bellow.<br><br>.cloginrc:<br>add method site02-redirected ssh telnet<br>add user site02-redirected sadmin<br>add password site02-redirected {boterkoek23}<br><br>add method site02 {usercmd}<br>add user site02 sadmin<br>add password site02 {boterkoek23} {boterkoek23}<br>add usercmd site02 {/usr/lib/rancid/bin/clogin} {-noenable} {site02-redirected}<br>add usercmd_chat site02 {site-rt01>} {ssh -l sadmin 10.0.0.29\r} {boterkoek23} {}<br>#add autoenable {01}<br>#add enableprompt site02 {boterkoek23}<br>#add usercmd_chat kogros02 {site-rt02>} {enable\r} {boterkoek23\r}<br><br>Output of ./clogin site02:<br>ruser@LNX01:/usr/lib/rancid/bin$ ./clogin site02<br>site02<br>spawn /usr/lib/rancid/bin/clogin -noenable site02-redirected<br>site02-redirected<br>spawn ssh -c 3des -x -l sadmin site02-redirected<br>Password:<br>site-rt01>ssh -l sadmin 10.0.0.29<br><br>site-rt01>ssh -l sadmin 10.0.0.29<br>Password:<br>% Password: timeout expired!<br>[Connection to 10.0.0.29 aborted: error status 0]<br>site-rt01>exit<br><br>Timeout in usercmd_chat waiting for -re boterkoek23: punting with CR<br><br>site-rt01>boterkoek23<br>Translating "boterkoek23"...domain server (255.255.255.255)<br><br>% Bad IP address or host name<br>% Unknown command or computer name, or unable to find computer address<br>site-rt01>boterkoek23<br>% Bad IP address or host name<br>% Unknown command or computer name, or unable to find computer address<br>site-rt01>enable<br>Password:<br>site-rt01#<br>site-rt01#exit<br>Connection to site02-redirected closed by remote host.<br>Connection to site02-redirected closed.<br>ruser@LNX01:/usr/lib/rancid/bin$<br><div class="gmail_extra"></div><div class="gmail_extra"><br>---<br></div><div class="gmail_extra">Nathan<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-09 16:40 GMT+02:00 Nathan Burgerhout <span dir="ltr"><<a href="mailto:nathan.burgerhout@gmail.com" target="_blank">nathan.burgerhout@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>See below for the .cloginrc config that I use now.<br></div><div><br></div>.cloginrc:<br><br># Customer_A SSH login<br></div><div># Router 01<br></div><div>add method Customer_A01 ssh telnet<br>add user Customer_A01 {rancid}<br>add password Customer_A01 {&g584g&agdf$VF$%*(#FHGFukt} {&^4g578$V784v78$*}<br><br></div><div># Router 02 behind router 01<br></div><div>add method Customer_A02 {usercmd}<br>add user Customer_A02 {sadmin}<br>add password Customer_A02 {boterkoek23} {boterkoek23}<br>add usercmd Customer_A02 {/usr/lib/rancid/bin/clogin} {Customer_A01} {boterkoek23}<br>add usercmd_chat Customer_A02 {>} {ssh 10.0.0.253} {boterkoek23} {10.0.0.253}<br><br></div># General Login<br><div>add user * {rancid}<br>add password * {&g584g&agdf$VF$%*(#FHGFukt} {&^4g578$V784v78$*}<br>add method * ssh telnet<br><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><b><u>J. Burgerhout</u></b><br>Krimpen aan den IJssel<br>Tel. (06) 83080710<br><div style="text-align:left">Web. <a href="http://www.xentux.com/jonathan" target="_blank">www.xentux.com/jonathan</a><br><br></div><div style="text-align:left"><img src="https://lh6.ggpht.com/_Kh4d3PuebMo/TTdFeM16UJI/AAAAAAAAADA/5mDE9k9kHGw/MS%20logo.png" height="50" width="420"><br></div></div></div><div><div class="h5">
<br><div class="gmail_quote">2014-09-05 20:43 GMT+02:00 Bob B <span dir="ltr"><<a href="mailto:bob@softscape.ca" target="_blank">bob@softscape.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Can you post your sanitized .cloginrc stanza?<br>
<br>
I'll compare it to what I have and see if anything stands out.<br>
<span><font color="#888888"><br>
BB<br>
</font></span><span><br>
<br>
<br>
> -----Original Message-----<br>
> From: Rancid-discuss [mailto:<a href="mailto:rancid-discuss-bounces@shrubbery.net" target="_blank">rancid-discuss-bounces@shrubbery.net</a>] On<br>
> Behalf Of Nathan Burgerhout<br>
</span><div><div>> Sent: Friday, September 05, 2014 2:08 PM<br>
> To: Bob B; <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
> Subject: Re: [rancid] Two Cisco device's on one WAN IP<br>
><br>
> Thank you Bob.<br>
><br>
><br>
> I tried to do this, but it didn't work. It just stops at the point where<br>
> it types the seconds SSH. The problem could be that my Cisco's<br>
> authenticate through a Tacacs+ server. I'm going to try some more. At<br>
> least I'm going in the right direction.<br>
><br>
><br>
> ---<br>
> Nathan<br>
><br>
><br>
> 2014-09-05 19:27 GMT+02:00 Bob B <<a href="mailto:bob@softscape.ca" target="_blank">bob@softscape.ca</a>>:<br>
><br>
><br>
> Nathan,<br>
><br>
> If it's any help, this is how we do it. We have many devices fitting<br>
> this exact scenario and it seems to work reasonably well.<br>
><br>
> The configuration is a bit more involved in the .cloginrc file, but<br>
> not overly complicated.<br>
><br>
> Bob.<br>
><br>
><br>
><br>
><br>
> > -----Original Message-----<br>
> > From: Rancid-discuss [mailto:<a href="mailto:rancid-discuss-bounces@shrubbery.net" target="_blank">rancid-discuss-bounces@shrubbery.net</a>]<br>
> On<br>
> > Behalf Of Nathan Burgerhout<br>
> > Sent: Friday, September 05, 2014 8:40 AM<br>
> > To: <a href="mailto:rancid-discuss@shrubbery.net" target="_blank">rancid-discuss@shrubbery.net</a><br>
> > Subject: [rancid] Two Cisco device's on one WAN IP<br>
> ><br>
> > Hello everyone,<br>
> ><br>
> ><br>
> > I hope that I'm in the right place to ask this.<br>
> ><br>
> > Recently I installed Rancid so that I can backup the Cisco devices<br>
> from my<br>
> > customers. I have it working for one device. The second device can<br>
> only be<br>
> > accessed by using SSH from the first Cisco to the second Cisco.<br>
> ><br>
> ><br>
> > Rancid Server at work --> Internet --> Cisco A --> Cisco B<br>
> ><br>
> ><br>
> > Is this possible to do? The example in the link below is for a<br>
> network<br>
> > where the Rancid server is local which isn't the case for me, but<br>
> it looks<br>
> > like I could use the usercmd method.<br>
> ><br>
> > <a href="http://www.shrubbery.net/pipermail/rancid-discuss/2008-" target="_blank">http://www.shrubbery.net/pipermail/rancid-discuss/2008-</a><br>
> > September/003274.html<br>
> ><br>
> ><br>
> > Regards,<br>
> ><br>
> > Nathan<br>
><br>
><br>
><br>
><br>
><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>