Laddie Michael C Zarsuelo/adtxp wrote:
I'm quite new to Linux and I need to create a monitoring program for our
SATA hdd's.  I have to be able to send smart status commands to the drive.
Is there a way to do this? I tried the HDIO_DRIVE_CMD in IOCTL but it wont
work.  Is there a library function header file that I can include in my
program so that I can access the libata functions and its variables?

Look into smartmontools at http://smartmontools.sf.net/ It's both a monitoring daemon (smartd) and a command line utility program (smartctl). It uses a combination of ioctls including HDIO_DRIVE_CMD, HDIO_DRIVE_TASK, and HDIO_DRIVE_TASKFILE if I remember correctly.


BR
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to