Discussion:
[rancid] Rancid Reports Changes in router.db when no changes have been made
Shane Kavanagh
2009-10-05 10:17:53 UTC
Permalink
All

I am having an issued with rancid reporting changes in the routers.db file
when no changes have been made. This is a random thing, rancid could run
for days without reporting an issue then could report the same issue server
time a day. Here is an example

-----Original Message-----
From: Racnd [mailto:***@gbedub-rancid01.GBE.local]
Sent: 02 October 2009 17:00
To: rancid-admin-***@gbedub-rancid01.GBE.local
Subject: changes in IFSC routers


Routers changed to up:
intbt01-switch:cisco
intcolt01-switch:cisco

Added routers:
intbt01-switch:cisco
intcolt01-switch:cisco

Deleted routers:
intbt01-switch:cisco
intcolt01-switch:cisco


Any help, Ideas or Suggestions are welcome

Regards

Shane Kavanagh
Iñaki Martinez Diez
2009-10-05 13:59:51 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
&nbsp;I have the same problem an dif you see log file you will see some like
this:<br>
<br>
<tt>cvs add: `<span style="font-family: courier new,monospace;">intbt01-switch</span>'
already exists, with version number x.x<br>
Added&nbsp; <span style="font-family: courier new,monospace;">intbt01-switch</span><br>
</tt><br>
&nbsp;An old email in this list said to add a fake line at the bottom of
router.db like this:<br>
<br>
<tt>&nbsp;fake-router:cisco:down<br>
</tt><br>
and then run rancid-run, but my problem still there.<br>
<br>
<br>
Shane Kavanagh escribi&oacute;:
<blockquote
cite="mid:***@mail.gmail.com"
type="cite">I am having an issued with rancid reporting changes in the
routers.db file when no changes have been made.&nbsp; This is a random
thing, rancid could run for days without reporting an issue then could
report the same issue server time a day.&nbsp; Here is an example<br>
<br>
<span style="font-family: courier new,monospace;">-----Original
Message-----</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">From: Racnd [mailto:<a
moz-do-not-send="true" href="mailto:***@gbedub-rancid01.GBE.local">***@gbedub-rancid01.GBE.local</a>]
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Sent: 02 October
2009 17:00</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">To:
<a class="moz-txt-link-abbreviated" href="mailto:rancid-admin-***@gbedub-rancid01.GBE.local">rancid-admin-***@gbedub-rancid01.GBE.local</a></span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Subject: changes in
IFSC routers</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Routers changed to
up:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
intbt01-switch:cisco</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
intcolt01-switch:cisco</span><br
style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Added routers:</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
intbt01-switch:cisco</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
intcolt01-switch:cisco</span><br
style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Deleted routers:</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
intbt01-switch:cisco</span><br
style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
intcolt01-switch:cisco</span><br>
<br>
<br>
</blockquote>
<br>
</body>
</html>
john heasley
2009-10-05 17:27:10 UTC
Permalink
Post by Shane Kavanagh
All
I am having an issued with rancid reporting changes in the routers.db file
when no changes have been made. This is a random thing, rancid could run
for days without reporting an issue then could report the same issue server
time a day. Here is an example
random is weird; if it were consistent I'd suggest either permissions problem
or rancid's configure picked-up the wrong diff options (see DIFF_CMD in
rancid.conf).
Post by Shane Kavanagh
-----Original Message-----
Sent: 02 October 2009 17:00
Subject: changes in IFSC routers
intbt01-switch:cisco
intcolt01-switch:cisco
intbt01-switch:cisco
intcolt01-switch:cisco
intbt01-switch:cisco
intcolt01-switch:cisco
Any help, Ideas or Suggestions are welcome
Regards
Shane Kavanagh
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Iñaki Martinez Diez
2009-10-06 06:38:25 UTC
Permalink
Hi,

In my case it is everyday, so it is not random.

In the rancid.conf i have no DIFF_CMD option, my installation is a
Debian 5.0.3.

But this problem only occurs in 2 groups and i have 10 groups, so i
think the problem is in the CVS.

The permissions are the same in all groups so i think this is not the
problem.
Post by john heasley
random is weird; if it were consistent I'd suggest either permissions problem
or rancid's configure picked-up the wrong diff options (see DIFF_CMD in
rancid.conf).
john heasley
2009-10-06 07:49:06 UTC
Permalink
Post by Iñaki Martinez Diez
Hi,
In my case it is everyday, so it is not random.
In the rancid.conf i have no DIFF_CMD option, my installation is a
Debian 5.0.3.
But this problem only occurs in 2 groups and i have 10 groups, so i
think the problem is in the CVS.
The permissions are the same in all groups so i think this is not the
problem.
random is not something that i'd expect. its weird, youre in unchartered
territory. you'll have to explore youreself or hire a unix wiz.
Post by Iñaki Martinez Diez
Post by john heasley
random is weird; if it were consistent I'd suggest either permissions problem
or rancid's configure picked-up the wrong diff options (see DIFF_CMD in
rancid.conf).
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Shane Kavanagh
2009-10-06 09:08:37 UTC
Permalink
All

I added the fake router to the end of the config and this did not solve the
problem, I cut and paste the offending devices to the end of the config and
this did not work either, I deleted the offending devices from the config
and ran rancid again, got an alert for deleted routers, then added them in
from scratch and I got 1 alert to inform me of new routers and I have not
had any issues since then.

if anyone else if having this issue they may try the above. I think it may
have been an issue with and CR at the end of each line might not have been a
CR but a Manual line break instead.

Regards

SK
Post by john heasley
Post by Iñaki Martinez Diez
Hi,
In my case it is everyday, so it is not random.
In the rancid.conf i have no DIFF_CMD option, my installation is a
Debian 5.0.3.
But this problem only occurs in 2 groups and i have 10 groups, so i
think the problem is in the CVS.
The permissions are the same in all groups so i think this is not the
problem.
random is not something that i'd expect. its weird, youre in unchartered
territory. you'll have to explore youreself or hire a unix wiz.
Post by Iñaki Martinez Diez
Post by john heasley
random is weird; if it were consistent I'd suggest either permissions
problem
Post by Iñaki Martinez Diez
Post by john heasley
or rancid's configure picked-up the wrong diff options (see DIFF_CMD in
rancid.conf).
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-10-06 16:17:18 UTC
Permalink
Post by Shane Kavanagh
All
I added the fake router to the end of the config and this did not solve the
problem, I cut and paste the offending devices to the end of the config and
this did not work either, I deleted the offending devices from the config
and ran rancid again, got an alert for deleted routers, then added them in
from scratch and I got 1 alert to inform me of new routers and I have not
had any issues since then.
if anyone else if having this issue they may try the above. I think it may
have been an issue with and CR at the end of each line might not have been a
CR but a Manual line break instead.
What is a 'manual line break'? Do you mean that you used a Windows box to
create router.db, so it had a CR?
Post by Shane Kavanagh
Regards
SK
Post by john heasley
Post by Iñaki Martinez Diez
Hi,
In my case it is everyday, so it is not random.
In the rancid.conf i have no DIFF_CMD option, my installation is a
Debian 5.0.3.
But this problem only occurs in 2 groups and i have 10 groups, so i
think the problem is in the CVS.
The permissions are the same in all groups so i think this is not the
problem.
random is not something that i'd expect. its weird, youre in unchartered
territory. you'll have to explore youreself or hire a unix wiz.
Post by Iñaki Martinez Diez
Post by john heasley
random is weird; if it were consistent I'd suggest either permissions
problem
Post by Iñaki Martinez Diez
Post by john heasley
or rancid's configure picked-up the wrong diff options (see DIFF_CMD in
rancid.conf).
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...