What are the commands to find out fan speed and cpu temp in linux (I know lm-sensor can do the task). Is there any alternative for that?
For CPU temperature:
sudo apt-get install lm-sensors
sudo yum install lm_sensors
sensors to get CPU temp.
For fan speed:
sensors | grep fan
This will output fan speed
sudo apt-get install psensor
One can also use
sudo apt-get install hardinfo
i'm use Glances in python. It's a interactive process manager and hardware status.
apt install python python-pip; pip install glances;
and run with:
good look ;)
I run a script which pulls SDR data on the machine in test (example lines follow)
ti=$(date +%H:%M:%S) pt=$(ipmitool -I open sdr | grep 'PS1 Temp')
and sends it to the screen as well as to logfile then idles w/ ping for 15 seconds
echo "$ti|$pt" && echo "$ti|$pt" >> logfile && ping -w 15 127.0.0.1 > nul
before looping around again for another pass.
an alternative for lmsensor:
install xsensors using
sudo apt-get install xsensors
If you would like to try a different option, you can try s-tui, a software we were working on. It is a terminal UI app, so running it over SSH is also possible. It displays CPU temperature, utilization, frequency and power. Fan speed was also added.
Installation methods are explained on the GitHub Readme. s-tui on GitHub