[rancid] Need some Help - F5's in RANCID

Jethro R Binks jethro.binks at strath.ac.uk
Fri Jul 1 13:05:35 UTC 2011


On Fri, 1 Jul 2011, Lee wrote:

> >  Clashing with some other job (do the failures
> > happen in particular windows in time)?  Check the cron logs to see what
> > else may be running at the time.  Is it one F5 host or all of them that
> > fail?  Maybe it is host-related.
> 
> We've also got Cisco NCM collecting F5 configs.  maybe related is that
> it's just recently started spewing out F5 change reports that look
> like this:
> 
> Configuration Diff
> < 001: # Binary configuration captured, checksum: 900614
>   002: # Device's text version of configuration follows
>   003: #-----------------------------------------------------
>   004: provision apm {}
> ---
> > 001: # Binary configuration captured, checksum: 710350
>   002: # Device's text version of configuration follows
>   003: #-----------------------------------------------------
>   004: provision apm {}

That should be avoidable by modifying f5rancid to ignore those checksum 
lines in the subroutine that handles the output of the command that 
produces them.  Unfortunately I know nothing about them so can't even 
begin to suggest where that is, but taking a look at the code now there's 
a similar example:

# This routine parses "bigpipe db show"
sub ShowDb {
    my($line) = (0);
    print STDERR "    In ShowDb: $_" if ($debug);

    while (<INPUT>) {
        tr/\015//d;
...
        /UCS.LoadTime/ && next;
        /Configsync\..*Time/ && next;

Here, lines matching /UCS.LoadTime/ and /Configsync\..*Time/ are skipped.  
So I guess you need a similar line, in the appropriate sub, to skip lines 
matching /Binary configuration captured, checksum:/.

Jethro.

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
Jethro R Binks, Network Manager,
Information Services Directorate, University Of Strathclyde, Glasgow, UK

The University of Strathclyde is a charitable body, registered in
Scotland, number SC015263.


More information about the Rancid-discuss mailing list