View CPU temperature in CentOS

Source: Internet
Author: User

View CPU temperature in CentOS
In the hot summer, we may be concerned about the CPU temperature of our computers or servers. What if we can quickly check the CPU temperature in Linux? Lm_sensors provides a set of solutions to automatically detect the model and reading method of the motherboard sensor. It can be quickly installed and run in command line mode. Install and use the following example in CentOS: # yum install-y lm_sensors and then run sensors-detect to detect the sensor type. This command will give you some questions and always answer Yes: [root @ vm-36 ~] # Sensors-detectStopping lm_sensors: [FAILED] # sensors-detect revision 1.1 # System: Dell Inc. powerEdge R710 # Board: Dell Inc. 0XDX06This program will help you determine which kernel modules you needto load to use lm_sensors most extends tively. it is generally safeand recommended to accept the default answers to all questions, unless you know what you're doing. some south bridges, CPUs or memory contro Llers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): Silicon Integrated Systems sis5595... noVIA VT82C686 Integrated Sensors... noVIA VT8231 Integrated Sensors... noAMD K8 thermal sensors... noAMD Family 11 h thermal sensors... noIntel digital thermal sensor... success! Intel AMB FB-DIMM thermal sensor... noVIA C7 thermal and voltage sensors... noSome Super I/O chips contain embedded sensors. we have to write tostandard I/O ports to probe them. this is usually safe. do you want to scan for Super I/O sensors? (YES/no): Probing for Super-I/O at 0x2e/0x2fTrying family 'national Semiconductor '... noTrying family 'smsc '... yesFound 'smsc EMC2700LPC Super IO '(no information available) Probing for Super-I/O at 0x4e/0x4fTrying family 'national Semiconductor '... noTrying family 'smsc '... noTrying family 'via/Winbond/Nuvoton/Fintek '... noTrying family 'ite '... noSome systems (mainly servers) implement IPMI, a se T of common interfacesthrough which system health data may be retrieved, amongst other things. we first try to get the information from SMBIOS. if we don't find itthere, we have to read from arbitrary I/O ports to probe for suchinterfaces. this is normally safe. do you want to scan for IPMIinterfaces? (YES/no): Found 'ipmi bmc kcs 'at 0xca8... Success! (Confidence 8, driver 'ipmisensors ') Some hardware monitoring chips are accessible through the isa I/O ports. we have to write to arbitrary I/O ports to probe them. this is usuallysafe though. yes, you do have isa I/O ports even if you do not have anyISA slots! Do you want to scan the isa I/O ports? (YES/no): Lastly, we can probe the I2C/SMBus adapters for connected hardwaremonitoring devices. this is the most risky part, and while it worksreasonably well on most systems, it has been reported to cause troubleon some systems. do you want to probe the I2C/SMBus adapters now? (YES/no): Sorry, no supported PCI bus adapters found. module i2c-dev loaded successfully. now follows a summary of the probes I have just done. just press ENTER to continue: Driver 'coretemp ': * Chip 'intel digital thermal sensor' (confidence: 9) Driver 'ipmisensors ': * ISA bus, address 0xca8 Chip 'ipmi bmc kcs '(confidence: 8) Warning: the required module ipmisensors is not currently installedon your sy Stem. If it is built into the kernel then it's OK. Otherwise, check http://www.lm-sensors.org/wiki/Devices fordriver availability. Do you want to overwrite/etc/sysconfig/lm_sensors? (YES/no): Starting lm_sensors: loading module ipmi-si coretemp [OK] Unloading i2c-dev... OK last run sensors command to view CPU temperature: [root @ vm-36 ~] # Sensorscoretemp-isa-0000Adapter: ISA adapterCore 0: + 44.0 °C (high = + 85.0 °C, crit = + 95.0 °C) Core 1: + 44.0 °C (high = + 85.0 °C, crit = + 95.0 °C) Core 9: + 46.0 °C (high = + 85.0 °C, crit = + 95.0 °C) Core 10: + 48.0 °C (high = + 85.0 °C, crit = + 95.0 °C) coretemp-isa-0001Adapter: ISA adapterCore 0: + 45.0 °C (high = + 85.0 °C, crit = + 95.0 °C) Core 1: + 45.0 °C (high = + 85.0 °C, crit = + 95.0 °C) Core 9: + 49.0 °C (high = + 85.0 °C, crit = + 95.0 °C) Core 10: + 46.0 °C (high = + 85.0 °C, crit = + 95.0 °C) We can also set the lm_sensors service to auto start, to automatically load related modules: [root @ vm-36 ~] # Chkconfig lm_sensors on [root @ vm-36 ~] # Service lm_sensors startstartstarting lm_sensors: loading module ipmi-si coretemp [OK] lm_sensors project Official Website: http://lm-sensors.org/

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.