All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brett Russ <russb@emc.com>
To: Laddie Michael C Zarsuelo/adtxp <lzarsuelo@adtx.com.ph>
Cc: jgarzik@pobox.com, linux-ide@vger.kernel.org
Subject: Re: sending commands to the SATA drive
Date: Wed, 20 Apr 2005 06:26:50 -0400	[thread overview]
Message-ID: <42662E6A.6030509@emc.com> (raw)
In-Reply-To: <OFC848C2D3.F3F922F3-ON48256FE8.002B7BD9@adtx.com.ph>

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

      parent reply	other threads:[~2005-04-20 10:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42662E6A.6030509@emc.com \
    --to=russb@emc.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=lzarsuelo@adtx.com.ph \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.