Discussion:
[rancid] Small patch for francid.in
Jethro R Binks
2008-02-15 15:34:33 UTC
Permalink
Attached is a small patch which removes the secret_data for the SSL crypto
key on the SuperX platform (at least). For whatever reason, I was finding
that this was changing between rancid runs (I think newlines were
appearing), and it probably doesn't need to be stored anyway.

Incidentally, I also see a similar problem with the Serial number of
BigIrons, where for whatever reason rancid doesn't always obtain it
correctly, ending up with garbage, for example (we've seen this for
years):

-! Serial #: CH20033740
+! Serial #: Cÿÿÿÿÿÿÿÿÿ

So I also locally apply:

@@ -179,6 +179,8 @@

next if (/^(The system |Crash time)/);
next if (/^((Active|Standby) Management|LP Slot \d+) uptime is/);
+# ::Strath::
+ next if (/^\s+Serial #/);

Jethro.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks
Computing Officer, IT Services
University Of Strathclyde, Glasgow, UK
john heasley
2008-02-15 18:40:41 UTC
Permalink
Post by Jethro R Binks
Attached is a small patch which removes the secret_data for the SSL crypto
key on the SuperX platform (at least). For whatever reason, I was finding
that this was changing between rancid runs (I think newlines were
appearing), and it probably doesn't need to be stored anyway.
Incidentally, I also see a similar problem with the Serial number of
BigIrons, where for whatever reason rancid doesn't always obtain it
correctly, ending up with garbage, for example (we've seen this for
-! Serial #: CH20033740
+! Serial #: C?????????
That would remove the module/LC serial numbers. Could you provide an
example of the diff, not cut-n-pasted so white-space it retained exactly?
Post by Jethro R Binks
@@ -179,6 +179,8 @@
next if (/^(The system |Crash time)/);
next if (/^((Active|Standby) Management|LP Slot \d+) uptime is/);
+ next if (/^\s+Serial #/);
Jethro.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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
Jethro R Binks
2008-02-15 21:21:20 UTC
Permalink
Post by john heasley
Post by Jethro R Binks
Attached is a small patch which removes the secret_data for the SSL crypto
key on the SuperX platform (at least). For whatever reason, I was finding
that this was changing between rancid runs (I think newlines were
appearing), and it probably doesn't need to be stored anyway.
Incidentally, I also see a similar problem with the Serial number of
BigIrons, where for whatever reason rancid doesn't always obtain it
correctly, ending up with garbage, for example (we've seen this for
-! Serial #: CH20033740
+! Serial #: C?????????
That would remove the module/LC serial numbers. Could you provide an
example of the diff, not cut-n-pasted so white-space it retained exactly?
I know, which is why I only mention it in passing for information. I
don't expect it to be included in the code, although I'd be interested to
know if other people have observed the issue. The characters replaced are
often 8bit chars. I've not looked in any detail to try and find out what
causes it to happen.

The attached patch to my original mail to deal with the secret_data was
the important issue.

Jethro.
Post by john heasley
Post by Jethro R Binks
@@ -179,6 +179,8 @@
next if (/^(The system |Crash time)/);
next if (/^((Active|Standby) Management|LP Slot \d+) uptime is/);
+ next if (/^\s+Serial #/);
Jethro.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks
Computing Officer, IT Services
University Of Strathclyde, Glasgow, UK

Loading...