, ,

1. Install Rancid

# apt-get install rancid

– It will prompt with a warning – Select and press ENTER to continue.
– It will give you another warning about making a backup copy of your rancid data. We have no data, so select and press ENTER to continue.

2. Edit /etc/rancid/rancid.conf

# vi /etc/rancid/rancid.conf

Find this line in rancid.conf:

#LIST_OF_GROUPS=”sl joebobisp”

And, underneath it add the following line:


We want to use Subversion for our Version Control System, and not CVS, so find the line with the parameter RCSSYS:

RCSSYS=cvs; export RCSSYS

And, change it to:

RCSSYS=svn; export RCSSYS

and the line with CVSROOT:


And, change it to:


Note the lowercase “svn”. Now exit and save the file.

3. Change to the rancid user

# su -s /bin/bash rancid

Check that you ARE the rancid user:

$ id

4. Create /var/lib/rancid/.cloginrc

# vi /var/lib/rancid/.cloginrc

Add the following two lines to the file:

add user *.domain.com ssh_username
add password *.domain.com ssh_user_pass enable_pass

$ chmod 600 /var/lib/rancid/.cloginrc

5. Test login to the router of your group

$ /var/lib/rancid/bin/clogin rtrX.domain.com

6. Initialize the SVN repository for rancid:

$ /usr/lib/rancid/bin/rancid-cvs

7. Create the router.db file

$ vi /var/lib/rancid/all/router.db

Add this line:


8. Run rancid!

$ /usr/lib/rancid/bin/rancid-run

9. Check the rancid log files

$ cd /var/lib/rancid/logs
$ ls -l

10. Look at the configs

$ cd /var/lib/rancid/all/configs
$ less rtrX.domain.com