«

»

Mar 25

Melihat Suhu Komputer di Linux Server

perintah ini sangat berguna untuk linux yang menampilkan temperature suhu di linux lewat terminal, untuk melihatnya di linux bisa menggunakan perintah sensors, untuk menggunakan perintah tersebut kita harus menginstall paketnya terlebih dahulu, yaitu dengan mengetik

[root@localhost danu]# yum install lm_sensors

maka akan terlihat tampilan proses instalasi seperti dibawah ini

Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package lm_sensors.i686 0:3.3.1-1.fc15 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package             Arch          Version               Repository        Size
================================================================================
Installing:
lm_sensors          i686          3.3.1-1.fc15          updates          129 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 129 k
Installed size: 387 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 129 k
lm_sensors-3.3.1-1.fc15.i686.rpm                         | 129 kB     00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : lm_sensors-3.3.1-1.fc15.i686                                 1/1

Installed:
lm_sensors.i686 0:3.3.1-1.fc15

Complete!
[root@localhost danu]#

selesai sudah proses instalasinya, sekarang kita sudah bisa melihat temperature suhu di linux kita dengan mengetikkan perintah

[root@localhost danu]# sensors

berikut ini hasil tampilan dari perintah sensors

acpitz-virtual-0
Adapter: Virtual device
temp1:        +52.5°C  (crit = +99.0°C)

nouveau-pci-0100
Adapter: PCI adapter
temp1:        +79.0°C  (high = +100.0°C, crit = +110.0°C)

[root@localhost danu]#

agar lebih powerful lagi perintah ini, anda bisa men-scan terlebih dahulu seluruh perangkat didalam komputer anda dengan menggunakan perintah sensors-detect, dengan perintah ini semua perangkat akan di-scan seperti chipset southbridge, CPU atau memory controller, hasil scan tergantung dari kernel modules, berikut ini perintah dan tampilannya

[root@localhost danu]# sensors-detect
# sensors-detect revision 5984 (2011-07-10 21:22:53 +0200)
# System: Dell Inc. Latitude D630 (laptop)

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): y
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
Intel digital thermal sensor…                             Success!
(driver `coretemp’)
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): y
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE’…               No
Trying family `SMSC’…                                     Yes
Found unknown chip with ID 0x3201
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 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): 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. 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): y
Using driver `i2c-i801′ for device 0000:00:1f.3: Intel 82801H ICH8
Module i2c-dev loaded successfully.

Next adapter: nouveau-0000:01:00.0-0 (i2c-0)
Do you want to scan it? (YES/no/selectively): y

Next adapter: nouveau-0000:01:00.0-1 (i2c-1)
Do you want to scan it? (YES/no/selectively): y

Next adapter: nouveau-0000:01:00.0-2 (i2c-2)
Do you 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)
Client found at address 0x51
Probing for `Analog Devices ADM1033’…                     No
Probing for `Analog Devices ADM1034’…                     No
Probing for `SPD EEPROM’…                                 No
Client found at address 0x52
Probing for `Analog Devices ADM1033’…                     No
Probing for `Analog Devices ADM1034’…                     No
Probing for `SPD EEPROM’…                                 No
Client found at address 0x53
Probing for `Analog Devices ADM1033’…                     No
Probing for `Analog Devices ADM1034’…                     No
Probing for `SPD EEPROM’…                                 No

Next adapter: SMBus I801 adapter at 10c0 (i2c-3)
Do you 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’…                                 Yes
(confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM’…                                No
Client found at address 0x52
Probing for `Analog Devices ADM1033’…                     No
Probing for `Analog Devices ADM1034’…                     No
Probing for `SPD EEPROM’…                                 Yes
(confidence 8, not a hardware monitoring chip)

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

Driver `coretemp’:
* Chip `Intel digital thermal sensor’ (confidence: 9)

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): y
ln -s ‘/lib/systemd/system/lm_sensors.service’ ‘/etc/systemd/system/multi-user.target.wants/lm_sensors.service
Unloading i2c-dev… OK

[root@localhost danu]#

untuk melihat hasilnya dari scan bisa mengetik kembali perintahsensors, kita akan melihat bahwa hasilnya akan beda

[root@localhost danu]# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +51.5°C  (crit = +99.0°C)

nouveau-pci-0100
Adapter: PCI adapter
temp1:        +78.0°C  (high = +100.0°C, crit = +110.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +50.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:       +52.0°C  (high = +100.0°C, crit = +100.0°C)

[root@localhost danu]#

terlihat hasil dari perintah sensors beda dengan yang pertama

Salam,

Sumber : danuwi.wordpress.com

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Translate »