-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/22/2014 05:55 PM, Brice Goglin wrote: > Le 22/09/2014 23:28, Ralph Castain a écrit : >> >> I believe that is what we are requesting - and to be clear, Intel is >> proposing to develop and contribute this feature. We'd like to add >> attributes to the objects to record: >> >> * memory - the serial number and model number of the DIMMs >> >> * disks - serial, model, manufacturer and any other available info >> (sometimes they have spindle speed, for example) >> >> HWLOC already provides similar info for processors and mother boards, >> so it seemed a natural extension of current capabilities to provide it >> for other system elements. > > Disk vendor/model is easy to add from sysfs on Linux. I don't know where > to find the serial number. Spindle speed may require more than just > sysfs. Do you have more info on how to get these attributes? >
I know that udev gathers this information: # ll /sys/block/sda/bdi lrwxrwxrwx. 1 root root 0 Sep 23 09:33 /sys/block/sda/bdi -> ../../../../../../../../virtual/bdi/8:0 # grep SERIAL '/run/udev/data/b8:0' E:ID_SERIAL=SAMSUNG_MZ7TD256HAFV-000L9_S17LNSADC13325 E:ID_SERIAL_SHORT=S17LNSADC13325 So you could get it from udev or gather it the same way udev does. If you want to know how udev does it, I can research that. - --Guy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlQhhfsACgkQ0Bme0QyNhPSlNwCgt7Io0T60goabPNF5zEiOxgxM nckAnjsm2JMJOEP5p5/Sk9wyx/f4G9zX =2iEW -----END PGP SIGNATURE-----