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

Matt Almgren matta at surveymonkey.com
Mon Jul 13 18:10:44 UTC 2015


Hi Scott, I’ll be moving to 3.x soon, but this is currently 2.3.8.   All the other devices in the router.db run fine, just not our f5s in two different groups.

Thanks, Matt




From: Scott Granados <scott.granados at gmail.com<mailto:scott.granados at gmail.com>>
Date: Monday, July 13, 2015 at 11:01 AM
To: Matt Almgren <matta at surveymonkey.com<mailto:matta at surveymonkey.com>>
Cc: "rancid-discuss at shrubbery.net<mailto:rancid-discuss at shrubbery.net>" <rancid-discuss at shrubbery.net<mailto:rancid-discuss at shrubbery.net>>
Subject: Re: [rancid] Rancid isn't scanning the f5s from cron job.

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<mailto: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<http://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<http://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<http://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<http://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<http://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<http://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<http://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<http://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<http://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<http://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<mailto: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/7f5ea08a/attachment.html>


More information about the Rancid-discuss mailing list