[rancid] Re: Set different collection scheduler by groups

Lance Vermilion rancid at gheek.net
Thu Nov 27 18:40:28 UTC 2008


Each group will have its own log directory. The same should be for
each device configuration and router.db

What is your directory structure?

On Wed, Nov 26, 2008 at 7:54 PM, JinZhou <jinzhe_927 at hotmail.com> wrote:
> Hi,
>
>
> I tried those two things yesterday.  In terms of HQ and Branch, they have
> been collected data in same time. For example, I tried to collect HQ at
> 9:30, Branch at 9:45. But HQ and Branch's log both appear at 9:30 and 9:45
> in /var/lib/rancid/logs. I was just wondering if you can figure out what's
> going on here. May be about the definition about group?
>
>
>
> For the individual device, it doesn't take shot. Nothing happen. Should I
> see log file like (device name).(group name).20081127.140001?
>
>
> Cheers,
> David
>
>> Date: Wed, 26 Nov 2008 19:31:12 -0700
>> From: rancid at gheek.net
>> To: rancid-discuss at shrubbery.net
>> Subject: [rancid] Re: Set different collection scheduler by groups
>
>>
>> You have that correct. Have you tried to do it like this yet?
>>
>> On Wed, Nov 26, 2008 at 7:01 PM, JinZhou <jinzhe_927 at hotmail.com> wrote:
>> > Hi,
>> >
>> > I am using Rancid to maintain Cisco routers and switches configuration.
>> > Currently, I collect information from HQ and branch hourly. By using
>> > # 0 * * * * rancid /home/rancid/bin/rancid-run -m XXXX at YYY.com
>> > But I want to collect data from HQ hourly and from branch daily. So I
>> > create
>> > two GROUPs to contain HQ and Branch's switches
>> > # LIST_OF_GROUP="HQ BRANCH" (In /etc/rancid/rancid.conf)
>> > Then use
>> > # 0 * * * * rancid /home/rancid/bin/rancid-run -r <HQ>
>> > # 0 23 * * * rancid /home/rancid/bin/rancid-run -r <Branch>
>> >
>> > Is it correct?
>> >
>> >
>> >
>> > The other questing is if I only collect one switch's configuration from
>> > HQ
>> > group, use
>> >
>> > # 0 * * * * rancid /home/rancid/bin/rancid-run -r <HQ>/<Device name >
>> >
>> > Is it correct and what will happen in /var/lib/rancid/logs/?
>> >
>> > Now, I got (group name).20081127.140001.
>> >
>> >
>> >
>> > Thanks for your help.
>> >
>> > Regards,
>> > David
>> >
>> > ________________________________
>> > 八卦娱乐包打听,MSN资讯速递帮你忙! 了解详细!
>> > _______________________________________________
>> > 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
>
>
> ________________________________
> 使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载!


More information about the Rancid-discuss mailing list