You are not logged in.

#1 2010-04-09 21:06:53

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

[solved] Selective lm_sensors output?? Possible?

I am hoping to create a script/alias that will display my sensors info but with only certain
options. My scripting strength is very weak. I would prefer bash, but not required.
Here is what i get when I run "sensors -f"

f71882fg-isa-0a00
Adapter: ISA adapter
+3.3V:       +3.46 V
in1:         +1.26 V  (max =  +2.04 V)   
in2:         +0.28 V
in3:         +0.98 V
in4:         +0.97 V
in5:         +1.10 V
in6:         +0.20 V
3VSB:        +3.44 V
Vbat:        +3.25 V
fan1:       2431 RPM
fan2:        934 RPM
fan3:       1067 RPM
fan4:          0 RPM  ALARM
temp1:       +93.2°F  (high = +212.0°F, hyst = +204.8°F)  
                      (crit = +212.0°F, hyst = +204.8°F)  sensor = thermistor
temp2:       +77.0°F  (high = +185.0°F, hyst = +177.8°F)  
                      (crit = +212.0°F, hyst = +204.8°F)  sensor = transistor

What I would like to get as output is as follows:

temp1:       +93.2°F
temp2:       +77.0°F

Is This possible?

Last edited by orphius1970 (2010-04-09 23:01:05)


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

#2 2010-04-09 22:25:56

ssri
Member
Registered: 2010-02-16
Posts: 216

Re: [solved] Selective lm_sensors output?? Possible?

here's an example from mine:

echo `sensors | grep "Core 0" | cut -c7-16`

Offline

#3 2010-04-09 23:00:45

orphius1970
Member
From: Modesto (HELL) California
Registered: 2009-02-27
Posts: 151

Re: [solved] Selective lm_sensors output?? Possible?

thank you ssri !!!!!
With minor mod, it worked perfectly!


AMD Phenomx3, 4gb ram, Nvidia Gforce 9400gt,
MSI K9N2 Diamond Motherboard, Arch x86_64

Offline

Board footer

Powered by FluxBB