Getting Output for a Specific Device
Then, to get output for a specific device pass its name to the sensors command. For example, for
the Ethernet controller named
xilinx_efct-pci-0100
:
$ sensors xilinx_efct-pci-0100
xilinx_efct-pci-0100
VCC0V85: +0.89 V (min = +0.00 V, max = +0.00 V)
VCC1V8: +1.80 V (min = +0.00 V, max = +0.00 V)
1V2VCCO: +1.19 V (min = +0.00 V, max = +0.00 V)
1V2AVTT: +1.20 V (min = +0.00 V, max = +0.00 V)
0V9AVCC: +0.89 V (min = +0.00 V, max = +0.00 V)
3V3: +3.29 V (min = +0.00 V, max = +0.00 V)
3V3 CAGES: +3.36 V (min = +0.00 V, max = +0.00 V)
5V0: +4.96 V (min = +0.00 V, max = +0.00 V)
12V PCI: +11.98 V (min = +11.04 V, max = +12.96 V)
3V3 AUX PCI: +3.31 V (min = +3.00 V, max = +3.60 V)
3V3 PCI: +3.31 V (min = +3.00 V, max = +3.60 V)
VCCINT OUT: +0.90 V (min = +0.00 V, max = +0.00 V)
Tdiode (FPGA): +59.0°C (low = +0.0°C, high = +88.0°C)
(crit = +97.0°C)
Ambient (FPGA): +44.0°C (low = +0.0°C, high = +0.0°C)
Ambient (left): +41.0°C (low = +0.0°C, high = +75.0°C)
(crit = +85.0°C)
Ambient (right): +49.0°C (low = +0.0°C, high = +75.0°C)
(crit = +85.0°C)
VCCINT: +62.0°C (low = +0.0°C, high = +100.0°C)
(crit = +110.0°C)
12V PCI: +1.94 A (min = +0.00 A, max = +5.50 A)
3V3 AUX PCI: +0.06 A (min = +0.00 A, max = +0.38 A)
3V3 PCI: +0.49 A (min = +0.00 A, max = +2.10 A)
VCCINT OUT: +16.50 A (min = +0.00 A, max = +0.00 A)
Reading Sensor Values from the Filesystem
Sensors for Linux devices output their values into the
/sys/class/hwmon
hierarchy, in a
directory named
/sys/class/hwmon/hwmon<n>/device
.
To determine which of the
hwmon<n>/device
directories contain sensor data from the X3522
card, search for a
driver
file within the directory that is a soft link to the
xilinx_efct
driver:
$ for dir in /sys/class/hwmon/*/device
> do
> readlink $dir/driver | grep -Eq '/xilinx_efct$' && echo $dir
> done
/sys/class/hwmon/hwmon1/device
/sys/class/hwmon/hwmon2/device
/sys/class/hwmon/hwmon3/device
/sys/class/hwmon/hwmon4/device
So in the above example, the four directories
/sys/class/hwmon/hwmon1/device
to
/sys/
class/hwmon/hwmon4/device
(inclusive) contain sensor data from adapters using the
xilinx_efct driver.
Within these directories, each sensor has the following files:
Chapter 8: Statistics and Logging
UG1523 (v1.0) October 18, 2022
Alveo X3522 User Guide
58