ProLiant Servers (ML,DL,SL)
1819648 Members
2708 Online
109605 Solutions
New Discussion юеВ

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 3
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



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
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