[rancid] Re: lrancid / llogin

Ron Whitney ron.whitney at doitbest.com
Mon May 3 20:21:12 UTC 2010


I've tried to use the lrancid scripts as well without luck.  Eventually, I gave up.  Pekka's question prompted me to try again.  Here are my details:

Relevant portion of .clogon:

add method      groucho         {ssh}
add user        groucho         {rwhitney}
add password    groucho         {password}        {password}
add autoenable  groucho         1
add backupfile  groucho         /var/named/p/mydoitbest.com

Added to rancid-fe:

        "linux" => "lrancid llogin",

Finally, router.db:

Groucho:linux:up

When I try to test, it logs on but issues no commands.  Eventually (10 seconds in this case), it times out:

[rancid at harpo ~]$ llogin -t 10 -c"BackupFiles" groucho
groucho
spawn ssh -c 3des -x -l rwhitney groucho
rwhitney at groucho's password:
Last login: Mon May  3 16:07:33 2010 from 12-162-57-170.doitbest.com
groucho 16:14:19 rwhitney >
Error: TIMEOUT reached

I get similar results testing lrancid:

[rancid at harpo ~]$ lrancid -d groucho
executing llogin -t 90 -c"BackupFiles" groucho
groucho llogin error: Error: TIMEOUT reached
groucho llogin error: Error: TIMEOUT reached
groucho: missed cmd(s): BackupFiles
groucho: missed cmd(s): BackupFiles
groucho: End of run not found
groucho: End of run not found
#

Can anyone point me in the right direction?  RANCID is working on several Cisco switches and routers and a couple of Dell switches.  So I know the base functionality is working.  Thanks in advnace.


Ron


> -----Original Message-----
> From: rancid-discuss-bounces at shrubbery.net 
> [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of 
> Diego Ercolani
> Sent: Monday, May 03, 2010 05:48
> To: Pekka Suomi; Rancid Mailing List
> Subject: [rancid] Re: lrancid / llogin
> 
> 
> Hi Pekka,
> please subscribe to rancid-discuss to actively partecipate to rancid 
> community.
> 
> In data lunedì 3 maggio 2010 11:28:44, hai scritto:
> > "Hi diego,
> > 
> > I have installed rancid 2.3.3 on debian (lenny). I wanted 
> to backup a 
> > file "/home/psuomi/data.cvs" (this is an example) from a 
> remote linux 
> > machine. I have found your scripts on rancid discussion forum which 
> > describs the solution of my problem. I have followed your 
> instruction 
> > and scripts but could not backup the above mention file. I 
> could login 
> > to the remote machine and getting the below result.
> > 
> > remlinux:~# export HISTIGNORE="&:cat *:exit*:export 
> *";export LANG=C 
> > remlinux:~# remlinux:~#
> 
> do you mean you can issue: llogin remlinux ?
> So it should work
> Have you configured the .clogin file with something like:
> 
> add method remlinux ssh
> add user remlinux root
> add password remlinux password password
> add autoenable remlinux 1
> add backupfile remlinux /home/psuomi/data.cvs
> 
> (and obviously.... data.cvs must be a FILE not a directory, 
> if you want to 
> expand functionality, you should do)
> 
> 
> > 
> > Am I missing something? I would highly appreciate you reply.
> > 
> > Thanks in advance
> > 
> > regards,
> > 
> > Pekka S
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net 
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> 


More information about the Rancid-discuss mailing list