It is currently Thu Sep 09, 2010 7:06 am

All times are UTC - 7 hours [ DST ]

Recent News:



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: WMI Experts! Help with 0x8004100C "not found" exception
PostPosted: Mon Jan 25, 2010 2:51 pm 
Offline
1.5TB storage
1.5TB storage
User avatar

Joined: Sun Jan 10, 2010 9:25 pm
Posts: 54
Location: Shelby Township, MI
Thanks: 13
Thanked: 19 times in 10 posts
Sorry if this isn't quite the "right" spot for this question, but it kind of covers several areas so it's not really a good fit in just one area.

I wrote an add-in, Home Server SMART, and some folks have been having a problem. They get an error message that says the WMI call failed with the error "not supported."

I decided to dig into this more deeply, and I wrote a small test application to simulate the various WMI calls, and I tested it against a variety of different computers and OSes...Server 2003, Server 2008, Vista, 7...x86 and x64.

Long story short, the WMI queries that are generating problems are all within the MSStorageDriver class, in the "root/wmi" namespace. The WMI classes I use are MSStorageDriver_ATAPISmartData, MSStorageDriver_FailurePredictThresholds and MSStorageDriver_FailurePredictStatus. On some of the computers, invoking a query against any of those, as well as the parent class, generates "not supported" 0x8004100C.

For example, if I run WBEMtest.exe on one computer, and issue the query "select * from MSStorageDriver_FailurePredictThresholds" I get several WMI objects back, but on others I get 0x8004100C. I can't seem to figure out why some of these machines generate the error and why some don't. The only consistent thing is that the error either appears all the time or not at all; in other words, the test app won't fail and then pass on the same machine.

I tested two machines with SATA RAID...one NVIDIA, one Intel. Each has standalone disks as well as RAID-1 volumes; both of those machines passed with flying colors. But on a Dell server with a Dell PERC 4 and a Compaq Smart Array 5300 RAID adapter, I got "not supported."

When you have a system with no devices with SMART capabilities, they simply don't present data in the storage driver; you would get NULL back, not an error. Even devices that don't return full SMART data still return something back via MSStorageDriver_FailurePredictStatus.

If you google the MSStorageDriver class and its subclasses, you will find it is VERY POORLY documented. Whereas Win32_DiskDrive, for instance, is beautifully documented by Microsoft, complete with the full set of properties and methods, and which OSes support them, the doco on MSStorageDriver is pretty much stuff other folks have pieced together. The error 0x8004100C is also pretty poorly documented, and I think in this case it may be a red herring.

You will probably stumble across a Microsoft hotfix for 0x8004100C for some Server 2003 builds. The English x86 build is NOT supported, plus there's no hotfix for Server 2008. So I'm guessing it's not a bug, so to speak, with the OS. But since my add-in relies on WMI, I need WMI to generate valid data.

I'm hoping there are some WMI experts out there who can shed some light on the subject, even if the light you shed is just a bit more on what the 0x8004100C error really means, other than its ambiguous "not supported."

Danke,
Matt

_________________
EX490
Intel E5300, 2 GB
4.5 TB Storage


Top
 Profile  
Thanks  

Attention Guest: Remove this ad by Registering with the MediaSmartServer.net Forums. It's Free!
 Post subject: Re: WMI Experts! Help with 0x8004100C "not found" exception
PostPosted: Mon Jan 25, 2010 3:12 pm 
Offline
1.5TB storage
1.5TB storage
User avatar

Joined: Sun Jan 10, 2010 9:25 pm
Posts: 54
Location: Shelby Township, MI
Thanks: 13
Thanked: 19 times in 10 posts
I've attached some PowerShell results, so you can see what WMI is spitting back. Not sure if this will provide much insight but I hope it'll help.

[EDIT] Sorry -- made a boo-boo with original "error" PowerShell graphic. I specified "class" and not "namespace." Anyhow, this is fixed now.

Danke,
Matt


Attachments:
File comment: WMI returned results as expected. OS: Server 2008 R2 x64
PowerShell_GoodWmi.PNG
PowerShell_GoodWmi.PNG [ 102.72 KiB | Viewed 190 times ]
File comment: WMI returned "not supported" error. OS: Server 2008 x64
PowerShell_Naughty2008.PNG
PowerShell_Naughty2008.PNG [ 14.57 KiB | Viewed 186 times ]

_________________
EX490
Intel E5300, 2 GB
4.5 TB Storage
Top
 Profile  
Thanks  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group