summaryrefslogtreecommitdiffstats
path: root/bin/srancid.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/srancid.in')
-rwxr-xr-xbin/srancid.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/srancid.in b/bin/srancid.in
index f8549c5..ad88613 100755
--- a/bin/srancid.in
+++ b/bin/srancid.in
@@ -212,6 +212,19 @@ sub ShowSys {
# Remove Uptime
/ Up time/ && next;
+ # filter temperature sensor info for Dell 6428 stacks
+ /Temperature Sensors:/ && next;
+ if (/Temperature \(Celsius\)/ &&
+ ProcessHistory("COMMENTS","keysort","C1","! Unit\tStatus\n")) {
+ while (<INPUT>) {
+ s/^\s+\015//g;
+ tr/\015//d;
+ /(\d+)\s+\d+\s+(.*)$/ &&
+ ProcessHistory("COMMENTS","keysort","C1","! $1\t$2\n");
+ /^\s*$/ && last;
+ }
+ }
+
/system description: (.*)/i &&
ProcessHistory("COMMENTS","keysort","A1", "!Chassis type: $1\n") &&
next;