linux小工具杂记

lm_sensors

通过lm_sensors工具可以显示传感器数据,但是不同设备传感器配置也不同,如果传感器比较完备可能获取到风扇转速、温度和功率数值,如果没有的话自然没有数值

安装

探测传感器

复制代码
yum install -y lm_sensors

使用

复制代码
sensors-detect

显示结果例如:

复制代码
# sensors-detect revision 3.4.0-8 (2016-06-01)
# System: Centerm C92 [1*V1.*]
# Kernel: 3.10.0-1160.el7.x86_64 x86_64
# Processor: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz (6/55/8)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): YES
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 16h thermal sensors...                           No
AMD Family 17h thermal sensors...                           No
AMD Family 15h power sensors...                             No
AMD Family 16h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
Intel 5500/5520/X58 thermal sensor...                       No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

sensors

本机只有温度传感器,结果如下:

复制代码
acpitz-virtual-0
Adapter: Virtual device
temp1:        +26.8°C  (crit = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +21.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +21.0°C  (high = +105.0°C, crit = +105.0°C)
Core 2:       +23.0°C  (high = +105.0°C, crit = +105.0°C)
Core 3:       +23.0°C  (high = +105.0°C, crit = +105.0°C)
相关推荐
Decay__几秒前
附-01 · MySQL 压测与容量规划 —— sysbench 基准测试、容量评估与参数基线
运维·数据库·sql·mysql·架构
mennekes18 分钟前
暗装插座箱 VS 明装插座箱,工地和车间怎么取舍
运维·网络·科技·安全·制造
叼烟扛炮18 分钟前
Linux 学习笔记(三十六):并发进阶——读写锁 vs 自旋锁,到底怎么选?
linux·运维·服务器·笔记·学习
正经教主25 分钟前
【FDE系列】阶段2:Day 43(UP详细版):Docker Compose — 多容器一键编排
运维·docker·容器
大耳朵爱学习35 分钟前
Andrew Ng深度解析:普通人如何利用AI把想法变成工具,实现工作自动化(小白程序员必看)
运维·人工智能·ai·自动化·大模型·就业·大模型学习
木雷坞35 分钟前
AnythingLLM Docker部署:中文资料上传后无引用的检查路径
运维·docker·容器
张赐荣36 分钟前
争渡读屏OCR文字/图像识别插件接口功能实现详解
运维·服务器·ocr
bu_shuo41 分钟前
删除Windows资源管理器左侧【此电脑】的Linux企鹅图标
linux·windows
步行cgn42 分钟前
Spring MVC 删除功能:用隐藏表单模拟 DELETE 请求的完整解析
linux·运维·服务器
润滑卫士1 小时前
工业油液在线监测系统架构:传感网络、数据采集与通讯协议设计
运维