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

Ehud Gavron gavron at wetwork.net
Tue Jul 14 17:27:05 UTC 2015


vt100-w is wide mode - 132 characters.

http://www.lehman.cuny.edu/cgi-bin/man-cgi?terminfo+4

E

On 07/14/2015 10:22 AM, Matt Almgren wrote:
> That did the trick!!   Thank you very much.   
> 
> Does that simply change the output to wide-mode or similar?
> 
>  — Matt
> 
> 
> 
> 
> 
> 
> From: John Kougoulos <john.kougoulos at gmail.com <mailto:john.kougoulos at gmail.com>>
> Date: Tuesday, July 14, 2015 at 12:38 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.
> 
> HI,
> 
> try changing in f5rancid this one:
> $ENV{'TERM'} = "vt100";
> 
> to:
> $ENV{'TERM'} = "vt100-w";
> 
> Regards,
> John
> 
> On Mon, Jul 13, 2015 at 7: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
> 
> 
> 
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> 


More information about the Rancid-discuss mailing list