[rancid] Re: Config making problem

Norbert Rozs crok.bic at gmail.com
Wed Oct 7 07:58:12 UTC 2009


Thank you so much, problem seems to be solved.
My excolleague put some space chars after the "up".
(Probably a notepad->putty copy-paste problem.)


2009/10/6 john heasley <heas at shrubbery.net>

> Tue, Oct 06, 2009 at 08:31:55PM +0200, Rozs Norbert:
> > Jose Madrid ?rta:
> >> That is most likely your problem.  Routers.up gets filled with the
> >> devices that are marked as up in router.db.  Please paste your
> >> router.db here and maybe we can help you find the problem.  What does
> >> your routers.down say?
> > routers.down say all routers in router.db are down, so routers.down
> > filled up with entries from router.db without :up.
> > The router.db look like this:
> > --- cut ---
> > <something what is in /etc/hosts and reachable>:cisco:up
> > <something what is in /etc/hosts and reachable>:cisco:up
> > <something what is in /etc/hosts and reachable>:cisco:up
> > ...
> > 12..14 times
> > --- cut ---
> > I wrote that routers are reachable, clogin can login, commands can be
> > executed on the routers.
>
> then you probably have trailing shit after "up".  Insert a colon after
> "up".
>
> >> On Tue, Oct 6, 2009 at 12:20 PM, Rozs Norbert <crok.bic at gmail.com
> >> <mailto:crok.bic at gmail.com>> wrote:
> >>
> >>     john heasley ?rta:
> >>     > Tue, Oct 06, 2009 at 10:27:15AM +0200, Norbert Rozs:
> >>     >
> >>     >> 2009/10/6 john heasley <heas at shrubbery.net
> >>     <mailto: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> <mailto: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>
> >>     <mailto: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
> >>     <mailto:Rancid-discuss at shrubbery.net>
> >>     >>>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> >>     >>>>>>
> >>     >>>>>>
> >>     >>
> >>     >> --
> >>     >>
> >>     >>
> >>     >> 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
> >>
> >>
> >>
> >>
> >> --
> >> It has to start somewhere, it has to start sometime.  What better
> >> place than here? What better time than now?
>



-- 


Best regards:
-----------
Norbert Rozs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091007/51e54142/attachment.html 


More information about the Rancid-discuss mailing list