Files: rancid-exercise-2.txt

File rancid-exercise-2.txt, 1.6 KB (added by hervey, 9 years ago)

Second set of RANCID exercises in TEXT

Line 
1More Rancid:
2
3(do this as the rancid user: su -s /bin/bash rancid)
4
51. Note the IP addresses for all the routers
6
7        169.223.142.11 - 169.223.142.18
8
92. Update /var/lib/rancid/.cloginrc
10
11        Change the file to look like this:
12
13        > vi /var/lib/rancid/.cloginrc
14
15        add user 169.223.142.* admin
16        add password 169.223.142.* apr10cot apr10cot
17
18        (This tells RANCID that all hosts called "169.223.142.*" use the
19        same password and user -- no need to add every router by hand!)
20
213. Update the router.db
22
23        > vi /var/lib/rancid/all/router.db
24
25        Add all the routers above:
26
27        169.223.142.11:cisco:up
28        169.223.142.12:cisco:up
29        169.223.142.13:cisco:up
30        169.223.142.14:cisco:up
31        169.223.142.15:cisco:up
32        169.223.142.16:cisco:up
33        169.223.142.17:cisco:up
34        169.223.142.18:cisco:up
35
36        (Note that "cisco" means this is Cisco equipment -- it tells Rancid
37        that we are expecting to talk to a Cisco device here.  You can also
38        talk to Juniper, HP, ...)
39
404. Run rancid again:
41
42        > /usr/lib/rancid/bin/rancid-run
43
44        (Should take a few seconds)
45
4611. Check out the logs:
47
48        > cd /var/lib/rancid/logs
49        > ls -l
50
51        ... View the contents of the file:
52
53        > more all.*
54
5512. Look at the configs
56
57        > cd /var/lib/rancid/all/configs
58        > more 169.223.142.X
59
60        - If all went well, you can see the configs of ALL routers
61
6213. Change the configuration on the router (change the description on
63    an interface, for example)
64
6514. Run rancid again
66
67        > /usr/lib/rancid/bin/rancid-run
68
6915. Play with clogin:
70
71
72        >  /usr/lib/rancid/bin/clogin -c "show clock" 169.223.142.11 169.223.142.12 169.223.142.13 ...
73
74        (add as many routers as you want on the line -- don't type "..." !)
75
76- What do you notice ?
77