diff options
author | unknown <unknown@unknown> | 2009-09-01 13:24:17 +0000 |
---|---|---|
committer | unknown <unknown@unknown> | 2009-09-01 13:24:17 +0000 |
commit | 1e2a739ede68f904c84ea693362fdd4445c4fc16 (patch) | |
tree | c812acb3606017e6a4334a0b6ce24f769c73c5eb /bin/srancid.in | |
parent | 09f0f026fd4931b90016d0090778983da01c294a (diff) | |
download | rancid-1e2a739ede68f904c84ea693362fdd4445c4fc16.tar.gz rancid-1e2a739ede68f904c84ea693362fdd4445c4fc16.tar.xz rancid-1e2a739ede68f904c84ea693362fdd4445c4fc16.zip |
Imported from rancid-2.3.2a10.tar.gz.rancid-2.3.2a10
Diffstat (limited to 'bin/srancid.in')
-rwxr-xr-x | bin/srancid.in | 13 |
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; |