このWebサイト ひつじ帳 は、管理者がWEB関連の技術をまとめた備忘録サイトです。 Linux,CentOS,PHP,MySQL,Blogger,JavaScript,CSS について記録しています。

CentOS-7.1/lm_sensors

[ CentOS-7.1 ]

lm_sensors

lm_sensors は、マザーボード上の温度センサー等から温度、電圧、ファンの情報を取得する。

使い方

  • sensors を入力して、 するのみです。

仮想マシンの場合は、正常にハードが検出されないので注意が必要です。

[root@localhost]# sensors
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:       +1.30 V  (min =  +0.85 V, max =  +1.60 V)
 +3.3 Voltage:       +3.30 V  (min =  +2.97 V, max =  +3.63 V)
 +5 Voltage:         +5.09 V  (min =  +4.50 V, max =  +5.50 V)
 +12 Voltage:       +12.09 V  (min = +10.20 V, max = +13.80 V)
CPU FAN Speed:      1454 RPM  (min =    0 RPM, max = 7200 RPM)
CHASSIS1 FAN Speed:    0 RPM  (min =  800 RPM, max = 7200 RPM)
CHASSIS2 FAN Speed:    0 RPM  (min =  800 RPM, max = 7200 RPM)
POWER FAN Speed:       0 RPM  (min =  800 RPM, max = 7200 RPM)
CPU Temperature:     +39.0°C  (high = +60.0°C, crit = +95.0°C)
MB Temperature:      +39.0°C  (high = +45.0°C, crit = +95.0°C)

[root@localhost]#

lm_sensors インストール

  • lm_sensors は、yum で、インストール可能です。


##■ インストールされているか否か確認 (結果が出てこなければ、インストールされていない)
[root@localhost]# rpm -qa | grep lm_sensors
[root@localhost]#

##■ 上記で結果が返ってこなければ、インストールする
[root@localhost]# yum -y install lm_sensors

 ~ 中略 ~

==================================================================================================================
 Package                         アーキテクチャー       バージョン                     リポジトリー          容量
==================================================================================================================
インストール中:
 lm_sensors                      x86_64                 3.3.4-11.el7                   base                 137 k
依存性関連でのインストールをします:
 lm_sensors-libs                 x86_64                 3.3.4-11.el7                   base                  40 k

トランザクションの要約
==================================================================================================================
インストール  1 パッケージ (+1 個の依存関係のパッケージ)

総ダウンロード容量: 177 k
インストール容量: 469 k
Is this ok [y/d/N]: y [Enter]  # ← 応答 [y] を入力して、[Enter]

 ~ 中略 ~

インストール:
  lm_sensors.x86_64 0:3.3.4-11.el7

依存性関連をインストールしました:
  lm_sensors-libs.x86_64 0:3.3.4-11.el7

完了しました!
[root@localhost]#

lm_sensors セットアップ

  • インストール後、ハードを検出する為に対話形式で質問されるので、それに答えていく。
    特に、理由がなければ、デフォルトの応答(Enterキー押下)で良い思います。


[root@localhost]# sensors-detect
# sensors-detect revision 6170 (2013-05-20 21:25:22 +0200)
# Board: ASUSTeK Computer INC. P5LD2-Deluxe

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and 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):  # ← [Enter] を押下
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             No
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):   # ← [Enter] を押下
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               Yes
Found `Winbond W83627EHF/EF/EHG/EG Super IO Sensors'        Success!
    (address 0x290, driver `w83627ehf')
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no):       # ← [Enter] を押下
# DMI data unavailable, please consider installing dmidecode 2.7
# or later for better results.
Probing for `IPMI BMC KCS' at 0xca0...                      No
Probing for `IPMI BMC SMIC' at 0xca8...                     No

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 usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (yes/NO):  # ← [Enter] を押下

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no):  # ← [Enter] を押下
Using driver `i2c-i801' for device 0000:00:1f.3: Intel 82801G ICH7
Module i2c-dev loaded successfully.

Next adapter: nvkm-0000:05:00.0-0 (i2c-0)
Do you want to scan it? (yes/NO/selectively):    # ← [Enter] を押下

Next adapter: nvkm-0000:05:00.0-1 (i2c-1)
Do you want to scan it? (yes/NO/selectively):    # ← [Enter] を押下

Next adapter: nvkm-0000:05:00.0-2 (i2c-2)
Do you want to scan it? (yes/NO/selectively):    # ← [Enter] を押下

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `w83627ehf':
  * ISA bus, address 0x290
    Chip `Winbond W83627EHF/EF/EHG/EG Super IO Sensors' (confidence: 9)

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no):  # ← [Enter] を押下
Unloading i2c-dev... OK

[root@localhost]# sensors


以上で、インストール・セットアップは完了です。

0 件のコメント:

人気記事

このブログを検索