监测硬件有没有被正确识别以及监控
首先是CPU型号线程数和主频
可以直接查看cpuinfo文件
cat /proc/cpuinfo
由于比较多所以过滤处理一下
[[email protected] ~]# cat /proc/cpuinfo|grep name|awk -F ‘:‘ ‘{print$2}‘|uniq -c 2 Intel(R) Atom(TM) CPU D425 @ 1.80GHz
可以看到主频 型号和线程数
内存
同理可产看meminfo文件 只看总量和可用的话只需要取前两行
[[email protected] ~]# cat /proc/meminfo |head -2 MemTotal: 1912344 kB MemFree: 1804808 kB
或者直接 free -m
[[email protected] ~]# free -m total used free shared buffers cached Mem: 1867 102 1765 0 6 28 -/+ buffers/cache: 67 1800 Swap: 1999 0 1999
这里也可以看到交换的使用情况
物理硬盘
可以使用 fdisk -l
[[email protected] ~]# fdisk -l Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xbf4fbf4f Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 26 281 2048000 82 Linux swap / Solaris Partition 2 does not end on cylinder boundary. /dev/sda3 281 9730 75896832 83 Linux
可以看到硬盘和分区信息
显卡
显卡的话其实不重要了不过可以用lspci看到
[[email protected] ~]# lspci | grep "VGA" 00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller
同理这个命令可以看到主板设备和pci pcie设备 包括网卡声卡储存控制器等等
[[email protected] ~]# lspci 00:00.0 Host bridge: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx DMI Bridge 00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller 00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02) 00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 02) 00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02) 00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02) 00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02) 00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02) 00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02) 00:1f.2 SATA controller: Intel Corporation NM10/ICH7 Family SATA Controller [AHCI mode] (rev 02) 00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 02)
最后温度的话可以使用lm_sensors查看
首先安装
yum install lm_sensors -y
然后第一次运行要先检测主板的传感器
[[email protected] ~]# sensors-detect
一路yes就行了 检测完之后会自动配置
之后执行sensors命令就能查看温度电压以及风扇转速信息了
[[email protected] ~]# sensors coretemp-isa-0000 Adapter: ISA adapter Core 0: +51.0°C (crit = +100.0°C) it8712-isa-0a10 Adapter: ISA adapter in0: +1.02 V (min = +0.00 V, max = +4.08 V) ALARM in1: +1.63 V (min = +0.00 V, max = +4.08 V) ALARM in2: +3.34 V (min = +0.00 V, max = +4.08 V) ALARM in3: +2.90 V (min = +0.00 V, max = +4.08 V) ALARM in4: +3.01 V (min = +0.00 V, max = +4.08 V) ALARM in5: +1.49 V (min = +0.00 V, max = +4.08 V) ALARM in6: +1.04 V (min = +0.00 V, max = +4.08 V) ALARM in7: +2.91 V (min = +0.00 V, max = +4.08 V) ALARM Vbat: +3.17 V fan1: 0 RPM (min = 0 RPM) fan2: 0 RPM (min = 0 RPM) fan3: 0 RPM (min = 0 RPM) temp1: +26.0°C (low = -1.0°C, high = +127.0°C) ALARM sensor = thermal diode temp2: -128.0°C (low = -1.0°C, high = +127.0°C) sensor = disabled temp3: +116.0°C (low = -1.0°C, high = +127.0°C) ALARM sensor = thermal diode cpu0_vid: +2.050 V
时间: 2024-11-02 10:51:56