NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
_mj
Jul 19, 2008Aspirant
accessing temperature sensors?
Is there any way to access temperature sensors from command line / script?
I was looking into it and it seems that lm-sensors might be worth looking installing -- but there so many dependencies and it seemed a potentially dangerous updated package. Is there any other lighter-weight package or alternate solution to get the temperatures?
I'm including lm-sensors dependencies below if anyone is interested in the details.
I was looking into it and it seems that lm-sensors might be worth looking installing -- but there so many dependencies and it seemed a potentially dangerous updated package. Is there any other lighter-weight package or alternate solution to get the temperatures?
I'm including lm-sensors dependencies below if anyone is interested in the details.
nas:~# apt-get -s -V install lm-sensors
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
coreutils (5.2.1-2)
initscripts (2.86.ds1-1)
libsensors3 (2.9.1-1sarge5)
sysv-rc (2.86.ds1-1)
sysvinit (2.86.ds1-1)
ucf (1.17)
Suggested packages:
lm-sensors-mod-2.9 ()
kernel-image-2.6 ()
lm-sensors-source (2.9.1-1sarge5)
i2c-source (2.9.1-1sarge2)
sensord (2.9.1-1sarge5)
read-edid ()
sysv-rc-conf (0.98-3)
Recommended packages:
debconf-utils (1.4.30.13)
The following NEW packages will be installed:
coreutils (5.2.1-2)
initscripts (2.86.ds1-1)
libsensors3 (2.9.1-1sarge5)
lm-sensors (2.9.1-1sarge5)
sysv-rc (2.86.ds1-1)
ucf (1.17)
The following packages will be upgraded:
sysvinit (2.84-2woody1 => 2.86.ds1-1)
1 upgraded, 6 newly installed, 0 to remove and 82 not upgraded.
Inst coreutils (5.2.1-2 Debian:3.1r8/oldstable)
Conf coreutils (5.2.1-2 Debian:3.1r8/oldstable)
Inst initscripts (2.86.ds1-1 Debian:3.1r8/oldstable)
Conf initscripts (2.86.ds1-1 Debian:3.1r8/oldstable)
Inst sysv-rc (2.86.ds1-1 Debian:3.1r8/oldstable)
Conf sysv-rc (2.86.ds1-1 Debian:3.1r8/oldstable)
Inst sysvinit [2.84-2woody1] (2.86.ds1-1 Debian:3.1r8/oldstable)
Conf sysvinit (2.86.ds1-1 Debian:3.1r8/oldstable)
Inst libsensors3 (1:2.9.1-1sarge5 Debian-Security:3.1/oldstable)
Inst ucf (1.17 Debian:3.1r8/oldstable)
Inst lm-sensors (1:2.9.1-1sarge5 Debian-Security:3.1/oldstable)
Conf libsensors3 (1:2.9.1-1sarge5 Debian-Security:3.1/oldstable)
Conf ucf (1.17 Debian:3.1r8/oldstable)
Conf lm-sensors (1:2.9.1-1sarge5 Debian-Security:3.1/oldstable)
nas:~#
10 Replies
Replies have been turned off for this discussion
- chirpaLuminary
# cat /proc/sys/dev/hwmon/info
temp_0:34.5
fan_0:1666
# cat /proc/sys/dev/hwmon/fan_0
1666
# cat /proc/sys/dev/hwmon/temp_0
35 - _mjAspirantThanks alot for the response chirpa! That's exactly what I was looking for 8)
- chirpaLuminaryThere are other items under /proc you can read too, such as Network Link info and such.
- PasadenaAspirantHi Chirpa (and all the others.)
I am also looking for such Infos from my NV+. The commands from your example are working. But how can i get the Information from Windows (like the Yahoo Widget does).
Pasadena - chirpaLuminaryThe widget gets info via RAIDar data.
Might get some more insight about the RAIDar protocol by looking at this perl script: viewtopic.php?p=61477#p61477 - PasadenaAspirantHi Chirpa,
Thanks. I look for it and test it. I'll come back in a few days and hope, that i will have found a solution.
Pasadena - zard1AspirantHi,
I see that the /proc/ location is no longer valid for the x86-based ReadyNAS Ultra 2. Is there any other way to get the temperatures? I am also not super-keen on installing the lm-sensors. - elfcccAspirantHi,
having the same problem with the Ultra 2. Is there any documentation on how the frontview web interface pulls the temperature and fan values from the system? - OOM-9NETGEAR ExpertYou can find the information for the for the HDD temp in the following:
Web(Frontview) interface: Status/Health
RAIDar: Hovering over the disk for the disk health
There is an option for the RAIDar in the CLI call PerlDar:
viewtopic.php?f=35&t=28433
Or if you are needing just the HDD temp, chirpa posted a script that refers to the PerlDar that pulls just the temp:
viewtopic.php?f=35&t=19827#p127739 - chirpaLuminaryFor x86 (4.2) systems, you can find the temp/fan paths in /ramfs/enclosure.cfg
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!