0% found this document useful (0 votes)
123 views

Config Management Rancid

RANCID is a configuration management tool that automatically retrieves configurations from network equipment, archives them in a version control system, and alerts administrators of any changes via email. It keeps track of configuration, hardware, and software changes on devices like routers, switches, firewalls, and more. Administrators can use RANCID to back up configurations, audit changes, determine who made configuration edits, and recover from errors.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
123 views

Config Management Rancid

RANCID is a configuration management tool that automatically retrieves configurations from network equipment, archives them in a version control system, and alerts administrators of any changes via email. It keeps track of configuration, hardware, and software changes on devices like routers, switches, firewalls, and more. Administrators can use RANCID to back up configurations, audit changes, determine who made configuration edits, and recover from errors.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Network Management &

Monitoring

Configuration Management RANCID

These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license
(http://creativecommons.org/licenses/by-nc/3.0/):w
What is RANCID?

The ”Really Awesome New Cisco config Differ”


– Really!

A configuration management tool:


•  Keeps track of changes in the configs of your
network equipment (Cisco, HP, Juniper, Foundry,
etc.)
•  Works on routers and switches
What is RANCID
RANCID??

Automates retrieval of the configurations and


archives them
Functions as:
•  Backup tool - ”woops, my router burned”
•  Audit tool - ”how did this error get in?”
•  Blame allocation :) - ”who did it?”
The data is stored in a VCS (Version Control
System) – supported are:
•  CVS (Concurrent Versions Systems)
•  SVN (SubVersioN)
What is Version Control?

Three basic principles:


1.  Keep a record and history of changes
2.  Give public access to the information
3.  To maintain different versions from the same
data set
What types of data?
•  Source code
•  Documentation
•  Configuration files
•  Generally, any type of data…
How does it
RANCID
work ? work?

Run (manually or automated)


Lookup list of groups
For each device in each list of groups
•  Connect to the equipment (telnet, ssh, …)
•  Run ”show” commands – config, inventory, ...
•  Collect, filter/format data
•  Retrieve the resulting config files
•  CVS check-in the changes
•  Generate a diff from the previous version
•  E-mail the diff to a mail address (individual or group)
What to use it for
for?

•  Track changes in the equipment configuration


•  Track changes in the hardware (S/N, modules)
•  Track version changes in the OS (IOS, CatOS
versions)
•  Find out what your colleagues have done
without telling you!
•  Recover from accidental configuration errors
(anyone have stories?)
Post processing

•  Run traditional filtering commands on your


configs (grep, sed, for information)
•  Re-use the automated login tools to build your
own batch tools or do interactive login
•  On large configurations, you can parallelize
operations
Other applications

•  Automated checks (verify configs for strange/


inconsistent setup)
•  Generate DNS file from equipment list
•  Use IP address adjacency to produce a graph of
your network
References

•  RANCID Project Home Page


http://www.shrubbery.net/rancid/
•  Subversion (SVN) Home Page
http://subversion.apache.org/
•  Good, Short RANCID Presentation
http://www.shrubbery.net/rancid/NANOG29/
•  RANCID HowTo’s
1.  http://www.linuxhomenetworking.com/wiki/index.php/
Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid
2.  http://gentoo-wiki.com/HOWTO_Rancid
3.  http://homepage.mac.com/duling/halfdozen/RANCID-
Howto.html

You might also like