Discussion:
[rancid] Eliminating fan speed and external temp from diffs
Brad Shifflett
2015-08-25 21:58:27 UTC
Permalink
I am trying to take out some info in the configurations:


! Configured Country............................... US - United States

! Operating Environment............................ Commercial (0 to 40 C)

! Internal Temp Alarm Limits....................... 0 to 65 C

! External Temperature............................. +34 C

- ! Fan Status....................................... 4500 rpm

+ ! Fan Status....................................... 4600 rpm

! State of 802.11b Network......................... Enabled

! State of 802.11a Network......................... Enabled

! Number of WLANs.................................. 3



! System Stats Normal Interval..................... 180

! Configured Country............................... US - United States

! Operating Environment............................ Commercial (0 to 40 C)

! Internal Temp Alarm Limits....................... 0 to 65 C

- ! External Temperature............................. +34 C

+ ! External Temperature............................. +35 C

! Fan Status....................................... 3200 rpm

! State of 802.11b Network......................... Enabled

! State of 802.11a Network......................... Enabled

! Number of WLANs.................................. 2 @@ -206,9 +206,8 @@



I am running version 3.2 of rancid.

Which files do I have to modify to take this out? This is on cisco wireless lan controllers and access-points mostly.

I already took care of another entry for the Flash changes, that was easier to locate.


Brad Shifflett
---------------------------------------------------------------------------------------
This email has been scanned for email related threats and delivered safely by Mimecast.
For more information please visit http://www.mimecast.com
---------------------------------------------------------------------------------------
James Bensley
2015-08-26 08:10:15 UTC
Permalink
Hi Brad,

I wrote a small script and diff to apply the script to the RANCID
process for this exact reason (more of less), the simple install
process is written down here:
http://null.53bits.co.uk/index.php?page=rancid-filter

Just apply the diff to call the external script I wrote, I will
basically drop any device sections from your RANCID update emails
where you have an equal number of "-" and "+" lines like you example,

See the two examples emails on that page from before and after the
script is applied, router2 and router3 have config changes but router
one only has the following changes which I don't want to know about
(is not a configuration change);

- !Flash: nvram: 178 -rw- 10463 <no date>
startup-config
+ !Flash: nvram: 178 -rw- 10431 <no date>
startup-config
!Flash: nvram: 179 ---- 1930 <no date>
private-config
- !Flash: nvram: 180 -rw- 10463 <no date>
underlying-config
+ !Flash: nvram: 180 -rw- 10431 <no date>
underlying-config
!Flash: nvram: 1 -rw- 0 <no date>
ifIndex-table
!Flash: nvram: 2 -rw- 2945 <no date>
cwmp_inventory
!Flash: nvram: 5 ---- 64 <no date>
persistent-data
- !Flash: nvram: 196600 bytes total (179035 bytes free)
+ !Flash: nvram: 196600 bytes total (179067 bytes free)


Just to clarify, the script only prevents that unwanted "junk" info
from being emailed to you, it will still go into your RANCID CVS so
the information is still recorded, it just means if nothing has
changed you won't get an email.

Cheers,
James.

Loading...