使用WMI获取硬盘的SMART状态 [英] Using WMI to get SMART status of a hard disk

查看:673
本文介绍了使用WMI获取硬盘的SMART状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我创建的应用程序中,它使用WMI使用以下WMI对象获取驱动器的SMART状态:-

Win32_DiskDrive对象及其Status属性

我还检查了:-

MSStorageDriver_FailurePredictStatus
MSStorageDriver_FailurePredictData
MSStorageDriver_FailurePredictEvent
MSStorageDriver_FailurePredictFunction

现在我认为我的应用程序运行正常,并且所有驱动器的状态都为正常"

我现在发现要测试出现故障的Seagate硬盘,当它与任何SMART工具(如GSmartCtrl或HDD Guardian)一起运行时,它清楚地显示出多个问题(而且我知道它失败了,因为必须让数据恢复公司从中恢复文件!) - 下面 屏幕显示SMART显示的所有详细信息

所以我的问题是,为什么WMI返回的值在显然有问题的情况下对磁盘完全没有问题? -这是常见的事情吗?我最好不信任WMI来获取这些信息吗?

谢谢


Darren Rose

解决方案

磁盘制造商是否有磁盘为系统提供所需的信息,因此wmi提供所需的信息吗?

您知道gsmartctl或hdd监护人用于确定硬盘上显示信息的问题吗?如果可以的话,请使用他们的使用方式.

wmi仅询问信息.并不意味着制造商提供设备信息.许多wmi查询我的系统返回某类的很多属性的某些信息或不提供任何信息.看到wmi代码创建者观看发生的很多事情.


Hi

In an app I have created it uses WMI to get SMART status of a drive using the following WMI objects:-

Win32_DiskDrive object and its Status property

And I have also checked:-

MSStorageDriver_FailurePredictStatus
MSStorageDriver_FailurePredictData
MSStorageDriver_FailurePredictEvent
MSStorageDriver_FailurePredictFunction

Now I thought my app was working fine and picking up Status of OK for all drives

I have now found for testing a failed Seagate hard disk which when run with any SMART tool such as GSmartCtrl or HDD Guardian clearly shows multiple issues (and I know it has failed as had to get data recovery company to recover files from it!) - the below screen shows all the details SMART shows about it

So my question is why are the values returned by WMI showing NO problems at all with the disk, when clearly it has issues? - is this a common thing and am I better off just not trusting WMI for this information?

Thanks


Darren Rose

解决方案

does disk manufacturer have disk provide system with info you want so wmi provide info you ask for?

you know what gsmartctl or hdd guardian use for determining issue on hard disk an displaying info? if so use what they use.

wmi only ask for info. not mean manufacturer provide info for device. numerous wmi query my system return some or none info for lots of properties for a class. see wmi code creator to watch happen for numerous things.


这篇关于使用WMI获取硬盘的SMART状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆