Debian Rancid quick howto
apt-get install apache2 expect cvs gcc make libc6-dev perl telnet
adduser --home /home/rancid rancid
cd /usr/src
wget ftp://ftp.shrubbery.net/pub/rancid/rancid-2.3.1.tar.gz
tar xzvf rancid-2.3.1.tar.gz
cd rancid-2.3.1
./configure -prefix=/home/rancid -localstatedir=/home/rancid/var
make install
chown -R rancid:rancid /home/rancid
vi /home/rancid/etc/rancid.conf
add a group for your units like
LIST_OF_GROUPS="hjemme"
vi /home/rancid/.cloginrc
add user * {rancid}
add password * {password_login} {password_enable}
chmod 600 .cloginrc
chown rancid:rancid .cloginrc
su - rancid
rancid@testserver:~/var/hjemme$ /home/rancid/bin/rancid-cvs
(if you add more groups, run the above command again)
cd /home/rancid/var/hjemme
vi router.db and add your switch/routers like...
#hostname:os:status
switchnede:cisco:up
the switchname needs to be resolvable via /etc/hosts or dns
rancid@testserver:~/var/hjemme$ /home/rancid/bin/rancid-run
If it fails check /home/rancid/var/logs for info
exit (exit to root)
apt-get install cvsweb libapache2-mod-perl2
vi /etc/cvsweb/cvsweb.conf
below @CVSrepositories add
'hjemme'=> ['hjemme', '/home/rancid/var/CVS/'],
Add some automatic with crontab and add
1 * * * * rancid /home/rancid/bin/rancid-run