[rancid] HP Procurve 2920-48G-POE+ Stack and hrancid show stack command issue

Alan McKinnon alan.mckinnon at gmail.com
Fri Feb 7 06:57:02 UTC 2014


On 07/02/2014 07:47, Stephen Austen wrote:
> Hi,
> 
>  
> 
> I am having an issue where config differs are being created every hour
> due to the response to “show stack” command in hrancid.
> 
>  
> 
> The problem appears to be that “Uptime” in this command’s response needs
> to be skipped/removed and my attempts at editing hrancid end up aborting
> due compile errors.
> 
>  
> 
> --- networking/configs/X.X.X.X                  2014/02/07
> 03:01:34        1.40
> 
> +++ networking/configs/ X.X.X.X              2014/02/07 04:01:36        1.42
> 
> @@ -34,7 +34,7 @@
> 
> ;MAC Address      : 9cb654-d0638b
> 
> ;Stack Topology   : Chain                                   
> 
>  ;Stack Status     : Active                                 
> 
> -;Uptime           : 48d 21h 20m
> 
> +;Uptime           : 48d 22h 20m
> 
>  ;Software Version : WB.15.11.0003
> 
> ;
> Mbr                                                                        
> 
>  ; ID  Mac Address   Model                                  Pri
> Status      
> 
>  
> 
> Would someone be so kind as to assist me in filtering out “Uptime” in
> hrancid, or elsewhere, to avoid unnecessary emails and CVS updates?


Add this to sub ShowStack(), directly after the 2 return statements is a
good place:

next if (/^Uptime/);


That will remove any line starting with "Uptime", which I imagine will
suit your needs.

-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list