Re: [hwloc-users] Using hwloc to detect Hard Disks

2014-09-22 Thread Jeff Squyres (jsquyres)
On Aug 28, 2014, at 7:27 PM, Samuel Thibault  wrote:

>> I am not able to figure out how to read Hard drive details, for e.g.,
>> the content provided by hdparm application.
>> 
>> My first question is, is it possible to read this using hwloc? If yes, can
>> anyone direct me to the documentation which describes how to use it?
> 
> Well, hwloc's goal is to describe the hardware _locality_, not its
> precise content.  So we don't provide that level of detail, we only
> provide where the pieces of hardware reside.

Can you be a bit more specific about what information you want to query?

I ask because it strikes me that hwloc does gather some kinds of hardware 
information and put them as attributes on existing hwloc topology objects.

-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/



[hwloc-users] Using hwloc to detect Hard Disks

2014-08-28 Thread Pedaballe, Vineet
Hi,

I'm new to using hwloc, so please forgive my ignorance.

I'm trying to build an application that pretty much reads all individual 
components that are present in a system and list out their specific properties 
as well. Hwloc does read many of the parameters that my application needs to 
read, especially the base board and PCI devices but however I am not able to 
figure out how to read Hard drive details, for e.g., the content provided by 
hdparm application.

My first question is, is it possible to read this using hwloc? If yes, can 
anyone direct me to the documentation which describes how to use it?

Thank you for your help and support.

-Vineet