[rancid] Re: Config making problem

Rozs Norbert crok.bic at gmail.com
Tue Oct 6 16:20:19 UTC 2009


john heasley írta:
> Tue, Oct 06, 2009 at 10:27:15AM +0200, Norbert Rozs:
>   
>> 2009/10/6 john heasley <heas at shrubbery.net>
>>
>>     
>>> Tue, Oct 06, 2009 at 07:16:22AM +0200, Rozs Norbert:
>>>       
>>>> john heasley ?rta:
>>>>         
>>>>> Mon, Oct 05, 2009 at 06:01:41PM +0200, Rozs Norbert:
>>>>>
>>>>>           
>>>>>> Yes, I executed rancid-cvs, it made the directory structure for all
>>>>>> entries of LIST_OF_GROUPS, rancid-run
>>>>>> make all the things for the cvs (the "source of the diff's") but no
>>>>>> configs in the group/config directory.
>>>>>>
>>>>>>             
>>>>> check the group's router.db file.  it'l need at least 1 device that is
>>>>> marked 'up'.  also see router.db(5).
>>>>>
>>>>>           
>>>> The router.db for the group has 12 entries, all in the format
>>>> <name>:cisco:up
>>>> and all the names are in the /etc/hosts. (I wrote before that clogin can
>>>> login and
>>>> can execute commands.)
>>>>         
>>> If rancid-cvs created stuff for the group, and there are devices in the
>>> group, and the group is in LIST_OF_GROUPS, and cron is working, then at a
>>> minimum the log file for the group look similar to:
>>>
>>>
>>> Trying to get all of the configs.
>>> All routers sucessfully completed.
>>>
>>> cvs diff: Diffing .
>>> cvs diff: Diffing configs
>>> cvs commit: Examining .
>>> cvs commit: Examining configs
>>>
>>> ending: Sat Oct 3 15:10:59 UTC 2009
>>>
>>>
>>> debug it.  sh -x rancid-run or sh -x control_rancid groupname
>>>
>>>
>>>       
>> So, the logs are similar as this:
>>
>> --- cut ---
>> begin: Sat Oct 3 15:10:59 UTC 2009
>>
>>
>>
>> ending: Sat Oct 3 15:10:59 UTC 2009
>> --- cut ---
>>
>> Nothing more, nothing less.
>>     
>
> are group/routers.{all,up} populated?
>
>   
Sorry for my english, but what is it mean "populated"?
If that mean group/routers.all and group/routers.up are created, my 
answer is yes,
but the file routers.up is empty and routers.all is filled with lines 
from router.db
without ':up' in the end of the entries.
>> I will try the sh -x rancid-run or sh -x control_rancid groupname method to
>> test/debug it.
>>
>>
>>     
>>>>>> Shane Kavanagh ?rta:
>>>>>>
>>>>>>             
>>>>>>> Hi
>>>>>>>
>>>>>>> have you executed rancid-cvs (/usr/lib/rancid/bin/rancid-cvs) to
>>>>>>> update the rancid and populate the cvs app
>>>>>>>
>>>>>>> SK
>>>>>>>
>>>>>>>
>>>>>>> 2009/10/5 Norbert Rozs <crok.bic at gmail.com <mailto:crok.bic at gmail.com
>>>>>>>               
>>>>>>>     Hi Everyone
>>>>>>>
>>>>>>>     I have a strange problem with RANCID. Everything working fine with
>>>>>>>     it, I have about 14..16 groups
>>>>>>>     in my install and the problem is some of the groups working
>>>>>>>     (login, make commands, get output,
>>>>>>>     format the output and get cvs infos, make the config files in
>>>>>>>     right place) but some of the groups
>>>>>>>     not working (login, make commands, get output, format output but
>>>>>>>     no configs in the right dirs.).
>>>>>>>     So I tried all thing to troubleshoot: clogin works, all commands
>>>>>>>     can run on the devices, but it is
>>>>>>>     not working. Please give me some ideas what goes wrong, what could
>>>>>>>     be the problem. The logs
>>>>>>>     are empty, just a start statement and an end statement is in
>>>>>>>               
>>> there.
>>>       
>>>>>>>     Thank you!
>>>>>>>
>>>>>>>     --
>>>>>>>
>>>>>>>
>>>>>>>     Best regards:
>>>>>>>     -----------
>>>>>>>     Norbert Rozs
>>>>>>>
>>>>>>>     _______________________________________________
>>>>>>>     Rancid-discuss mailing list
>>>>>>>     Rancid-discuss at shrubbery.net <mailto: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
>>>>>>
>>>>>>             
>>
>> -- 
>>
>>
>> Best regards:
>> -----------
>> Norbert Rozs
>>     



More information about the Rancid-discuss mailing list