0% found this document useful (0 votes)
252 views16 pages

RANCID Installation and Configuration Guide

This document provides instructions for getting started with RANCID (Really Awesome New Cisco Configuration Differ), which is a tool used to monitor Cisco device configurations. It discusses installing RANCID on Linux, configuring groups and users, adding devices and configurations to version control, and using RANCID commands to view configuration changes and remotely execute commands on devices. The goal of RANCID is to allow network admins to track configuration changes over time through automated diff, backup, and archival of Cisco device configurations.

Uploaded by

michaelsilva
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)
252 views16 pages

RANCID Installation and Configuration Guide

This document provides instructions for getting started with RANCID (Really Awesome New Cisco Configuration Differ), which is a tool used to monitor Cisco device configurations. It discusses installing RANCID on Linux, configuring groups and users, adding devices and configurations to version control, and using RANCID commands to view configuration changes and remotely execute commands on devices. The goal of RANCID is to allow network admins to track configuration changes over time through automated diff, backup, and archival of Cisco device configurations.

Uploaded by

michaelsilva
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

Getting started with RANCID

1 de 16

[Link]

04-06-2015 16:44

Getting started with RANCID

2 de 16

[Link]

sudo rpm -Uvh --replacepkgs [Link]


sudo yum install rancid cvs

sudo apt-get install rancid

04-06-2015 16:44

Getting started with RANCID

3 de 16

[Link]

04-06-2015 16:44

Getting started with RANCID

4 de 16

[Link]

# list of rancid groups


LIST_OF_GROUPS="routers switches access-points"

rancid-routers:

router-admins@[Link]

rancid-admin-routers:

router-admins@[Link]

rancid-switches:

switches-admins@[Link]

rancid-admin-switches:

switches-admins@[Link]

rancid-access-points:

ap-admins@[Link]

rancid-admin-access-points: ap-admins@[Link]

sudo -i -u rancid
/var/lib/rancid/bin/rancid-cvs (on Debian and Ubuntu)
/usr/bin/rancid-cvs (on CentOS)

04-06-2015 16:44

Getting started with RANCID

5 de 16

[Link]

sth-rtr-1:cisco:up
bos-rtr-1:cisco:up
ams-rtr-1:cisco:up
par-rtr-1:cisco:up
lon-rtr-1:cisco:up

sth-dsw-1:cisco:up
sth-asw-1:cisco:up
sth-asw-2:cisco:up
sth-asw-3:cisco:up
bos-asw-1:cisco:up
ams-asw-1:cisco:up
par-asw-1:cisco:up
lon-asw-1:cisco:up

sth-ap-1:cisco:up
sth-ap-2:cisco:up
sth-ap-3:cisco:up
sth-ap-4:cisco:up
sth-ap-5:cisco:up
sth-ap-6:cisco:up
bos-ap-1:cisco:up
bos-ap-2:cisco:up
ams-ap-1:cisco:up
ams-ap-2:cisco:up
par-ap-1:cisco:up
par-ap-2:cisco:up
lon-ap-1:cisco:up
lon-ap-2:cisco:up

04-06-2015 16:44

Getting started with RANCID

6 de 16

[Link]

add user * rancid


add password * s3ctetp@ssw0rd

add user *-asw-* rancid-switch-user


add password *-asw-* $witchpassw0rd

chmod 600 .cloginrc

clogin sth-asw-2

04-06-2015 16:44

Getting started with RANCID

7 de 16

[Link]

crontab -e
0 * * * * * /usr/bin/rancid-run

[rancid@tsrv-rancid-cen configs]$ cvs log sth-asw-2


RCS file: /var/rancid/CVS/switches/configs/sth-asw-2,v
Working file: sth-asw-2
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: o
total revisions: 3;

selected revisions: 3

description:
---------------------------revision 1.3
date: 2014/04/04 [Link];

author: rancid;

state: Exp;

lines: +5 -4

04-06-2015 16:44

Getting started with RANCID

8 de 16

[Link]

revision 1.2
date: 2014/04/04 [Link];

author: rancid;

state: Exp;

lines: +446 -0

updates
---------------------------revision 1.1
date: 2014/04/04 [Link];

author: rancid;

state: Exp;

new router
=============================================================================
[rancid@tsrv-rancid-cen configs]$

04-06-2015 16:44

Getting started with RANCID

9 de 16

[Link]

clogin -c "show processes cpu" bos-rtr-1

rancid@tsrv-rancid-ubu:~/routers/configs$ pwd
/var/lib/rancid/routers/configs
rancid@tsrv-rancid-ubu:~/routers/configs$ clogin -c "show processes cpu" `ls
*rtr*`

clogin -c "show processes cpu;show memory free" ams-rtr-1

clogin -x [Link] lon-ap-2

04-06-2015 16:44

Getting started with RANCID

10 de 16

[Link]

permit udp any any eq bootps


permit udp any any eq domain
permit icmp any any
end
write mem

clogin -x [Link] `cat [Link]`

Tweet
0

Share
0

Share
1

Share
0

04-06-2015 16:44

Getting started with RANCID

11 de 16

[Link]

04-06-2015 16:44

Getting started with RANCID

12 de 16

[Link]

04-06-2015 16:44

Getting started with RANCID

13 de 16

[Link]

04-06-2015 16:44

Getting started with RANCID

14 de 16

[Link]

04-06-2015 16:44

Getting started with RANCID

15 de 16

[Link]

04-06-2015 16:44

Getting started with RANCID

16 de 16

[Link]

04-06-2015 16:44

You might also like