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