Batch File: Read H.D. [S.M.A.R.T] for failure prevention

ReneGe
ReneGe used Ask the Experts™
on
Hi there,

Has anyone made a batch file that will read the Hard Drive's S.M.A.R.T. infos and interpret them in order to predict H.D. failure?

The only thing a came up with so far, are 2 command lines that outputs a bunch of numbers:

WMIC /NAMESPACE:\\root\wmi PATH MSStorageDriver_FailurePredictThresholds
WMIC /NAMESPACE:\\root\wmi PATH MSStorageDriver_FailurePredictData

Please do not suggest a program that reads and display S.M.A.R.T. infos. I need a batch file.

Thanks for your help,
Rene
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
You can not do this by just using a batch file, it needs to call functions from a program.
Top Expert 2009
Commented:

Author

Commented:
Thanks for your comment. However, the two supplied command line reads S.M.A.R.T. infos

WMIC /NAMESPACE:\\root\wmi PATH MSStorageDriver_FailurePredictThresholds
WMIC /NAMESPACE:\\root\wmi PATH MSStorageDriver_FailurePredictData

So, since I can read them, their might be someone out there that did a batch file to interpret them.

Cheers,
Rene
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Top Expert 2009
Commented:
so basically you need string interpretation in batch files??

Author

Commented:
@hathehariken

Thanks for your links.

I need a batch file to interpret the output generated by a wmic command that reads S.M.A.R.T.

Thanks
Top Expert 2009
Commented:
ah! that seems to be doable

can you post the output here?
then i can tell you how to code the interpretation.

Author

Commented:
By running the command lines, you will get the output as s.m.a.r.t. is standard.

REF:
http://en.wikipedia.org/wiki/S.M.A.R.T.

Thanks,
Rene
Commented:
wmic.exe is a program.

Author

Commented:
@h4mi,

In case your comment is not humour, wmic.exe is as a program as ping.exe is; as it is part of Windows.

Cheers,
Rene
Ben Personick (Previously QCubed)Lead SaaS Infrastructure Engineer
Commented:
You can use WMI as you've suggested to read the info, however, what we need is a KEY to that info, if I knew the KEY then I could make a batch file which would perform as you requested.

Do you have any resources as to how to interpret those numbers?

Author

Commented:
@Q

Do you still feel like doing this?

If you feel it's a to complicated task let me know. I'll then split the points and just close it.

Thanks,
Rene

Author

Commented:
@Dhaest:

Could you please get the attention of experts on this one?

It's still not resolved.

Thanks and cheers,
Rene
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Commented:
Having said above, as Expert I doubt you will have any success with your question - the byte field retrieved is called "vendor specific" - guess why? You really need a lot of luck that anybody has taken the unreasonable effort to decode that byte stream in VBS, PowerShell or MS DOS for different vendors.

Author

Commented:
Thanks Q for your feedback.

I'll close it then, and split points.

Cheers,
Rene

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial