grep help? - Trying to extra sensors data
From: The Hobbit (Bilbo.Baggins_at_bag.end.invalid)
Date: 09/13/04
- Next message: AD.: "Re: grep help? - Trying to extra sensors data"
- Previous message: Nicholas Andrade: "Re: Help compiling kernel modules in Fedora C1"
- Next in thread: AD.: "Re: grep help? - Trying to extra sensors data"
- Reply: AD.: "Re: grep help? - Trying to extra sensors data"
- Reply: Genius: "Re: grep help? - Trying to extra sensors data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 13 Sep 2004 16:20:18 +1200
Hi All,
I'm trying to extract some data from my sensors output which looks like the
following:
--------------------------------------------------
$ sensors
asb100-i2c-0-2d
Adapter: SMBus Via Pro adapter at e800
VCore 1: +1.76 V (min = +1.76 V, max = +1.94 V) ALARM
+3.3V: +3.34 V (min = +3.14 V, max = +3.47 V)
+5V: +4.95 V (min = +4.76 V, max = +5.24 V)
+12V: +12.16 V (min = +10.82 V, max = +13.19 V)
-12V (reserved):
-12.70 V (min = -0.00 V, max = -0.00 V)
-5V (reserved):
-5.33 V (min = -0.00 V, max = -0.00 V)
CPU Fan: 5113 RPM (min = 1997 RPM, div = 4)
Chassis Fan:
3125 RPM (min = 3994 RPM, div = 2)
Power Fan:2860 RPM (min = 3994 RPM, div = 2)
M/B Temp: +29°C (high = +45°C, hyst = +40°C)
CPU Temp (Intel):
+46°C (high = +60°C, hyst = +50°C)
Power Temp:
+14°C (high = +45°C, hyst = +40°C)
CPU Temp (AMD):
+51°C (high = +60°C, hyst = +50°C)
vid: +1.850 V
alarms:
$
--------------------------------------------------
I can extract things like the VCore by using:
sensors | grep "VCore 1: " | cut -d"+" -f2 | cut -d"V" -f1
and for CPU Fan:
sensors | grep "CPU Fan" | cut -d":" -f2 | cut -d"R" -f1
But, for things such as the Chassis Fan and the CPU Temp where the output
runs over a couple of lines, I'm not getting any results.
e.g.
sensors | grep "Power Temp:" | cut -d"+" -f2 | cut -d"Â" -f1
will return "Power Temp:" and not "14" as I'd expect.
I'm planning to drop this info into RRDTool so any pointers to somewhere
that I can learn what I'm doing wrong and/or something (please not NRG (at
this point)) which coulds help me parse this info would be much appreciated.
I'm running FC2 on a ASUSTeK A7V333-RAID (VIA KT333 Chipset) if that helps
anyone.
Cheers!
- Next message: AD.: "Re: grep help? - Trying to extra sensors data"
- Previous message: Nicholas Andrade: "Re: Help compiling kernel modules in Fedora C1"
- Next in thread: AD.: "Re: grep help? - Trying to extra sensors data"
- Reply: AD.: "Re: grep help? - Trying to extra sensors data"
- Reply: Genius: "Re: grep help? - Trying to extra sensors data"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]