本文共 885 字,大约阅读时间需要 2 分钟。
linux查看服务器温度
It is useful to monitor a node’s temporary. Among all the sensors’ temperatures, the higher one may be a very important one. How to get the highest temperature from all sensors in a server on ?
监视节点的临时状态很有用。 在所有传感器的温度中,较高的温度可能是非常重要的温度。 如何从上的服务器中的所有传感器获得最高温度?
You can use this command to get the the highest temperature from all sensors in a server on :
您可以使用以下命令从上的服务器中的所有传感器获取最高温度:
sensors | grep '°C' | cut -d '°' -f1 | rev | cut -d' ' -f1 | rev | tr -d '+' | sort -n | tail -n1
The first line gets all the lines with a degree. The second line get out only the temperature’s number. The third line sorted the numbers and get the highest one.
第一行获得所有带度的行。 第二行仅得出温度数字。 第三行对数字进行排序并获得最高的数字。
One example:
一个例子:
$ sensors | grep '°C' | cut -d '°' -f1 | rev | cut -d' ' -f1 | rev | tr -d '+' | sort -n | tail -n174.0
翻译自:
linux查看服务器温度
转载地址:http://lfowd.baihongyu.com/