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

Getting Rancid

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)
144 views

Getting Rancid

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
You are on page 1/ 16

Getting started with RANCID

1 de 16

https://networklore.com/rancid-getting-started/

04-06-2015 16:44

Getting started with RANCID

2 de 16

https://networklore.com/rancid-getting-started/

sudo rpm -Uvh --replacepkgs http://dl.fedoraproject.org/pub/epel/6/x86_64/epelrelease-6-8.noarch.rpm


sudo yum install rancid cvs

sudo apt-get install rancid

04-06-2015 16:44

Getting started with RANCID

3 de 16

https://networklore.com/rancid-getting-started/

04-06-2015 16:44

Getting started with RANCID

4 de 16

https://networklore.com/rancid-getting-started/

# list of rancid groups


LIST_OF_GROUPS="routers switches access-points"

rancid-routers:

[email protected]

rancid-admin-routers:

[email protected]

rancid-switches:

[email protected]

rancid-admin-switches:

[email protected]

rancid-access-points:

[email protected]

rancid-admin-access-points: [email protected]

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

https://networklore.com/rancid-getting-started/

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

https://networklore.com/rancid-getting-started/

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

https://networklore.com/rancid-getting-started/

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 20:01:11;

author: rancid;

state: Exp;

lines: +5 -4

04-06-2015 16:44

Getting started with RANCID

8 de 16

https://networklore.com/rancid-getting-started/

revision 1.2
date: 2014/04/04 19:01:06;

author: rancid;

state: Exp;

lines: +446 -0

updates
---------------------------revision 1.1
date: 2014/04/04 19:00:09;

author: rancid;

state: Exp;

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

04-06-2015 16:44

Getting started with RANCID

9 de 16

https://networklore.com/rancid-getting-started/

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 commands.txt lon-ap-2

04-06-2015 16:44

Getting started with RANCID

10 de 16

https://networklore.com/rancid-getting-started/

permit udp any any eq bootps


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

clogin -x access-list.txt `cat switches.txt`

Tweet
0

Share
0

Share
1

Share
0

04-06-2015 16:44

Getting started with RANCID

11 de 16

https://networklore.com/rancid-getting-started/

04-06-2015 16:44

Getting started with RANCID

12 de 16

https://networklore.com/rancid-getting-started/

04-06-2015 16:44

Getting started with RANCID

13 de 16

https://networklore.com/rancid-getting-started/

04-06-2015 16:44

Getting started with RANCID

14 de 16

https://networklore.com/rancid-getting-started/

04-06-2015 16:44

Getting started with RANCID

15 de 16

https://networklore.com/rancid-getting-started/

04-06-2015 16:44

Getting started with RANCID

16 de 16

https://networklore.com/rancid-getting-started/

04-06-2015 16:44

You might also like