I'm using WMI to gather stats on some of our servers, and I'm trying to get details of the physical disks that are installed in each server.
The servers are various Dell PowerEdge models. Windows' built-in providers is reporting on the RAID volumes and the logical partitions, but I can't find any way to report on what the actual physical drives installed in the server are (presumably because Windows can only see as far as the RAID volumes being presented by the controller, and has no information about what's going on underneath that layer)
Is there a Dell RAID WMI provider I can install for this, or something else I can do to gather these stats?
You should be able to expose information about physical disks via SNMP with OpenManage:
http://support.dell.com/support/edocs/software/svradmin/5.3/en/snmp/html/snmpc23.htm#wp1052197
I would like to know this too - I want to get the 'State' field as reported in the OpenManage Server Administrator (especially when 'Degraded').
The Win32_* and the Dell_* WMI classes do not seem to give this level of detail.
The only method I know is to use the omreport.exe utility
Dell Open manager must be installed for this one to work.
get-wmiobject DELL_CMApplication -namespace root\cimv2\dell -computer COMPUTERNAME | select-object Name | where-object {$_ -notlike "driver"}
I'm assuming that you're calling Win32LogicalDisk
Check out Win32_DiskDrive, Win32_DiskDriveToDiskPartition, Win32_PhysicalMedia (in what I perceive as decreasing usefulness...). I'm on HP servers, so YMMV. (You could also try Win32_LogicalDiskToPartition)
Failing all of this, try ScriptomaticV2 from the Microsoft Scripting Guys to browse WMI.