How to see CPU temperature on CentOS 7 and RedHat Enterprise Linux 7

How to see CPU temperature on CentOS 7 and RedHat Enterprise Linux 7

There are several ways to see the CPU temperature on CentOS 7 and Red Hat Enterprise Linux 7 (RHEL 7). Here are a few options:

  1. lm_sensors: The lm_sensors package includes a set of tools that can be used to monitor the temperature and other hardware sensors on the system, including the CPU. To install lm_sensors, run the following command:
refer t‮al:o‬utturi.com
yum install lm_sensors

Once lm_sensors is installed, you can use the sensors command to see the CPU temperature. For example:

sensors

This will display the temperature of the CPU, as well as other hardware sensors on the system.

  1. hddtemp: The hddtemp package includes a tool that can be used to monitor the temperature of hard disk drives on the system. It can also be used to monitor the temperature of some CPUs, although its support for CPU temperature monitoring is limited. To install hddtemp, run the following command:
yum install hddtemp

Once hddtemp is installed, you can use the hddtemp command to see the CPU temperature. For example:

hddtemp /dev/cpu0

This will display the temperature of the CPU, if it is supported by hddtemp.

  1. ipmitool: The ipmitool package includes a set of tools that can be used to manage and monitor hardware components, including the CPU, through the Intelligent Platform Management Interface (IPMI). To install ipmitool, run the following command:
yum install ipmitool

Once ipmitool is installed, you can use the ipmitool command to see the CPU temperature. For example:

ipmitool sdr type temperature

This will display the temperature of the CPU, as well as other hardware sensors on the system.

  1. BIOS: Some CPUs also include a built-in thermal sensor that can be accessed through the BIOS. To see the CPU temperature through the BIOS, you will need to enter the BIOS setup during bootup and look for a temperature reading. The method for accessing the BIOS setup will vary depending on the system, but it is typically done by pressing a key such as F2 or Delete during the boot process.

These are just a few examples of how to see the CPU temperature on CentOS 7 and RHEL 7. For more options and usage examples, you can refer to the man pages for these tools by typing man followed by the tool name at the command prompt.

Created Time:2017-10-29 22:08:37  Author:lautturi