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?
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
For CPU temperature:
sudo apt-get install lm-sensors
sudo yum install lm_sensors
sensors to get CPU temp.
For fan speed:
sensors | grep -i fan
This will output fan speed
sudo apt-get install psensor
One can also use
sudo apt-get install hardinfo
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.
GUI alternative for
sensors command are Psensor and XSensors:
sudo apt install xsensors sudo apt install psensor
For better detection of your hardware's sensors, you can also run following:
sudo apt install lm-sensors sudo sensors-detect sensors watch -d -n 1 sensors