Difference between revisions of "Rancid"

From HackerNet
Jump to: navigation, search
m
Line 26: Line 26:
 
Lagra i CVS repo. Går även att köra med subversion.
 
Lagra i CVS repo. Går även att köra med subversion.
 
  su – rancid  
 
  su – rancid  
  /opt/rancid/bin/rancid-cvs
+
  /var/lib/rancid/bin/rancid-cvs
  
 
==Schemaläggning==
 
==Schemaläggning==

Revision as of 21:58, 17 June 2015

Really Awesome New Cisco confIg Differ är ett verktyg för versionshantering av konfigurationsfiler på nätverksutrustning. Programvaran är skapad av Shrubbery Networks.

Rancid kan användas för följande:

  • Backing and storing configuration files
  • Configuration comparison
  • Configuration version archival

Rancid kan hjälpa till i arbetet med följande frågor:

  • How do you know when a change occurs?
  • What do you do when a change occurs?
  • Can you correlate network events with changes?
  • Do you enforce a baseline or set configuration standard?

Installation

sudo apt-get install rancid
sudo nano /etc/rancid/rancid.conf
# list of rancid groups
LIST_OF_GROUPS="routers switches"

Filer

/var/lib/rancid/ # Most files
/etc/rancid/ # Config file
/var/rancid/[gruppnamn]/router.db # Add devices

CVS

Lagra i CVS repo. Går även att köra med subversion.

su – rancid 
/var/lib/rancid/bin/rancid-cvs

Schemaläggning

su - rancid
crontab -e
0 * * * * /opt/rancid/bin/rancid-run
0 1 * * * find /opt/rancid/var/logs -type f -mtime +30 -exec rm {} \; # Slang gamla loggar

CVSWeb

sudo apt-get install cvsweb
sudo cp /etc/cvsweb/cvsweb.conf /etc/cvsweb/cvsweb.conf.ORIGINAL
sudo nano /etc/cvsweb/cvsweb.conf
@CVSrepositories = (
'Rancid'  => ['Rancid Repository', '/usr/local/rancid/var/CVS'],
);
ln -s /usr/share/cvsweb /var/www/cvsweb

You need to restart your server, before you can see the repository. Access CVSweb

http://server_url/cgi-bin/cvsweb


Mailnotifiering

Dokumentation

http://www.routereflector.com/2013/09/configuration-versioning-using-rancid/
https://networklore.com/rancid-getting-started/
http://www.itnotes.eu/?p=365
http://www.richardyau.com/?p=11

Category:Guider