This document outlines how to build RANCID from Scratch, using the name of switch1 and ip of 192.168.3.10, and rostring of community1
1. Install Ubuntu 16.04
2. sudo apt-get install rancid cvs
3. sudo su
4. nano /etc/rancid/rancid.conf
Append:
LIST_OF_GROUPS="switches"
5. sudo su -c /var/lib/rancid/bin/rancid-cvs -s /bin/bash -l rancid
6. nano /var/lib/rancid/switches/router.db
Append:
switch1;cisco;up
7. Modify /etc/hosts
Append:
192.168.3.10 switch1
8. Create .cloginrc file @ /var/lib/rancid/switches
add method {ssh}
add cypertype {3des}
add user {useracc}
add password {enable-password} {enable-password}
add autoenable
9. Modify permissions on the following files:
/var/lib/rancid# chmod a-r .cloginrc
/var/lib/rancid# chmod u+r .cloginrc
/var/lib/rancid# chown rancid .cloginrc
/var/lib/rancid# chgrp rancid .cloginrc
10. This will run the actual rancid command
sudo su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
11. This will add it to Crontab for nightly:
crontab -e
/0 0 * * * /usr/bin/rancid-run
12. Perform the following if you get weird errors about encryption:
sudo su rancid
cd ~/
mkdir .ssh
cd .ssh
nano config
"KexAlgorithms +diffie-hellman-group1-sha1"
13. Install snmpd
sudo apt-get install snmpd
sudo mv snmpd.conf snmpd.conf.old
sudo nano snmpd.conf
rocommunity community1
1. Install Ubuntu 16.04
2. sudo apt-get install rancid cvs
3. sudo su
4. nano /etc/rancid/rancid.conf
Append:
LIST_OF_GROUPS="switches"
5. sudo su -c /var/lib/rancid/bin/rancid-cvs -s /bin/bash -l rancid
6. nano /var/lib/rancid/switches/router.db
Append:
switch1;cisco;up
7. Modify /etc/hosts
Append:
192.168.3.10 switch1
8. Create .cloginrc file @ /var/lib/rancid/switches
add method
add cypertype
add user
add password
add autoenable
9. Modify permissions on the following files:
/var/lib/rancid# chmod a-r .cloginrc
/var/lib/rancid# chmod u+r .cloginrc
/var/lib/rancid# chown rancid .cloginrc
/var/lib/rancid# chgrp rancid .cloginrc
10. This will run the actual rancid command
sudo su -c /var/lib/rancid/bin/rancid-run -s /bin/bash -l rancid
11. This will add it to Crontab for nightly:
crontab -e
/0 0 * * * /usr/bin/rancid-run
12. Perform the following if you get weird errors about encryption:
sudo su rancid
cd ~/
mkdir .ssh
cd .ssh
nano config
"KexAlgorithms +diffie-hellman-group1-sha1"
13. Install snmpd
sudo apt-get install snmpd
sudo mv snmpd.conf snmpd.conf.old
sudo nano snmpd.conf
rocommunity community1
Comments
Post a Comment