Mailing List Archive

Support for clusters
I recently got rancid set up and running, and after a few hurdles it
seems to generally be working fine.
Issues I'm experiencing/have experienced/lessons learned/things I've noticed:
**clogin is great for adding commands to every switch. Our network
has the switches set up between 10.0.0.1 and 10.0.0.80, so a script
with a simple loop (10.0.0.i for 1 to 80) and reference to a command
list textfile makes it easy to apply commands globally, such as
changing from uptime to datetime for logging, or for issuing a show
interface and then writing the results to a file that can then be
examined (for a port description, to check if a VLAN is in use, or
other uses)

**we are logging messages locally, so the flash directory was always
changing... so I changed rancid to skip the flash directory (by
uncommenting the code to return(1) if $type matched the things it was
supposed to skip and put in 35 so it would skip the 3500s and 3550s
that it was having problems with

**one thing I noticed while running a show interface on all of the
switches was that there was no way to do anything with cluster members
-- sending an "rcommand 1" does not wait for the new prompt to come
up, does anyone know of a way to use clogin while addressing cluster
members, or indeed to add support for rancid's hourly run? my initial
thought on this would be to add another piece of information to the
router.db signifying how many cluster members there are and then
running through the rancid script once for each one

Overall, Rancid has shown itself to be very nice, and being able to
send commands to all the switches automatically is a big bonus!

Chris Stave
Computing and Network Services
Drew University
Support for clusters [ In reply to ]
Fri, Dec 17, 2004 at 05:23:24PM -0500, Chris Stave:
> **one thing I noticed while running a show interface on all of the
> switches was that there was no way to do anything with cluster members
> -- sending an "rcommand 1" does not wait for the new prompt to come
> up, does anyone know of a way to use clogin while addressing cluster
> members, or indeed to add support for rancid's hourly run? my initial
> thought on this would be to add another piece of information to the
> router.db signifying how many cluster members there are and then
> running through the rancid script once for each one

i am not familiar with clusters. if you wanted that stuff in the
rancid collection, support would have to be added to both rancid an
clogin. i'd lean toward clogin and just adding a second (third, etc)
router.db entry for cluster members....but, i dont what the interface
looks like. you'd have to provide examples.
Support for clusters [ In reply to ]
>>Overall, Rancid has shown itself to be very nice, and being able to
>>send commands to all the switches automatically is a big bonus!

Glad you like it. I'm not part of the dev team but it's great to hear
others finding use out of it :)

In regards to clusters (I assume the Catalyst kind), this is something I have considered looking
into but it was never high on my priority list. I'll give it a shot
and let you know what I come up with

I have a subversion patch floating around that lets
Rancid use Subversion as a backend instead of CVS, which is useful if you want to
have multiple rancid agents at different sites that commit to a
centralized repository, want to move/rename a switch and preserve its
history, etc.


_______________
Justin Grote