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

Gareth Hopkins gabbawp at gmail.com
Mon Jun 3 09:00:50 UTC 2013


Off the top of my head, it could be either the shell or pager not being called correctly. When you run it manually you 
will be in a specific shell, but when run from cron, it will be using root's default. Can you try exporting the shell in the 
crontab ? 

Cheers, 
Gareth 

On 31 May 2013, at 2:01 AM, Chuck Liggett <chuck.liggett at mongoosemetrics.com> wrote:

> 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
>  
>  
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20130603/5b736341/attachment.html>


More information about the Rancid-discuss mailing list