The dd-wrt firmware is installed in the router. I can able to ssh/telnet to the router also I can able to snmpwalk to the router. How to get router temperature using SNMP or CLI (ssh/telnet) which is shown in web GUI?
Asked
Active
Viewed 4,269 times
2
-
Did you read the documentation at http://www.dd-wrt.com/wiki/index.php/SNMP ? According to that article, there is no monitored OID for temperature. – Jolta Mar 13 '15 at 21:47
-
@Jolta - I had read that document. Yes. There is no support in SNMP. But by looking at this thread, we can create some custom snmp values. Link http://www.dd-wrt.com/phpBB2/viewtopic.php?t=1054. So I'm looking for a solution like this. – Balasubramanian Naagarajan Mar 16 '15 at 06:53
1 Answers
1
Finally I found the way to get temperature of the router via CLI
cat /sys/class/i2c-adapter/i2c-0/0-0028/temp_input

Balasubramanian Naagarajan
- 338
- 3
- 17
-
On my dd-wrt router the temperature is in /proc/dmu/temperature and is in tenths of degrees C so 701 is 70.1 C. – yoyoma2 Dec 16 '17 at 02:33
-
2On my DD-WRT v3.0-r35244 it is in file "/sys/class/thermal/thermal_zone0/temp" and looks to be out to the thousandth degree C, i.e. 62145 – John Sep 05 '19 at 02:24