reading temperature from AX88U command line

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

mekabe remain

Regular Contributor
Hi,

On my AC88U , I was able to get temperature of CPU and wifi chips with following 3 shell commands:
cputemp=`cat /proc/dmu/temperature | sed 's,øC,,g' | awk '{print $4}'`
chip1temp=`wl -i eth1 phy_tempsense | awk '{print $1}'`
chip2temp=`wl -i eth2 phy_tempsense | awk '{print $1}'`

On the AX88U , none of these work.
How can I get the temperature from command line on AX88U ?

thanks.
 

mekabe remain

Regular Contributor
I found it on another thread for AX86U:

# CPU Temperature with mC->C calculation performed
cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1 / 1000}'

# Wireless Module Temperatures with calculations performed (eth6: 2.4GHz, eth7: 5GHz)
wl -i eth6 phy_tempsense | awk '{print $1 / 2 + 20}'
wl -i eth7 phy_tempsense | awk '{print $1 / 2 + 20}'

is this the same for AX88U ?
 

mekabe remain

Regular Contributor
al
Try it and find out.
already tried. it gives an output and seems realistic. But I am not sure.
Because maybe the interface names (eth6 and eth7) are not correct for this model.
Maybe I also need to get a 3rd interface output.
So I asked opinion here. Maybe some who knows could answer.
 

LimJK

Very Senior Member
I found it on another thread for AX86U:

# CPU Temperature with mC->C calculation performed
cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1 / 1000}'

# Wireless Module Temperatures with calculations performed (eth6: 2.4GHz, eth7: 5GHz)
wl -i eth6 phy_tempsense | awk '{print $1 / 2 + 20}'
wl -i eth7 phy_tempsense | awk '{print $1 / 2 + 20}'

is this the same for AX88U ?
mekabe,
You can find the interface for 2.4GHz and 5GHz as follows:
Code:
nvram get wl0_ifname
nvram get wl1_ifname
 

Torson

Senior Member
The CPU temperature IS the CPU temperature.
The physical ports on your router are:
Code:
ethctl phy-map
...and any command starting with 'wl -i' on a physical interface will yield an error message.
The wireless interfaces are:
Code:
nvram get wl_ifnames
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top