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:
smartmontools
package by running the following command:pkg install smartmontools
smartd
service by adding the following line to the /etc/rc.conf
file:smartd_enable="YES"
smartd
service by running the following command:service smartd start
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. Thesmartd
service can be configured to regularly check the status of the hard disks and alert you if any issues are detected. Consult thesmartctl
man page or online documentation for a complete list of options and usage examples.