Discussion:
[rancid] blank log files on initial install
Scott Granados
2015-05-06 19:40:58 UTC
Permalink
Hi, this may be a very n00by question but googling hasn’t helped so I thought I’d ask here. I just installed a fresh copy of rancid-3.2. Admittedly my previous attempt has been using yum or apt-get to install rancid 2.3.6 but this time I downloaded the source and compiled. There were no errors during compilation.
When I run rancid-run the process exits very quickly and the generated log files for each group show a start and end with no text in-between. However, if I run the clog in command with a router name it logs in fine and drops me in to the network element. What should I check to diagnose the lack of configs being pulled and the totally empty logs other than the words start and end. Any pointers would be most appreciated.

Thank you
Scott
Kenneth
2015-05-07 01:08:07 UTC
Permalink
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Scott Granados
2015-05-07 12:24:22 UTC
Permalink
Wow I saw no mention of that in the doc. I will give this a try. I think I may have a “ missing in my config as well after coming back to this with some sleep this morning.

I will give both a try and thank you much for the pointer.
Check your router.db file and ensure you're using the correct delimiter. I had the same problem when I first upgraded to 3.1 and it took me far too long to find that you need to use a semicolon instead of a colon (a little RTFM and some hair pulling helped) and I experienced the same problem you describe.
Hostname;cisco;up
Hi, this may be a very n00by question but googling hasn’t helped so I thought I’d ask here. I just installed a fresh copy of rancid-3.2. Admittedly my previous attempt has been using yum or apt-get to install rancid 2.3.6 but this time I downloaded the source and compiled. There were no errors during compilation.
When I run rancid-run the process exits very quickly and the generated log files for each group show a start and end with no text in-between. However, if I run the clog in command with a router name it logs in fine and drops me in to the network element. What should I check to diagnose the lack of configs being pulled and the totally empty logs other than the words start and end. Any pointers would be most appreciated.
Thank you
Scott
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Scott Granados
2015-05-07 16:36:55 UTC
Permalink
This was the exact problem. I switched to using ; delimiters and it worked great.

Thank you. Your help was very much appreciated.
Check your router.db file and ensure you're using the correct delimiter. I had the same problem when I first upgraded to 3.1 and it took me far too long to find that you need to use a semicolon instead of a colon (a little RTFM and some hair pulling helped) and I experienced the same problem you describe.
Hostname;cisco;up
Hi, this may be a very n00by question but googling hasn’t helped so I thought I’d ask here. I just installed a fresh copy of rancid-3.2. Admittedly my previous attempt has been using yum or apt-get to install rancid 2.3.6 but this time I downloaded the source and compiled. There were no errors during compilation.
When I run rancid-run the process exits very quickly and the generated log files for each group show a start and end with no text in-between. However, if I run the clog in command with a router name it logs in fine and drops me in to the network element. What should I check to diagnose the lack of configs being pulled and the totally empty logs other than the words start and end. Any pointers would be most appreciated.
Thank you
Scott
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Alex DEKKER
2015-05-07 19:41:40 UTC
Permalink
Post by Scott Granados
This was the exact problem. I switched to using ; delimiters and it worked great.
Thank you. Your help was very much appreciated.
The number of times this comes up in here, I bet heasley wishes he'd
added a little check/warning to rancid to cover this :-)

alexd
heasley
2015-05-07 20:45:02 UTC
Permalink
Post by Alex DEKKER
Post by Scott Granados
This was the exact problem. I switched to using ; delimiters and it
worked great.
Thank you. Your help was very much appreciated.
The number of times this comes up in here, I bet heasley wishes he'd
added a little check/warning to rancid to cover this :-)
alexd
perhaps this

Index: bin/control_rancid.in
===================================================================
--- bin/control_rancid.in (revision 3088)
+++ bin/control_rancid.in (working copy)
@@ -278,6 +278,9 @@
exit 1;
fi

+# reading test
+@PERLV@ -F\; -ane '{if ($F[0] !~ /^\s*#/ && $F[0] !~ /^\s*$/ && $#F < 2 && $F[0] =~ /:/) {print "WARNING: Have you forgotten to update the FS in router.db?\n"; exit;}}' router.db
+
# generate the list of all, up, & down routers
cd $DIR
trap 'rm -fr routers.db routers.all.new routers.down.new routers.up.new \
Loading...