[rancid] How to completely delete a device

heasley heas at shrubbery.net
Tue Nov 3 17:34:38 UTC 2015

Tue, Nov 03, 2015 at 06:32:59PM +0300, Андрей Фомин:
> I'm very new to RANCID, CVS, SVN, etc... I've got a linux-server and a
> rancid-service on it (actually it's a user with a crontab entry) to
> retrieve config-changes from a ~60 Cisco devices.
> Already deleted an ip address from router.db, but CVS-webpage still show
> this device (especially when i hit 'show 5 dead files'). So, what else
> should i do to completely remove this device?
> I tried 'find /usr/local/rancid' -name '$ip-address-of-the-deleted-device'
> and this shows nothing. On the other hand, i run 'grep -nR
> '$ip-address-of-the-deleted-device' /usr/local/rancid/' and receive some
> info that was found mainly in 2 files:
> /usr/local/rancid/var/CVS/CVSROOT/history
> /usr/local/rancid/var/CVS/network/router.db,v

my advice is that if you dont want to see the delete router - they're in a
separate directory, the attic, so dont look.  and do not mess with the SCM
files; youre asking for trouble.

> It's very hard to remove line by line from this files, that are concerning
> my deleted device. Is there any way to completely remove a device?
> There are plenty of topics how to delete a group. I'm not sure what a group
> is - i guess it's a collection of all the devices (in my case - 60 Cisco
> routers and switches). I don't need to delete a whole group - only a device
> within this group.

a group in rancid terms is a member of rancid.conf:LIST_OF_GROUPS

More information about the Rancid-discuss mailing list