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