Mostrar temperaturas
Podemos ver las temperaturas de la CPU, y wifi 2.4Ghz y 5Ghz. Entrar por SSH en el router
ssh user@ip_router
Ver temperatura CPU
cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1 / 1000}'
Nos mostrara el valor numérico en celsius
$ cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1 / 1000}'
51.531
Si lo queremos con 1 decimal
cat /sys/class/thermal/thermal_zone0/temp | awk '{printf("%.1f\n", $1 / 1000) }'
$ cat /sys/class/thermal/thermal_zone0/temp | awk '{printf("%.1f\n", $1 / 1000) }'
51.5
Para ver la temp de la red 2.4/5Ghz, podemos consultar en la NVRAM el dispositivo.
nvram get wl0_ifname
nvram get wl1_ifname
y nos mostrara el nombre del dispositivo correspondiente.
Temperatura red 2.4Ghz
wl -i eth6 phy_tempsense | awk '{print $1 / 2 + 20}'
Temperatura red 5Ghz
wl -i eth7 phy_tempsense | awk '{print $1 / 2 + 20}'
Last updated
Was this helpful?