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

heasley heas at shrubbery.net
Fri May 31 06:28:24 UTC 2013


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?


More information about the Rancid-discuss mailing list