[rancid] Rancid isn't scanning the f5s from cron job.

Scott Granados scott.granados at gmail.com
Mon Jul 13 18:01:36 UTC 2015


I’m not sure if this matters but I had to use ;s instead of :s in the router.db.  This was a change that appeared fairly recently and popped up for me when I upgraded from 2.3.6 to 3.2.  

so you might try something like

bigip;f5;up

> On Jul 13, 2015, at 1:31 PM, Matt Almgren <matta at surveymonkey.com> wrote:
> 
> Very strange behavior here that I can’t pinpoint.  
> 
> When the cron job runs once per day, it doesn’t scan our f5s in multiple locations.  But when I run “rancid-run” manually (with no args) it picks them up – no problem.
> 
> Cron: 59 9 * * * /usr/lib/rancid/bin/rancid-run
> 
> router.db:
> <snip>
> mt-lr01.endor.lan:juniper:up
> mt-lb03.endor.lan:f5:up
> mt-lb04.endor.lan:f5:up
> <snip>
> 
> Files:
> -rw-r----- 1 rancid rancid 1072279 Jul  8 11:36 mt-lb04.endor.lan
> -rw-r----- 1 rancid rancid 1072475 Jul  8 11:36 mt-lb03.endor.lan
> -rw-r----- 1 rancid rancid   22647 Jul 10 10:01 mt-er01.endor.lan
> -rw-r----- 1 rancid rancid   22211 Jul 10 10:01 mt-er02.endor.lan
> 
> Again, running manually, it works just fine.
> 
> The logs from the cron job show me what I already know:
> 
> 
> Trying to get all of the configs.
> mt-lb03.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key
> mt-lb04.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key
> =====================================
> Getting missed routers: round 1.
> mt-lb03.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key
> mt-lb04.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.key,ls --full-time --color=never /config/ssl/ssl.crt
> =====================================
> Getting missed routers: round 2.
> mt-lb04.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key
> mt-lb03.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key
> =====================================
> Getting missed routers: round 3.
> mt-lb04.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.key,ls --full-time --color=never /config/ssl/ssl.crt
> mt-lb03.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.key,ls --full-time --color=never /config/ssl/ssl.crt
> =====================================
> Getting missed routers: round 4.
> mt-lb03.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.key,ls --full-time --color=never /config/ssl/ssl.crt
> mt-lb04.corp.surveymonkey.com: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls --full-time --color=never /config/ssl/ssl.key
> 
> 
> But when I run it manually:
> 
> 
> 
> Trying to get all of the configs.
> All routers sucessfully completed.
> 
> 
> 
> Anyone have any clues/ideas?
> 
> Thanks, Matt
> 
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20150713/ac227cf6/attachment.html>


More information about the Rancid-discuss mailing list