[rancid] jrancid excess revisions due to expect prompt mismatches?

Chuck Liggett chuck.liggett at mongoosemetrics.com
Fri May 31 00:01:31 UTC 2013


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?

Thank you!

Chuck


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


More information about the Rancid-discuss mailing list