Discussion:
[rancid] A few small fixes for arancid and f5rancid
Tore Anderson
2010-02-10 07:22:14 UTC
Permalink
Hey,

the following patches to rancid 2.3.2 addresses these problems with
f5rancid on a BIG-IP LTM 8900 running version 1.0.1 build 378:

* The attribute Configsync.peerupdatedstatus is periodically changing
its value without any user interaction. It appears that this is normal
behaviour, so ignore this line to avoid diff-mails.
* The reported fan speeds change slightly all the time, which causes
unnecessary diff-mails. Strip them out.

and one problem with arancid on a HP 1:10Gb Ethernet Blade Switch
version 5.0.4-Base:

* User passwords are some kind of a secret hash that changes every time
the configuration is dumped. Strip it out just like the admin password
already is, to avoid diff-mails.

Best regards,
--
Tore Anderson
Redpill Linpro AS - http://www.redpill-linpro.com/
Tel: +47 21 54 41 27
john heasley
2010-02-10 17:50:55 UTC
Permalink
Post by Tore Anderson
Hey,
the following patches to rancid 2.3.2 addresses these problems with
* The attribute Configsync.peerupdatedstatus is periodically changing
its value without any user interaction. It appears that this is normal
behaviour, so ignore this line to avoid diff-mails.
* The reported fan speeds change slightly all the time, which causes
unnecessary diff-mails. Strip them out.
i believe we already have these in the code base. please try the
attached version.
Post by Tore Anderson
and one problem with arancid on a HP 1:10Gb Ethernet Blade Switch
* User passwords are some kind of a secret hash that changes every time
the configuration is dumped. Strip it out just like the admin password
already is, to avoid diff-mails.
why did you change arancid for an hp switch? did you alter something or
not define the device as 'hp' in the router.db?

thanks
Post by Tore Anderson
Best regards,
--
Tore Anderson
Redpill Linpro AS - http://www.redpill-linpro.com/
Tel: +47 21 54 41 27
--- arancid.orig 2010-02-10 08:07:58.000000000 +0100
+++ arancid 2010-02-10 08:10:29.000000000 +0100
@@ -205,7 +205,7 @@
if (/(rcomm|wcomm|t1com|t2com)(\s+)(.*)/ && $filter_commstr) {
ProcessHistory("","","","\/\*\t$1$2\"<removed>\"\n") && next;
}
- /^(\s+.{2,3}pw )\S+/ &&
+ /^(\s+(.{2,3}pw|pswd) )\S+/ &&
ProcessHistory("","","","\/\*$1<removed>\n") && next;
next if (/^\/\* Configuration dump taken/i);
--- f5rancid.orig 2010-01-26 13:32:47.000000000 +0100
+++ f5rancid 2010-02-01 14:06:13.000000000 +0100
@@ -207,6 +207,7 @@
}
/UCS.LoadTime/ && next;
/Configsync.LocalConfigTime/ && next;
+ /Configsync.peerupdatedstatus = (0|1)/ && next;
/LTM.ConfigTime/ && next;
if (/^(snmp\..*\.community\..* =) (.+)/i) {
@@ -293,6 +294,7 @@
/fan speed/i && next;
/chassis temperature/i && next;
/degC/ && next;
+ s/ - \d+rpm//g;
s/^\|//;
/Type: / && ProcessHistory("COMMENTS","keysort","A0",
"#Chassis type: $'");
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Tore Anderson
2010-02-11 07:39:59 UTC
Permalink
* john heasley
Post by john heasley
i believe we already have these in the code base. please try the
attached version.
Yep, your patch works just as fine. Thanks.
Post by john heasley
why did you change arancid for an hp switch? did you alter something
or not define the device as 'hp' in the router.db?
It's an OEM'ed BNT switch. It runs AOS, so I've defined it as an
«alteon» in router.db.

Best regards,
--
Tore Anderson
Redpill Linpro AS - http://www.redpill-linpro.com/
Tel: +47 21 54 41 27
john heasley
2010-02-11 18:08:45 UTC
Permalink
Post by Tore Anderson
* john heasley
Post by john heasley
i believe we already have these in the code base. please try the
attached version.
Yep, your patch works just as fine. Thanks.
Post by john heasley
why did you change arancid for an hp switch? did you alter something
or not define the device as 'hp' in the router.db?
It's an OEM'ed BNT switch. It runs AOS, so I've defined it as an
?alteon? in router.db.
got it; thanks.

Loading...