I have configured a few devices as down and they are working fine in my environment.<br><br>rancid@jp-script/home/rancid#cat data/man/router.db | grep down<br>nagr2n-01:cisco:down<br><br>routers.down file also shows the down device.<br>
<br>rancid@jp-script/home/rancid#less data/man/routers.down <br>nagr2n-01:cisco:down<br><br>-Asad<br><div class="gmail_quote">On Fri, Sep 24, 2010 at 7:09 PM, Chris Knight <span dir="ltr"><<a href="mailto:boheme@gmail.com">boheme@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Fri, Sep 24, 2010 at 4:06 PM, <<a href="mailto:axhasan@gmail.com">axhasan@gmail.com</a>> wrote:<br>
</div><div class="im">> If these devices are being decommissioned then you can delete the line from router.db.<br>
><br>
> Is it possible these devices are listed in another group's router.db file?<br>
<br>
</div><div class="im">I only have one router.db, and I tried commenting them out, and that<br>
didn't work.<br>
<br>
Thinking that perhaps the code was just checking timestamps on the<br>
files in the configs directory, I even deleted the local copies of the<br>
configs, and I am still getting the alerts.<br>
<br>
So, I have tried:<br>
<br>
1) Commenting out the entries in router.db<br>
2) Deleting the local copies of the configs.<br>
3) Marking the entries as 'down' in router.db<br>
<br>
I appreciate everyone's suggestions. I am feeling better that despite<br>
my lack of sleep last night this is turning out to not be as simple as<br>
it sounds. :)<br>
<br>
-Chris<br>
<br>
<br>
><br>
</div><div><div></div><div class="h5">> -Asad<br>
> Sent from my Verizon Wireless BlackBerry<br>
><br>
> -----Original Message-----<br>
> From: Chris Knight <<a href="mailto:boheme@gmail.com">boheme@gmail.com</a>><br>
> Sender: <a href="mailto:rancid-discuss-bounces@shrubbery.net">rancid-discuss-bounces@shrubbery.net</a><br>
> Date: Fri, 24 Sep 2010 15:44:25<br>
> To: Roy<<a href="mailto:r.engehausen@gmail.com">r.engehausen@gmail.com</a>>; rancid-discuss<<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>><br>
> Subject: Re: [rancid] How do I make Rancid forget about a switch?<br>
><br>
> On Fri, Sep 24, 2010 at 3:36 PM, Roy <<a href="mailto:r.engehausen@gmail.com">r.engehausen@gmail.com</a>> wrote:<br>
>><br>
>><br>
>> Just remove them from router.db<br>
>><br>
><br>
> Despite my all-nighter, the first thing I tried was commenting them out. :)<br>
><br>
> That didn't work, and is why I wrote to the list. I mentioned that in<br>
> the third sentence of my original post.<br>
><br>
> -Chris<br>
><br>
><br>
>> On 9/24/2010 3:19 PM, Chris Knight wrote:<br>
>>><br>
>>> I have marked those devices as down, and yet I just received this email:<br>
>>><br>
>>> The following routers have not been successfully contacted for<br>
>>> more than 1 hours.<br>
>>> -rw-rw-r-- 1 proxyit rancid 16129 Sep 24 01:46 mc-sw-26<br>
>>> -rw-rw-r-- 1 proxyit rancid 17963 Sep 24 01:46 mc-sw-27<br>
>>> -rw-rw-r-- 1 proxyit rancid 30866 Sep 24 01:46 mc-asa-254<br>
>>><br>
>>><br>
>>> Looks like marking them as down didn't do the trick.<br>
>>><br>
>>> -Chris<br>
>>><br>
>>><br>
>>> On Fri, Sep 24, 2010 at 8:36 AM, Chris Gauthier<<a href="mailto:cgauthier@mapscu.com">cgauthier@mapscu.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> According to the router.db man page<br>
>>>> (<a href="http://www.shrubbery.net/rancid/man/router.db.5.html" target="_blank">http://www.shrubbery.net/rancid/man/router.db.5.html</a>):<br>
>>>><br>
>>>> <state><br>
>>>> The state is either "up", or some other arbitrary value, e.g. "down". If<br>
>>>> the device is not marked "up" the device's configuration will not be<br>
>>>> collected. It is highly recommended that comments are made for any router<br>
>>>> not listed as up, so as to indicate the reason a router is not to be polled,<br>
>>>> e.g.:<br>
>>>> dial1.paris:cisco:up:<br>
>>>> core1.paris:cisco:down:in testing until 5/5/2001.<br>
>>>> core2.paris:cisco:ticketed:Ticket 6054234, 5/3/2001<br>
>>>> border1.paris:juniper:up:<br>
>>>><br>
>>>> The script "downreport" in util/ can be used to produce a report of<br>
>>>> routers in router.db that are not marked "up".<br>
>>>><br>
>>>> Chris G.<br>
>>>><br>
>>>><br>
>>>> -----Original Message-----<br>
>>>> From: <a href="mailto:rancid-discuss-bounces@shrubbery.net">rancid-discuss-bounces@shrubbery.net</a><br>
>>>> [mailto:<a href="mailto:rancid-discuss-bounces@shrubbery.net">rancid-discuss-bounces@shrubbery.net</a>] On Behalf Of Chris Knight<br>
>>>> Sent: Friday, September 24, 2010 8:29 AM<br>
>>>> To: rancid-discuss<br>
>>>> Subject: [rancid] How do I make Rancid forget about a switch?<br>
>>>><br>
>>>> Yesterday I pulled two switches and an ASA from my network. As expected,<br>
>>>> at a certain point I started getting notifications that Rancid was unable to<br>
>>>> pull the configs after X hours. So, I commented out the switches and asa<br>
>>>> from routers.db, but I am still getting alerts. Yes, I know I could google<br>
>>>> it, but I've been up for 36 hours and I'm hoping someone will show some<br>
>>>> compassion and tell me the quick fix. :)<br>
>>>><br>
>>>> -Chris<br>
>>>>_______________________________________________<br>
>>><br>
>><br>
>><br>
> _______________________________________________<br>
> Rancid-discuss mailing list<br>
> <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
> <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
><br>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
</div></div></blockquote></div><br>