﻿More Rancid:

(do this as the rancid user: su -s /bin/bash rancid)

1. Note the IP addresses for all the routers:

	169.223.140.150 (R0)
	169.223.140.151 (R1)
	169.223.140.152 (R2)
	169.223.140.153 (R3)
	169.223.140.154 (R4)
	169.223.140.155 (R5)
	169.223.140.156 (R6)
	169.223.140.157 (R7)

2. Update /var/lib/rancid/.cloginrc

	Change the file to look like this:

	> vi /var/lib/rancid/.cloginrc

	add user 169.223.140.* netmanage
	add password 169.223.140.* apr1cot29 apr1cot29

	(This tells RANCID that all hosts called "169.223.140.*" use the
	same password and user -- no need to add every router by hand!)

3. Update the router.db

	> vi /var/lib/rancid/all/router.db

	Add all the routers above:

	169.223.140.150:cisco:up
	169.223.140.151:cisco:up
	169.223.140.152:cisco:up
	169.223.140.153:cisco:up
	169.223.140.154:cisco:up
	169.223.140.155:cisco:up
	169.223.140.156:cisco:up
	169.223.140.157:cisco:up

4. Run rancid again:

	> /usr/lib/rancid/bin/rancid-run

	(Should take a few seconds)

11. Check out the logs:

	> cd /var/lib/rancid/logs
	> ls -l

	... View the contents of the file:

	> more all.*

12. Look at the configs

	> cd /var/lib/rancid/all/configs
	> more 169.223.140.15X

	- If all went well, you can see the configs of ALL routers

13. Implement as much of the recommendations in the Cisco Configuration Elements

	(ntp, time zone, logging, syslog, ...)

14. Run rancid again

	> /usr/lib/rancid/bin/rancid-run

15. Play with clogin:


	>  /usr/lib/rancid/bin/clogin -c "show clock" 169.223.140.150 169.223.140.151 169.223.140.152 169.223.140.153 ...

	(add as many routers as you want on the line).

- What do you notice ?

