LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-28-2011, 09:19 AM   #1
idny
LQ Newbie
 
Registered: Jan 2011
Posts: 20

Rep: Reputation: 1
Modify lm-sensors on Ubuntu Server 10.10?


Hello,
I have installed and configured lm-sensors on my server (Ubuntu 10.10)
When I type sensors I get a jumble of information that seems roughly correct. My problem here is that I want to tidy this output up.
My output it as follows.

Code:
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +51.0°C  (high = +84.0°C, crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +55.0°C  (high = +84.0°C, crit = +100.0°C)

it8718-isa-0290
Adapter: ISA adapter
in0:         +1.14 V  (min =  +0.00 V, max =  +4.08 V)
in1:         +1.63 V  (min =  +0.00 V, max =  +4.08 V)
in2:         +3.33 V  (min =  +0.00 V, max =  +4.08 V)
in3:         +3.04 V  (min =  +0.00 V, max =  +4.08 V)
in4:         +0.62 V  (min =  +0.00 V, max =  +2.10 V)
in5:         +4.08 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in6:         +4.08 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in7:         +3.07 V  (min =  +0.00 V, max =  +4.08 V)
Vbat:        +3.20 V
fan1:       2360 RPM  (min =    0 RPM)
fan2:       1869 RPM  (min =    0 RPM)
temp1:       -55.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp2:        -2.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp3:       +26.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal di                                                                             ode
cpu0_vid:   +1.325 V
What I want is to remove all unneeded values and only show the CPU tempuratures, Motherboard and Fan RPM.

I also want to clean up the value, such as removing the strange 0° at the end of the temps.

How can i go about this?
Any help will be much appreciated.
 
Old 04-30-2011, 07:54 PM   #2
bobhuber
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by idny View Post
Hello,
I have installed and configured lm-sensors on my server (Ubuntu 10.10)
When I type sensors I get a jumble of information that seems roughly correct. My problem here is that I want to tidy this output up.
My output it as follows.

Code:
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +51.0°C  (high = +84.0°C, crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +55.0°C  (high = +84.0°C, crit = +100.0°C)

it8718-isa-0290
Adapter: ISA adapter
in0:         +1.14 V  (min =  +0.00 V, max =  +4.08 V)
in1:         +1.63 V  (min =  +0.00 V, max =  +4.08 V)
in2:         +3.33 V  (min =  +0.00 V, max =  +4.08 V)
in3:         +3.04 V  (min =  +0.00 V, max =  +4.08 V)
in4:         +0.62 V  (min =  +0.00 V, max =  +2.10 V)
in5:         +4.08 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in6:         +4.08 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in7:         +3.07 V  (min =  +0.00 V, max =  +4.08 V)
Vbat:        +3.20 V
fan1:       2360 RPM  (min =    0 RPM)
fan2:       1869 RPM  (min =    0 RPM)
temp1:       -55.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp2:        -2.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp3:       +26.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal di                                                                             ode
cpu0_vid:   +1.325 V
What I want is to remove all unneeded values and only show the CPU tempuratures, Motherboard and Fan RPM.

I also want to clean up the value, such as removing the strange 0° at the end of the temps.

How can i go about this?
Any help will be much appreciated.
Specify the value you are looking for (Core 0)

<echo>$( sensors | grep -A 1 'Core 0' | cut -c13-21)</echo>


This will give you +51.0°C. The count starts at the beginning and end of the value you want to get.Trim the width to suit your needs. I use this with an XML file in Cairo-Dock and the Doncky app to display CPU & GPU temps.

Last edited by bobhuber; 04-30-2011 at 08:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lm-sensors does not find all sensors / solved ! g-string 3 Linux - Software 3 06-25-2010 05:24 PM
How to install tar.gz on Ubuntu 9.10 (Gnome Sensors Applet) pgonzamailcn Linux - Newbie 7 12-28-2009 09:13 AM
Ubuntu Server : Need to modify root partition Khao8 Linux - General 4 09-03-2009 08:38 AM
need help with lm-sensors and sensors-applet in gnome fakie_flip Linux - Hardware 5 07-15-2007 03:00 PM
GNOME Sensors Applet says NO SENSORS FOUND! badgerbox76 Linux - Newbie 2 12-24-2005 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration