Re: Get the hard disk hardware serial number

2009-06-04 Thread Paul Boddie
On 4 Jun, 11:29, Nick Craig-Wood wrote: > > For linux I'd run this and parse the results. > > # smartctl -i /dev/sda Also useful is hdparm, particularly with the drive identification and detailed information options shown respectively below: # hdparm -i /dev/sda # hdparm -I /dev/sda Paul -- ht

Re: Get the hard disk hardware serial number

2009-06-04 Thread Terry Reedy
Dietmar Schwertberger wrote: The WMI method is e.g. described here: http://www.velocityreviews.com/forums/t359670-wmi-help.html import wmi Not in the stdlib, but available here: http://pypi.python.org/pypi/WMI/1.3 and requires in turn pywin32: http://pypi.python.org/pypi/pywin32/210 c = wm

Re: Get the hard disk hardware serial number

2009-06-04 Thread Dietmar Schwertberger
MRAB schrieb: Jorge wrote: I need to know how to get the hardware serial number of a hard disk in python. For Windows, see http://www.daniweb.com/forums/thread187326.html This recipe uses the function GetVolumeInformation(), which does not return the hardware serial number. From the micros

Re: Get the hard disk hardware serial number

2009-06-04 Thread Nick Craig-Wood
MRAB wrote: > Jorge wrote: > > I need to know how to get the hardware serial number of a hard disk in > > python. > > > For Windows, see http://www.daniweb.com/forums/thread187326.html For linux I'd run this and parse the results. # smartctl -i /dev/sda smartctl version 5.38 [i686-pc-linux-g

Re: Get the hard disk hardware serial number

2009-06-03 Thread Terry Reedy
Jorge wrote: Hi there, I need to know how to get the hardware serial number of a hard disk in python. That will be system specific. One semi-general approacy using CPython would be to ask "How would I do this with C on this specific system" and then use ctypes. -- http://mail.python.org/

Re: Get the hard disk hardware serial number

2009-06-03 Thread MRAB
Jorge wrote: Hi there, I need to know how to get the hardware serial number of a hard disk in python. Thank you in advance. For Windows, see http://www.daniweb.com/forums/thread187326.html -- http://mail.python.org/mailman/listinfo/python-list

Get the hard disk hardware serial number

2009-06-03 Thread Jorge
Hi there, I need to know how to get the hardware serial number of a hard disk in python. Thank you in advance. -- http://mail.python.org/mailman/listinfo/python-list