Monitor Hard drive temperature via command line
The hard drive temperature can be monitored via command line. For that you need to install the command binary hddtemp.
In redhat servers you can install using yum.
============
yum install hddtemp
============
In other server like CENTOS, FEDORA and FreeBSD you need to install it from source file with the steps given below.
=====================
>> Download the DB file
cd /etc
wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db
>> Download the source
cd /usr/local
wget http://download.savannah.nongnu.org/releases/hddtemp/hddtemp-0.3-beta7.tar.gz
tar -zxvf hddtemp-0.3-beta7.tar.gz
cd hddtemp-0.3-beta7
make
make install
=====================
That’s all. You have done It
Typical Output of hddtemp command.
=====================
[root@testserver ~]# hddtemp -uC /dev/hda
/dev/hda: SAMSUNG SP0411N: 32°C
[root@system101 ~]# hddtemp /dev/hda
/dev/hda: SAMSUNG SP0411N: 27°C
=====================

0 comments:
Post a Comment