1HDDTEMP(8)                  System Manager's Manual                 HDDTEMP(8)
2
3
4

NAME

6       hddtemp - Utility to monitor hard drive temperature
7

SYNOPSIS

9       hddtemp [options] [type:]disk...
10

DESCRIPTION

12       hddtemp  will  give  you  the temperature of your hard drive by reading
13       Self-Monitoring Analysis and Reporting Technology (S.M.A.R.T.)   infor‐
14       mation  on  drives  that support this feature.  Only modern hard drives
15       have a temperature sensor.  hddtemp supports reading S.M.A.R.T.  infor‐
16       mation  from  SCSI drives too.  hddtemp can work as simple command line
17       tool or as a daemon.
18
19       You can specify one or more device drive path, where each path  can  be
20       prefixed  with  a type like PATA, SATA or SCSI to force hddtemp too use
21       one of these type (because detection can fail).
22
23
24

OPTIONS

26       The program follows the  usual  GNU  command  line  syntax,  with  long
27       options  starting  with  two  dashes  (`-').   A  summary of options is
28       included below.
29
30       -b, --drivebase
31              Display the database file that allows  hddtemp  to  recognize  a
32              supported drive.
33
34       -D, --debug
35              Display  various S.M.A.R.T. fields and their values.  Useful for
36              finding a value that seems to match the  temperature  and/or  to
37              send a report.  (done for every drive supplied)
38
39       -d, --daemon
40              Execute hddtemp in TCP/IP daemon mode (port 7634 by default).
41
42       -f, --file=file
43              Specify the database file to use.  -F, --foreground
44
45       Don't fork into the background even in daemon mode.  This is useful
46              when running under a process supervisor.
47
48       -l, --listen=addr
49              Listen  on  a  specific  address.  addr is a string containing a
50              host name or a numeric host address string.   The  numeric  host
51              address  string  is a dotted-decimal IPv4 address or an IPv6 hex
52              address.
53
54       -n, --numeric
55              Print only the temperature (without the unit).
56
57       -p, --port=#
58              Port number to listen to (in TCP/IP daemon mode).
59
60       -s, --separator=char
61              Separator to use between fields (in TCP/IP  daemon  mode).   The
62              default separator is `|'.
63
64       -S, --syslog=s
65              Switch  to  daemon  mode  and log temperatures to syslog every s
66              seconds.
67
68       -q, --quiet
69              Don't check if the drive is supported.
70
71       -v, --version
72              Display hddtemp version number.
73
74       -w, --wake-up
75              Wake-up the drive if needed (ATA drives only).
76
77       -4     Listen on IPv4 sockets only.
78
79       -6     Listen on IPv6 sockets only.
80
81
82

DRIVE DATABASE

84       If you know your drive  has  a  temperature  sensor  but  it  is  being
85       reported unsupported, tell me which model and which manufacturer it is,
86       and/or just add a new entry in /usr/share/misc/hddtemp.db.   Each  line
87       of hddtemp.db is either a comment, a blank line or a line containing:
88
89       - a regular expression that allow hddtemp to recognize a drive or a
90              set of drives from its model name or from a generic model name,
91
92       - a value (ATTRIBUTE_ID from S.M.A.R.T.),
93
94       - a C or an F to set the unit to Celsius or Fahrenheit,
95
96       - a description.
97
98       Feedback is welcome (see the REPORT section below).
99
100

TCP/IP DAEMON MODE

102       Exemple of type forcing:
103
104       # hddtemp SATA:/dev/sda PATA:/dev/hda
105
106       To test hddtemp in daemon mode, start it like this:
107
108       # hddtemp -d /dev/hd[abcd]
109
110       and  use telnet or netcat (which is known as nc on some systems) to get
111       a reply:
112
113       # netcat localhost 7634
114
115       The drive database is read only once at startup,  so  hddtemp  must  be
116       restarted if the database is updated for the changes to take effect.
117
118

REPORT

120       As  I receive a lot of reports, things must be clarified.  When running
121       hddtemp with debug options,  hddtemp  will  show  sort  of  a  dump  of
122       S.M.A.R.T.  data.  Each field corresponds to an information field.  The
123       standard field for drive temperature is 194.  But this  is  not  always
124       the  case (mostly for older drives).  Even if your drive has S.M.A.R.T.
125       capabilities, it doesn't necessarily mean that it can report  its  tem‐
126       perature.  So, things must be determined through experimentation.
127
128       So,  you  can  try  to  guess which field by is the good one by running
129       hddtemp at regular intervals:
130
131        - just after starting up your PC/server/station,
132
133        - after opening a window (a physical window :),
134
135        - after opening the case,
136
137        - whatever you can think of...
138
139       and looking for a field's value that would increase or decrease depend‐
140       ing on what effect you want to induce.  Be careful, fields 4, 9, and 12
141       are often reported to match a temperature field but after some investi‐
142       gation  they  do  not.  But fields 194 (which is the standard field for
143       temperature) and 231 are good candidates.
144
145       Then, you can send me a report with outputs from `hddtemp --debug ...',
146       `smartctl'  or `hdparm -i ...', and/or add an entry in hddtemp.db your‐
147       self.
148
149

BUGS

151       If hddtemp crashes (yes, it might) for some unknown reasons, look for a
152       file  named  hddtemp.backtrace.<PID>.XXXXXX  (where  XXXXXX is a random
153       number generated at runtime) in /tmp.  Then, you can then send me  this
154       file  and the hddtemp binary.  The backtrace functionality is currently
155       supported on i386 architectures only.
156
157

SEE ALSO

159       smartctl(8), syslog(3), syslogd(8).
160
161

AUTHOR

163       Emmanuel Varagnat (hddtemp@guzu.net).
164
165       This  manual   page   was   originaly   written   by   Aurelien   Jarno
166       <aurel32@debian.org>,  for the Debian GNU/Linux system (but may be used
167       by others).
168
169
170
171                                 July 21, 2003                      HDDTEMP(8)
Impressum