sysctl dev.ax
root@opnsense:~ # ifconfig -v ax0ax0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 [...] module temperature: 50.95 C voltage: 3.30 Volts
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/local/opnsense/scripts/OPNsense/Netsnmp/distro.shextend .1.3.6.1.4.1.2021.7890.2 hardware /bin/kenv smbios.planar.productextend .1.3.6.1.4.1.2021.7890.3 vendor /bin/kenv smbios.planar.makerextend .1.3.6.1.4.1.2021.7890.4 serial /bin/kenv smbios.planar.serialextend .1.3.6.1.4.1.2021.7890.5 ixl3_temp /usr/local/bin/ixl3_temp.sh
#!/bin/sh# Extract the module temperature from ifconfig outputifconfig -v ixl3 | awk '/module temperature/ {print $3}'