[rancid] Rancid CVS Issue

Andy Townsend me at andytownsend.co.uk
Wed Mar 7 18:56:51 UTC 2012


I've made very few changes apart from those mentioned in the initial
install guide. Was asked for the following from someone else but it could
be handy to someone else as well.

I've not changed the CVS directory but its set to the following as well.

++ CVSROOT=/usr/local/rancid/var/CVS
++ export CVSROOT

[rancid at router ~]$ sh -x `which rancid-cvs`
+ ENVFILE=/usr/local/rancid/etc/rancid.conf
+ '[' 0 -ge 1 ']'
+ . /usr/local/rancid/etc/rancid.conf
++ TERM=network
++ export TERM
++ LC_COLLATE=POSIX
++ export LC_COLLATE
++ umask 027
++ TMPDIR=/tmp
++ export TMPDIR
++ BASEDIR=/usr/local/rancid/var
++ export BASEDIR
++ PATH=/usr/local/rancid/bin:/usr/bin:.:/bin:/usr/local/bin:/usr/bin
++ export PATH
++ CVSROOT=/usr/local/rancid/var/CVS
++ export CVSROOT
++ LOGDIR=/usr/local/rancid/var/logs
++ export LOGDIR
++ RCSSYS=cvs
++ export RCSSYS
++ FILTER_PWDS=NO
++ export FILTER_PWDS
++ NOCOMMSTR=NO
++ export NOCOMMSTR
++ LIST_OF_GROUPS=networking
++ MAILDOMAIN=@testdomain.com
++ export MAILDOMAIN
+ '[' '!' -d /usr/local/rancid/var ']'
+ cd /usr/local/rancid/var
+ RCSSYS=cvs
+ '[' cvs '!=' cvs -a cvs '!=' svn ']'
+ '[' cvs = cvs ']'
+ '[' '!' -d /usr/local/rancid/var/CVS ']'
+ '[' '!' -d logs ']'
+ '[' 0 -ge 1 ']'
+ '[' networking = '' ']'
++ echo networking
+ for GROUP in '`echo $LIST_OF_GROUPS`'
+ DIR=/usr/local/rancid/var/networking
+ '[' '!' -d /usr/local/rancid/var/networking ']'
+ cd /usr/local/rancid/var/networking
+ '[' '!' -d configs ']'
+ '[' '!' -f routers.all ']'
+ '[' '!' -f routers.down ']'
+ '[' '!' -f routers.up ']'
+ '[' '!' -f router.db ']'

On 7 March 2012 18:48, Eric Girard <egirard at focustsi.com> wrote:

> Andy, not sure how many changes you’ve made to rancid.conf, but the CVS
> directory in my pretty stock install is in /usr/local/rancid/var/ along
> with all of my group directories, not in /usr/local/rancid/****
>
> ** **
>
> *From:* rancid-discuss-bounces at shrubbery.net [mailto:
> rancid-discuss-bounces at shrubbery.net] *On Behalf Of *Andy Townsend
> *Sent:* Wednesday, March 07, 2012 4:07 AM
> *To:* Nicolai Langfeldt
> *Cc:* rancid-discuss at shrubbery.net
> *Subject:* Re: [rancid] Rancid CVS Issue****
>
> ** **
>
> I've already got this in rancid.conf****
>
> ** **
>
> # list of rancid groups****
>
> LIST_OF_GROUPS="networking"****
>
> ** **
>
> And when I run /usr/local/rancid/bin/rancid-cvs I get no output. ****
>
> ** **
>
> [rancid at router ~]$ /usr/local/rancid/bin/rancid-cvs****
>
> [rancid at router ~]$****
>
> ** **
>
> [rancid at router ~]$ echo $BASEDIR****
>
> ** **
>
> [rancid at router ~]$ pwd****
>
> /usr/local/rancid****
>
> [rancid at router ~]$ ls -l****
>
> total 60****
>
> drwxr-xr-x 2 rancid netadm  4096 Mar  6 17:26 bin****
>
> drwxr-xr-x 2 rancid netadm  4096 Mar  7 09:04 etc****
>
> -rw-r--r-- 1 rancid netadm 12738 Mar  6 17:22 README****
>
> drwxr-xr-x 4 rancid netadm  4096 Mar  6 17:13 share****
>
> drwxr-xr-x 3 rancid netadm  4096 Oct 26 21:51 tar****
>
> drwxr-xr-x 5 rancid netadm  4096 Mar  6 17:21 var****
>
> ** **
>
> I believe there should be a CVS directory in there. I did install CVS
> after rancid so I guess that may have caused the issue. Any ideas?****
>
> ** **
>
> Thanks,****
>
> Andy****
>
> ** **
>
> ** **
>
> On 6 March 2012 19:44, Nicolai Langfeldt <Nicolai.Langfeldt at ventelo.no>
> wrote:****
>
> I expect you either forgot to update rancid.conf so that it reads:
>
>  LIST_OF_GROUPS="networking"
>
> Or you already did rancid-cvs?
>
> Nicolai
> ________________________________________
> Fra: rancid-discuss-bounces at shrubbery.net [
> rancid-discuss-bounces at shrubbery.net] p&#229; vegne av Andy Townsend [
> me at andytownsend.co.uk]
> Sendt: 6. mars 2012 18:45
> Til: rancid-discuss at shrubbery.net
> Emne: [rancid] Rancid CVS Issue****
>
>
> Hi,
>
> I've just installed rancid on one of my boxes following the guide here.
>
>
> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid
>
> However, when I run the rancid-cvs command, I get no output.
>
> [rancid at router ~]$ /usr/local/rancid/bin/rancid-cvs
> [rancid at router ~]$
>
> When as per the docs I should be getting this.
>
>
>
>
> [rancid at bigboy ~]$ /usr/local/rancid/bin/rancid-cvs
> No conflicts created by this import
> cvs checkout: Updating networking
> cvs checkout: Updating networking/configs
> cvs add: scheduling file `router.db' for addition
> cvs add: use 'cvs commit' to add this file permanently
> RCS file: /usr/local/rancid//var/CVS/networking/router.db,v
> done
> Checking in router.db;
> /usr/local/rancid//var/CVS/networking/router.db,v   <--   router.db
> initial revision: 1.1
> done
>
>
> CVS is already installed so no issues there,
>
> [rancid at router ~]$ rpm -qa | grep cvs
> cvs-1.11.22-7.el5
>
>
> Just wondering if anyone had come across this or know what the next steps
> were?
>
> Cheers,
> Andy****
>
> ** **
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20120307/013639d1/attachment.html>


More information about the Rancid-discuss mailing list