Discussion:
[rancid] Rancid Emailing Blank Diffs and Foundry
Steve O'Brien
2009-12-02 01:21:24 UTC
Permalink
Hi All,
I am sure this was probably covered at some point but google and the
keyword rancid do not make for an easy search...

1.)I am getting notified with blank emails when nothing changes in my
configs, any way to stop that?

2.) I have some foundry gear that gives me some bogus diffs in regards
to fan speed changes, flash space, etc... How to have rancid ignore?

@@ -64,15 +64,14 @@
! Power supply 3 (32005000 - AC - Regular) present, status ok
! Power supply 4 (30351100 - AC - Regular) present, status ok
!=20
- ! Fan 1 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 2 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 3 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 4 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 5 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 6 ok, speed (auto): [[1]]<->2<->3<->4
+ ! Fan 1 ok
+ ! Fan 2 ok
+ ! Fan 3 ok
+ ! Fan 4 ok
+ ! Fan 5 ok
+ ! Fan 6 ok
!=20
!=20
- ! Fan speed switching temperature thresholds:
!=20
!
!Module: Module Status
Ports Starting MAC =20
Index: configs/router
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- -- configs/router (revision 2404)
@@ -20,9 +20,6 @@
! Boot Prom MAC: 000c.dbd1.da8c
! Management MAC: 000c.dbd1.da8c
!
- !Module: Invalid input -> module
- !Module: Type ? for a list
- !
!Flash: Compressed Pri Code size =3D 2460784, Version 04.1.01Tc1
(FES04101.bin)
!Flash: Compressed Sec Code size =3D 3887438, Version
04.1.01aTc3 (FER04101a.bin)
!Flash: Compressed Boot-Monitor Image size =3D 50505, Version
04.1.01Tc4
Index: configs/s-core-rhs.redmond.k12.or.us
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- -- configs/router (revision 2381)
@@ -51,7 +51,6 @@
!Flash: Used Configuration Flash Size=3D24572, Max Configuration
Flash Size=3D262144.
!
!Building configuration...
- !Current configuration : 24569 bytes
!
!
!
=20

TIA,
Steve
Jeremy Singletary
2009-12-02 03:51:27 UTC
Permalink
Read this thread for information on how to adjust or ignore foundry
output:
http://www.shrubbery.net/pipermail/rancid-discuss/2008-January/002652.html

-jeremy
Post by Steve O'Brien
Hi All,
I am sure this was probably covered at some point but google and the
keyword rancid do not make for an easy search...
1.)I am getting notified with blank emails when nothing changes in my
configs, any way to stop that?
2.) I have some foundry gear that gives me some bogus diffs in regards
to fan speed changes, flash space, etc... How to have rancid ignore?
@@ -64,15 +64,14 @@
! Power supply 3 (32005000 - AC - Regular) present, status ok
! Power supply 4 (30351100 - AC - Regular) present, status ok
!=20
- ! Fan 1 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 2 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 3 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 4 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 5 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 6 ok, speed (auto): [[1]]<->2<->3<->4
+ ! Fan 1 ok
+ ! Fan 2 ok
+ ! Fan 3 ok
+ ! Fan 4 ok
+ ! Fan 5 ok
+ ! Fan 6 ok
!=20
!=20
!=20
!
!Module: Module Status
Ports Starting MAC =20
Index: configs/router
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- -- configs/router (revision 2404)
@@ -20,9 +20,6 @@
! Boot Prom MAC: 000c.dbd1.da8c
! Management MAC: 000c.dbd1.da8c
!
- !Module: Invalid input -> module
- !Module: Type ? for a list
- !
!Flash: Compressed Pri Code size =3D 2460784, Version 04.1.01Tc1
(FES04101.bin)
!Flash: Compressed Sec Code size =3D 3887438, Version
04.1.01aTc3 (FER04101a.bin)
!Flash: Compressed Boot-Monitor Image size =3D 50505, Version
04.1.01Tc4
Index: configs/s-core-rhs.redmond.k12.or.us
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- -- configs/router (revision 2381)
@@ -51,7 +51,6 @@
!Flash: Used Configuration Flash Size=3D24572, Max Configuration
Flash Size=3D262144.
!
!Building configuration...
- !Current configuration : 24569 bytes
!
!
!
=20
TIA,
Steve
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-12-03 00:13:22 UTC
Permalink
Post by Jeremy Singletary
Read this thread for information on how to adjust or ignore foundry
http://www.shrubbery.net/pipermail/rancid-discuss/2008-January/002652.html
rancid 2.3.2 also has this fix.
Steve O'Brien
2009-12-03 17:07:07 UTC
Permalink
Post by john heasley
rancid 2.3.2 also has this fix.
I am running 2.3.2. I am looking at trying to get those lines ignored.

Thanks,
Steve
john heasley
2009-12-03 20:51:52 UTC
Permalink
Post by Steve O'Brien
Post by john heasley
rancid 2.3.2 also has this fix.
I am running 2.3.2. I am looking at trying to get those lines ignored.
@@ -64,15 +64,14 @@
! Power supply 3 (32005000 - AC - Regular) present, status ok
! Power supply 4 (30351100 - AC - Regular) present, status ok
!=20
- ! Fan 1 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 2 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 3 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 4 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 5 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 6 ok, speed (auto): [[1]]<->2<->3<->4
+ ! Fan 1 ok
+ ! Fan 2 ok
+ ! Fan 3 ok
+ ! Fan 4 ok
+ ! Fan 5 ok
+ ! Fan 6 ok
is already in 2.3.2. so, please make sure that you dont have two
versions installed or have some alpha/rc version.

Jethro R Binks
2009-12-02 13:29:23 UTC
Permalink
Post by Steve O'Brien
2.) I have some foundry gear that gives me some bogus diffs in regards
to fan speed changes, flash space, etc... How to have rancid ignore?
I can't remember how much is now in the distributed francid, but my
ShowChassis subroutine looks like this, to filter out some of that extra
crud. It is apparently based on francid.in,v 1.48.

sub ShowChassis {
my($skip) = 0;

print STDERR " In ShowChassis: $_" if ($debug);

while (<INPUT>) {
tr/\015//d;
last if (/^$prompt/);
next if (/ from /);
next if (/current temperature/i);

if (/^---/ || /^$/) { # next section reached
$skip = 0;
}
if (/(POWERS|TEMPERATURE READINGS)/) {
$skip = 1;
}
if (/fan controlled temperature:/i) {
$skip = 1;
}
if (/THERMAL PLANE/) {
$skip = 1;
}
if (/temperature:/i) {
$skip = 1;
}
s/(Fan \d+ \S+), speed .*/$1/;
if (/speed/i) {
$skip = 1;
}
next if $skip;

ProcessHistory("CHASSIS","","","! $_");
}
ProcessHistory("CHASSIS","","","!\n");
return(0);
}



. . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks
Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK
john heasley
2009-12-03 00:09:10 UTC
Permalink
Post by Jethro R Binks
Post by Steve O'Brien
2.) I have some foundry gear that gives me some bogus diffs in regards
to fan speed changes, flash space, etc... How to have rancid ignore?
I can't remember how much is now in the distributed francid, but my
ShowChassis subroutine looks like this, to filter out some of that extra
crud. It is apparently based on francid.in,v 1.48.
i believe these are all in rancid 2.3.2.
Post by Jethro R Binks
sub ShowChassis {
my($skip) = 0;
print STDERR " In ShowChassis: $_" if ($debug);
while (<INPUT>) {
tr/\015//d;
last if (/^$prompt/);
next if (/ from /);
next if (/current temperature/i);
if (/^---/ || /^$/) { # next section reached
$skip = 0;
}
if (/(POWERS|TEMPERATURE READINGS)/) {
$skip = 1;
}
if (/fan controlled temperature:/i) {
$skip = 1;
}
if (/THERMAL PLANE/) {
$skip = 1;
}
if (/temperature:/i) {
$skip = 1;
}
s/(Fan \d+ \S+), speed .*/$1/;
if (/speed/i) {
$skip = 1;
}
next if $skip;
ProcessHistory("CHASSIS","","","! $_");
}
ProcessHistory("CHASSIS","","","!\n");
return(0);
}
. . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks
Computing Officer, IT Services, University Of Strathclyde, Glasgow, UK
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-12-03 00:19:28 UTC
Permalink
Post by Steve O'Brien
1.)I am getting notified with blank emails when nothing changes in my
configs, any way to stop that?
it shouldnt occur. for what device types? are control characters getting
into the config? is the cvs out-of-date?
Post by Steve O'Brien
2.) I have some foundry gear that gives me some bogus diffs in regards
to fan speed changes, flash space, etc... How to have rancid ignore?
this is a weird diff. it looks like rancid pre-2.3.2 vs 2.3.2.
Post by Steve O'Brien
@@ -64,15 +64,14 @@
! Power supply 3 (32005000 - AC - Regular) present, status ok
! Power supply 4 (30351100 - AC - Regular) present, status ok
!=20
- ! Fan 1 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 2 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 3 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 4 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 5 ok, speed (auto): [[1]]<->2<->3<->4
- ! Fan 6 ok, speed (auto): [[1]]<->2<->3<->4
+ ! Fan 1 ok
+ ! Fan 2 ok
+ ! Fan 3 ok
+ ! Fan 4 ok
+ ! Fan 5 ok
+ ! Fan 6 ok
!=20
!=20
!=20
!
!Module: Module Status
Ports Starting MAC =20
Index: configs/router
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- -- configs/router (revision 2404)
@@ -20,9 +20,6 @@
! Boot Prom MAC: 000c.dbd1.da8c
! Management MAC: 000c.dbd1.da8c
!
- !Module: Invalid input -> module
- !Module: Type ? for a list
- !
!Flash: Compressed Pri Code size =3D 2460784, Version 04.1.01Tc1
(FES04101.bin)
!Flash: Compressed Sec Code size =3D 3887438, Version
04.1.01aTc3 (FER04101a.bin)
!Flash: Compressed Boot-Monitor Image size =3D 50505, Version
04.1.01Tc4
Index: configs/s-core-rhs.redmond.k12.or.us
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
- -- configs/router (revision 2381)
@@ -51,7 +51,6 @@
!Flash: Used Configuration Flash Size=3D24572, Max Configuration
Flash Size=3D262144.
!
!Building configuration...
- !Current configuration : 24569 bytes
!
!
!
=20
TIA,
Steve
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...