- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- root\HPQ namespace question (Script)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2012 03:54 PM
тАО01-11-2012 03:54 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2012 06:25 PM
тАО01-11-2012 06:25 PM
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]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2012 06:46 PM
тАО01-11-2012 06:46 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2012 07:09 PM
тАО01-11-2012 07:09 PM
SolutionThere 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