[rancid] jrancid excess revisions due to expect prompt mismatches?
Chuck Liggett
chuck.liggett at mongoosemetrics.com
Fri May 31 11:45:03 UTC 2013
Friday, May 31, 2013 02:28, heasley wrote:
> Fri, May 31, 2013 at 12:01:31AM +0000, Chuck Liggett:
> > While querying a Juniper SRX 650 firewall cluster from a CentOS 6.4
> > box running Rancid 2.3.6 (rpm from Epel), Expect 5.44.1.15,
> > where Rancid is run out of /etc/cron.d/rancid and scheduled every
> > quarter hour:
> >
> > Several times a day, I get excess revisions where it looks as though
> > a Juniper Rancid command appears in the body of the config as if more
> > than one command is being sent in response to a prompt.
> >
> > Every time I run it manually in expect debugging mode, it does not
> > experience the issue.
> >
> > Here's an illustration:
> >
> > Index: configs/firewall
> > ===================================================================
> > - -- configs/firewall (revision 619)
> > @@ -2,6 +2,7 @@
> > #
> > # username at host.domain.com> show chassis clocks
> > # username at host.domain.com> show chassis environment
> > + # show chassis firmware
> > # node0:
> > # -----------------------------------------------------------------
> > # Class Item Status
> >
> > Sometimes, the commands are well within the body of other command
> > output, like in this example:
> >
> >
> > Index: configs/firewall
> > ===================================================================
> > - -- configs/firewall (revision 604)
> > @@ -4,6 +4,7 @@
> > # username at host.domain.com> show chassis environment
> > # node0:
> > # -----------------------------------------------------------------
> > + # show chassis firmware
> > # Class Item Status
> > # Temp Routing Engine OK
> > # Routing Engine CPU OK
> > @@ -36,6 +37,7 @@
> > # FPC 0 O/S Version 11.4R6.6 by builder
> > on 2013-01-05 1
> > # FPC 2 O/S Version 11.4R6.6 by builder
> > on 2013-01-05 1
> > # FWDD O/S Version 11.4R6.6 by builder
> > on 2013-01-05 1
> > + # show chassis fpc detail
> > #
> > # node1:
> > # -----------------------------------------------------------------
> > @@ -46,6 +48,7 @@
> > #
> > # {primary:node0}
> > # username at host.domain.com> show chassis fpc detail
> > + # show chassis hardware detail
> > # node0:
> > # -----------------------------------------------------------------
> > # Slot 0 information:
> >
> > Does anyone have any suggestions?
>
> is it, what oscillates, random or consistent?
Its always involving commands, and usually starts at the "show chassis firmware".
It sometimes oscillates between the + and - of example one, and then randomly
starts with other commands and has multiple commands in the body at various points.
More information about the Rancid-discuss
mailing list