[rancid] Re: Renaming a device - keeping the changelog

john heasley heas at shrubbery.net
Tue Jan 12 19:01:30 UTC 2010


Tue, Jan 12, 2010 at 04:31:28PM +0000, Jethro R Binks:
> On Tue, 12 Jan 2010, Steve Ousley wrote:
> 
> > OK, I'm sure i've seen this somewhere, either on the mailing list, or on 
> > the site, but am unable to find it anywhere.
> > 
> > What I have: a device has now moved from one location to another, and 
> > it's A record (which Rancid uses) has changed.  I want to rename the 
> > device in Rancid, but keep the changelogs.  Can anyone point me in the 
> > direction of how to do this please.
> 
> I have this note preserved, but I can't remember if I have actually used 
> this procedure or whether I kept it "just in case":
> 
> cd /usr/local/var/rancid
> echo "new_device_name:device_type:up" >> GROUP/router.db
> cp -p CVS/GROUP/configs/old_device_name,v \
>       CVS/GROUP/configs/new_device_name,v
> cd GROUP
> rm configs/old_device_name
> cvs -d /usr/local/var/rancid/CVS update .

should:
> cp -p CVS/GROUP/configs/old_device_name,v \
>       CVS/GROUP/configs/new_device_name,v
cd group
cvs update
then update the router.db and let rancid do the delete.

> (The above instructions need some further testing; you may also be able to 
> do (cd group; cvs update) too rather than the longer version)
> 
> Then let rancid run and learn the new device (don't forget to modify 
> .clogin too). Once it is complete, remove the old name from router.db and 
> rancid will clean up the data for the earlier name.
> 
> 
> 
> 
> .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
> Jethro R Binks
> Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


More information about the Rancid-discuss mailing list