计算机设备监控

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了计算机设备监控相关的知识,希望对你有一定的参考价值。

C#实现

using System.Management;

 

引用后就直接去查询了

string selectType = "Win32_PnPEntity";

ManagementObjectSearcher searcher = new ManagementObjectSearcher("select * from " + selectType ))

对查询对象遍历下就可以了

var infos = searcher.Get();
foreach (var temp in infos)
{
  //  temp.Properties["Name"].Value.ToString();

}

当然了,一些判断还是要加上的,非空什么的。

闲来无事,可以写个小程序看看自己电脑的设备信息

用上面 的 selectType 改为

Win32_Processor // CPU 
Win32_PhysicalMemory // 内存条
Win32_DisplayConfiguration

玩游戏的时候 人家检测设备 就是这么实现滴~~~

后续再补~~

 

以上是关于计算机设备监控的主要内容,如果未能解决你的问题,请参考以下文章

基于边缘计算网关的工业设备远程监控系统

机房监控系统解说—汇智篇

机房监控系统解说--费用篇

什么是机房环境监控

机房环境监控系统知识大揭秘

计算机网络基础 — 网络设备转发原理