[rancid] NX-OS 6.1.4/Fan Zone Speed

Alan McKinnon alan.mckinnon at gmail.com
Sun Dec 15 17:32:01 UTC 2013


On 13/12/2013 22:36, Dino Panagiotopoulos wrote:
> Hi Everyone,
> 
> Since upgrading to NX-OS 6.1(4), fan module speed changes are written to
> the startup config which in turn is creating a diff for each time the
> fan speed changes. As you could imagine, this is causing a lot of false
> positive emails to be sent each time Rancid and CVS run. Please see the
> example below:
> 
> retrieving revision 1.1356
> diff -U 4 -r1.1356 10.111.100.151
> @@ -77,9 +77,9 @@
>   !Env: Fan4(fab_fan2)  N7K-C7010-FAN-F      1.1        Ok
>   !Env: Fan_in_PS1      --                   --         Ok
>   !Env: Fan_in_PS2      --                   --         Ok
>   !Env: Fan_in_PS3      --                   --         Ok
> - !Env: Fan Zone Speed: Zone 1: 0x70 Zone 2: 0x50
> + !Env: Fan Zone Speed: Zone 1: 0x60 Zone 2: 0x48
>   !Env: Fan Air Filter : Present
> 
> This will flip back and forth with each fan change. Has anyone on 6.X
> NX-OS code experienced anything like this? We are on RANCID 2.3.4 and if
> this not resolved in the newest release, is it possible to just remove
> 'sh env' from the nxrancid.in file? 

Removing "sh env" from nxrancid for everyone is not a good idea, I would
be most upset if an update shipped with that change.

Rather just modify your local copy of nxrancid. Add a regex check to
detect a line starting with "!Env: Fan Zone Speed:" ans skip that line.
The rancid code has many examples of doing this (it's one of rancid's
primary functions), just copy the existing style.

The function to modify is ShowEnv()


-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list