Discussion:
[rancid] Changing hostnames
Jason Lixfeld
2013-11-06 17:02:14 UTC
Permalink
Hi,

Is there any provision in RANCID to compensate for hostname changes? That is, if router.db is populated with device hostnames, backups and CVS bits are named relative to it's corresponding router.db entry. If a hostname is changed in router.db, CVS will attic the CVS bits for that entry which longer exists. Is there any way for RANCID to tell CVS that a hostname has changed and have CVS update itself accordingly, or is that beyond the design intention and/or scope of CVS?

Thanks.
heasley
2013-11-06 17:07:06 UTC
Permalink
Post by Jason Lixfeld
Hi,
Is there any provision in RANCID to compensate for hostname changes? That is, if router.db is populated with device hostnames, backups and CVS bits are named relative to it's corresponding router.db entry. If a hostname is changed in router.db, CVS will attic the CVS bits for that entry which longer exists. Is there any way for RANCID to tell CVS that a hostname has changed and have CVS update itself accordingly, or is that beyond the design intention and/or scope of CVS?
no. you can rename the CVS stuff manually or svn mv if using svn.
Alan McKinnon
2013-11-06 18:25:22 UTC
Permalink
Post by Jason Lixfeld
Hi,
Is there any provision in RANCID to compensate for hostname changes? That is, if router.db is populated with device hostnames, backups and CVS bits are named relative to it's corresponding router.db entry. If a hostname is changed in router.db, CVS will attic the CVS bits for that entry which longer exists. Is there any way for RANCID to tell CVS that a hostname has changed and have CVS update itself accordingly, or is that beyond the design intention and/or scope of CVS?
Thanks.
The FAQ lists how to do this properly and move the entire history if
using CVS. The doc is in the download tarball.

It's easy enough that you could automate it with a script. Just make
sure you respect the lockfile in /tmp
--
Alan McKinnon
***@gmail.com
Loading...