Discussion:
[rancid] Set different collection scheduler by groups
JinZhou
2008-11-27 02:01:13 UTC
Permalink
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 ***@YYY.comBut 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 ÖÐÎÄÍø£¬×îÐÂʱÉÐÉú»î×ÊѶ£¬°×ÁìŸÛŒ¯ÃÅ»§¡£
http://cn.msn.com
Lance Vermilion
2008-11-27 02:31:12 UTC
Permalink
You have that correct. Have you tried to do it like this yet?
Post by JinZhou
Hi,
I am using Rancid to maintain Cisco routers and switches configuration.
Currently, I collect information from HQ and branch hourly. By using
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
http://www.shrubbery.net/mai
Lance Vermilion
2008-11-27 18:40:28 UTC
Permalink
Each group will have its own log directory. The same should be for
each device configuration and router.db

What is your directory structure?
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
Subject: [rancid] Re: Set different collection scheduler by groups
You have that correct. Have you tried to do it like this yet?
Post by JinZhou
Hi,
I am using Rancid to maintain Cisco routers and switches configuration.
Currently, I collect information from HQ and branch hourly. By using
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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
________________________________
ʹ����һ�� Windows Live Messenger ���ɽ����͹��
Loading...