CentOS終端下查看CPU溫度

來源:互聯網
上載者:User

CentOS終端下查看CPU溫度
炎炎夏日到來,我們可能會關心自己的電腦或者伺服器CPU的溫度,如果在Linux系統中快速查看CPU溫度呢?lm_sensors提供了一套方案,可以自動偵測主板感應器的型號和讀取方式,可以在命令列模式下快速安裝運行。在CentOS系統中安裝使用執行個體如下:#yum install -y lm_sensors然後運行sensors-detect來探測感應器類型,此命令會給出一些問題,一律回答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 effectively. 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 controllers 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 11h thermal sensors... NoIntel digital thermal sensor... Success! (driver `coretemp')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 set 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 system. 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最後運行sensors命令來查看CPU溫度:[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) 我們還可以將lm_sensors服務設定為自動啟動,以便自動載入相關模組:[root@vm-36 ~]# chkconfig lm_sensors on[root@vm-36 ~]# service lm_sensors startStarting lm_sensors: loading module ipmi-si coretemp [ OK ]lm_sensors項目官方網站:http://lm-sensors.org/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.