linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sending commands to the SATA drive
@ 2005-04-20  1:13 Laddie Michael C Zarsuelo/adtxp
  2005-04-20  8:05 ` David Greaves
  2005-04-20 10:26 ` Brett Russ
  0 siblings, 2 replies; 3+ messages in thread
From: Laddie Michael C Zarsuelo/adtxp @ 2005-04-20  1:13 UTC (permalink / raw)
  To: jgarzik, linux-ide

Greetings!

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?

regards,
Laddie Zarsuelo


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sending commands to the SATA drive
  2005-04-20  1:13 sending commands to the SATA drive Laddie Michael C Zarsuelo/adtxp
@ 2005-04-20  8:05 ` David Greaves
  2005-04-20 10:26 ` Brett Russ
  1 sibling, 0 replies; 3+ messages in thread
From: David Greaves @ 2005-04-20  8:05 UTC (permalink / raw)
  To: Laddie Michael C Zarsuelo/adtxp; +Cc: jgarzik, linux-ide

Laddie Michael C Zarsuelo/adtxp wrote:
> Greetings!
> 
> 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.

AFAIK this isn't yet supported in the released version of libata.
It is however in the dev version and in need of some testing.

Search the list archives for
* libata-dev
* ATA passthru (a.k.a. SMART) support

Look for messages Jeff Garzik and John W. Linville

HTH

David

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sending commands to the SATA drive
  2005-04-20  1:13 sending commands to the SATA drive Laddie Michael C Zarsuelo/adtxp
  2005-04-20  8:05 ` David Greaves
@ 2005-04-20 10:26 ` Brett Russ
  1 sibling, 0 replies; 3+ messages in thread
From: Brett Russ @ 2005-04-20 10:26 UTC (permalink / raw)
  To: Laddie Michael C Zarsuelo/adtxp; +Cc: jgarzik, linux-ide

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-20 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20  1:13 sending commands to the SATA drive Laddie Michael C Zarsuelo/adtxp
2005-04-20  8:05 ` David Greaves
2005-04-20 10:26 ` Brett Russ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).