FreeBSD: Get / Read Hard Disk Temperature Using smartd Tools

w‮uttual.ww‬ri.com
FreeBSD: Get / Read Hard Disk Temperature Using smartd Tools

To get the hard disk temperature on a FreeBSD system using the smartd tools, you will need to install the smartmontools package and enable the smartd service.

Follow these steps to get the hard disk temperature on FreeBSD:

  1. Install the smartmontools package by running the following command:
pkg install smartmontools
  1. Enable the smartd service by adding the following line to the /etc/rc.conf file:
smartd_enable="YES"
  1. Start the smartd service by running the following command:
service smartd start
  1. To get the temperature of the hard disk, run the following command:
smartctl -a /dev/ada0 | grep "Temperature_Celsius"

Replace ada0 with the device name of your hard disk.

This will display the temperature of the hard disk in degrees Celsius.

Note: The smartmontools package includes a suite of utilities for monitoring the health and performance of hard disks and other storage devices that support the SMART (Self-Monitoring, Analysis, and Reporting Technology) protocol. The smartd service can be configured to regularly check the status of the hard disks and alert you if any issues are detected. Consult the smartctl man page or online documentation for a complete list of options and usage examples.

Created Time:2017-10-28 20:40:38  Author:lautturi