View CPU temperature under Linux terminal

Source: Internet
Author: User

In our server routine maintenance, we may care about the server CPU temperature, how to quickly see the CPU temperature in the Linux system? Lm_sensors provides a set of solutions that automatically detects the model and read mode of the motherboard sensor and can be run quickly in command line mode. So we can put the CPU temperature into the daily monitoring.

The following examples are used in the CentOS system installation:


#yum install-y lm_sensors

Then run Sensors-detect to probe the sensor type, this command will give you some questions, answer yes:

[Email protected] ~]# Sensors-detect

# Sensors-detect Revision 1.1

# System:lenovo 4286af2 (laptop)


Determine which kernel modules you need

To the load to use Lm_sensors most effectively. It is generally safe

and recommended to accept the default answers to all questions,

Unless you know ' re doing.


Some South bridges, CPUs or memory controllers contain embedded sensors.

Want to scan for them? This is totally safe. (yes/no): YES

Silicon Integrated Systems SIS5595 ... No

VIA vt82c686 Integrated Sensors ... No

VIA VT8231 Integrated Sensors ... No

AMD K8 Thermal Sensors ... No

AMD Family 11h Thermal sensors ... No

Intel Digital Thermal Sensor ... success!

(Driver ' coretemp ')

Intel AMB Fb-dimm Thermal sensor ... No

VIA C7 Thermal and voltage sensors ... No


Some Super I/O chips contain embedded sensors. We have the to write to

Standard I/O ports to probe them. This is usually safe.

Does want to scan for Super I/O sensors? (yes/no): Y

Probing for super-i/o at 0x2e/0x2f

Trying family ' national Semiconductor ' ... No

Trying family ' SMSC ' ... No

Trying family ' Via/winbond/nuvoton/fintek ' ... No

Trying family ' ITE ' ... No

Probing for super-i/o at 0x4e/0x4f

Trying family ' national Semiconductor ' ... No

Trying family ' SMSC ' ... No

Trying family ' Via/winbond/nuvoton/fintek ' ... No

Trying family ' ITE ' ... No


Some Hardware monitoring chips is accessible through the ISA I/O ports.

We have to write to arbitrary I/O ports to probe them. This is usually

Safe though. Yes, you do have the ISA I/O ports even if you don't have any

ISA slots! Does want to scan the ISA I/O ports? (yes/no): Y

Probing for ' National Semiconductor LM78 ' at 0x290 ... No

Probing for ' National Semiconductor LM79 ' at 0x290 ... No

Probing for ' Winbond w83781d ' at 0x290 ... No

Probing for ' Winbond w83782d ' at 0x290 ... No


Lastly, we can probe the I2c/smbus adapters for connected hardware

Monitoring devices. The most risky part, and while it works

Reasonably well in most systems, it had been reported to cause trouble

On some systems.

Does want to probe the I2c/smbus adapters now? (yes/no): Y

Found Unknown SMBus adapter 8086:1C22 at 0000:00:1F.3.

Sorry, no supported PCI bus adapters found.

Module I2c-dev loaded successfully.


Next adapter:i915 Gmbus SSC (i2c-0)

Does want to scan it? (yes/no/selectively): Y


Next adapter:i915 Gmbus VGA (i2c-1)

Does want to scan it? (yes/no/selectively): Y


Next adapter:i915 gmbus Panel (i2c-2)

Does want to scan it? (yes/no/selectively): Y

Client found at address 0x50

Probing for ' Analog Devices ADM1033 ' ... No

Probing for ' Analog Devices ADM1034 ' ... No

Probing for ' SPD EEPROM ' ... No

Probing for ' EDID EEPROM ' ... Yes

(confidence 8, not a hardware monitoring chip)


Next adapter:i915 Gmbus DPC (i2c-3)

Does want to scan it? (yes/no/selectively): Y


Next adapter:i915 Gmbus DPB (i2c-4)

Does want to scan it? (yes/no/selectively): Y


Next adapter:i915 Gmbus DPD (i2c-5)

Does want to scan it? (yes/no/selectively): Y


Next Adapter:dpddc-b (i2c-6)

Does want to scan it? (yes/no/selectively): Y


Next adapter:dpddc-c (i2c-7)

Does want to scan it? (yes/no/selectively): Y


Next adapter:dpddc-d (i2c-8)

Does want to scan it? (yes/no/selectively): Y


Next Adapter:smbus I801 Adapter at efa0 (i2c-9)

Does want to scan it? (yes/no/selectively): Y

Client found at address 0x2b

Probing for ' National Semiconductor LM78 ' ... No

Probing for ' National Semiconductor LM79 ' ... No

Probing for ' National Semiconductor LM80 ' ... No

Probing for ' Winbond w83781d ' ... No

Probing for ' Winbond w83782d ' ... No

Probing for ' Winbond w83627hf ' ... No

Probing for ' Winbond w83627ehf ' ... No

Probing for ' Winbond w83627dhg/w83667hg/w83677hg ' ... No

Probing for ' Asus as99127f (Rev.1) ' ... No

Probing for ' Asus as99127f (Rev.2) ' ... No

Probing for ' Asus ASB100 Bach ' ... No

Probing for ' Analog Devices ADM1021 ' ... No

Probing for ' Analog Devices adm1021a/adm1023 ' ... No

Probing for ' Maxim MAX1617 ' ... No

Probing for ' Maxim max1617a ' ... No

Probing for ' Maxim MAX1668 ' ... No

Probing for ' Maxim MAX1805 ' ... No

Probing for ' Maxim MAX1989 ' ... No

Probing for ' Maxim max6655/max6656 ' ... No

Probing for ' TI THMC10 ' ... No

Probing for ' National Semiconductor LM84 ' ... No

Probing for ' Genesys Logic gl523sm ' ... No

Probing for ' Onsemi MC1066 ' ... No

Probing for ' Maxim MAX1618 ' ... No

Probing for ' Maxim MAX1619 ' ... No

Probing for ' National Semiconductor lm82/lm83 ' ... No

Probing for ' Maxim max6654/max6690 ' ... No

Probing for ' Maxim max6680/max6681 ' ... No

Probing for ' National Semiconductor LM95231 ' ... No

Probing for ' National Semiconductor LM95241 ' ... No

Probing for ' Analog Devices ADM1029 ' ... No

Probing for ' ITE it8712f ' ... No

Client found at address 0x50

Probing for ' Analog Devices ADM1033 ' ... No

Probing for ' Analog Devices ADM1034 ' ... No

Probing for ' SPD EEPROM ' ... No

Probing for ' EDID EEPROM ' ... No

Client found at address 0x5c

Probing for ' Analog Devices ADT7462 ' ... No


Now follows a summary of the probes I had just done.

Just Press ENTER to continue:


Driver ' coretemp ':

* Chip ' Intel Digital Thermal Sensor ' (CONFIDENCE:9)


Want to Overwrite/etc/sysconfig/lm_sensors? (yes/no): Y

Starting lm_sensors:loading module coretemp [OK]

Unloading I2c-dev ... Ok



Finally run the sensors command to see the CPU temperature:

[email protected] ~]# sensors

acpitz-virtual-0

Adapter:virtual Device

Temp1: +32.0°c (crit = +99.0°c)


thinkpad-isa-0000

Adapter:isa Adapter

fan1:1974 RPM


coretemp-isa-0000

Adapter:isa Adapter

Physical ID 0: +40.0°c (high = +86.0°c, Crit = +100.0°c)

Core 0: +40.0°c (high = +86.0°c, Crit = +100.0°c)

Core 1: +38.0°c (high = +86.0°c, Crit = +100.0°c)

We can also set the Lm_sensors service to start automatically so that the relevant modules are loaded automatically:

[Email protected] ~]# chkconfig lm_sensors on

[[Email protected] ~]# service lm_sensors start

Starting lm_sensors:loading module coretemp [OK]

Lm_sensors Project official Website:

http://lm-sensors.org/


This article is from the "Ilovechina" blog, make sure to keep this source http://kangchengkyo.blog.51cto.com/6626894/1718400

View CPU temperature under Linux terminal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.