ProLiant Servers (ML,DL,SL)
Showing results for 
Search instead for 
Did you mean: 

root\HPQ namespace question (Script)

Go to solution
Occasional Advisor

root\HPQ namespace question (Script)

I'm using the root\HPQ namespace in a script to get information off our servers, but I just can't seem to find a class that will allow me to get the size of the drives on the systems. Anyone have any idea of where to look? I've tried just about all of them I could find, but still not getting the information I need.


Re: root\HPQ namespace question (Script)



I was not sure where you are referring this CLASS or in which software, but I guess it would be WBEM, but for which OS?


Namespaces Supported by the Provider
This provider returns instances in the root/hpq namespace.

This provider supports the following classes:
• SMX_SAArraySystem
• SMX_SAArrayController
• SMX_SAStorageVolume
• SMX_SADiskDrive
• SMX_SAStorageExtent
• SMX_SADiskDriveFirmware
• SMX_SAPhysicalPackage


HP Insight Management WBEM Providers 2.8 for Windows Server 2003 and Windows Server 2008
Refer to page# 272

HP Insight Management WBEM Providers 2.7 for Linux on HP ProLiant and Integrity Servers
Refer to page# 243

Occasional Advisor

Re: root\HPQ namespace question (Script)

It is for Windows, but the problem is, as far as I can tell, none of those classes you pointed out have a disk size property.

Occasional Advisor

Re: root\HPQ namespace question (Script)

There doesn't seem to be a direct solution to the question, but more a combination of a few properties. In case anyone wants to know what I came up with.


Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20

strComputer = "."	

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\HPQ")	
Set colItems = objWMIService.ExecQuery("SELECT * FROM HPSA_StorageExtent", "WQL", _
               wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
	WScript.Echo Int(objItem.BlockSize * objItem.NumberofBlocks / 1000000000)