≡ Menu

FreeBSD find CPU (processor) temperature command

I‘m a new FreeBSD unix user. How do I get the temperature of an Intel or AMD processor (CPU) in FreeBSD using command line option?

You just need to type the following command to see cpu temperature in FreeBSD:
$ sysctl -a | grep temperature
OR
$ sysctl dev.cpu | grep temperature
Sample outputs:
Fig.01: Determine CPU temperature

Fig.01: Determine CPU temperature

(optional) Load coretemp driver at boot time

For Intel based cpu you need to load or use coretemp driver. To load the driver as a module at boot time, append the following line in loader.conf(5):
# vi /boot/loader.conf
Append the following:
coretemp_load="YES"
Save and close the file. To load the driver without rebooting the box, enter:
# kldload coretemp
# sysctl -a | grep -i temperature

A note about ipmitool

To see detailed sensor information use ipmitool (Intelligent Platform Management Interface) command as follows on your FreeBSD based server:
# ipmitool sensor
Sample outputs:

ATX+5VSB         | 5.070      | Volts      | ok    | 4.230     | 4.710     | na        | na        | 5.550     | 5.610
+3VSB            | 3.500      | Volts      | ok    | 2.780     | 2.820     | na        | na        | 3.660     | 3.680
Vcore            | 0.830      | Volts      | ok    | 0.540     | 0.560     | 0.600     | 1.490     | 1.560     | 1.640
VCCM             | 1.350      | Volts      | ok    | 1.090     | 1.120     | na        | na        | 1.720     | 1.750
+1.1             | 1.090      | Volts      | ok    | 0.850     | 0.890     | 0.940     | 1.150     | 1.210     | 1.270
+1.0             | 1.020      | Volts      | ok    | 0.850     | 0.890     | 0.940     | 1.150     | 1.210     | 1.270
BAT              | 3.200      | Volts      | ok    | 2.380     | 2.500     | na        | na        | 3.580     | 3.680
+3V              | 3.300      | Volts      | ok    | 2.780     | 2.820     | na        | na        | 3.660     | 3.680
+5V              | 5.010      | Volts      | ok    | 4.230     | 4.710     | na        | na        | 5.550     | 5.610
+12V             | 12.200     | Volts      | ok    | 10.100    | 10.300    | na        | na        | 13.300    | 13.400
CPU_FAN1         | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na
REAR_FAN1        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na
FRNT_FAN1        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na
FRNT_FAN2        | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na
REAR_FAN2        | 1200.000   | RPM        | ok    | na        | na        | 100.000   | na        | na        | na
CPU_FAN2         | na         | RPM        | na    | na        | na        | 100.000   | na        | na        | na
MB Temperature   | 55.000     | degrees C  | ok    | na        | na        | na        | 80.000    | na        | na
CPU Temperature  | 52.000     | degrees C  | ok    | na        | na        | na        | 80.000    | 85.000    | 90.00
Share this tutorial on:
{ 1 comment… add one }
  • Ron May 14, 2016, 7:57 pm

    AMD
    #kldload amdtemp
    #sysctl -a | grep temperature
    dev.cpu.1.temperature: 40.3C
    dev.cpu.0.temperature: 40.3C

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , , ,