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

root\HPQ namespace question (Script)

 
SOLVED
Go to solution
Ryan210
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.

3 REPLIES
Suman_1978
HPE Pro

Re: root\HPQ namespace question (Script)

Hi,

 

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
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02777114/c02777114.pdf
Refer to page# 272


HP Insight Management WBEM Providers 2.7 for Linux on HP ProLiant and Integrity Servers
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02471043/c02471043.pdf
Refer to page# 243

Ryan210
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.

Ryan210
Occasional Advisor
Solution

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)
Next