Re: SATA/SAS commands

From: Warner Losh <imp_at_bsdimp.com>
Date: Wed, 04 Aug 2021 19:19:19 UTC
On Wed, Aug 4, 2021 at 1:10 PM joe mcguckin <joe@via.net> wrote:

> Is there a tool that allows sending bare scsi commands to a drive? For
> example, if I wanted to activate the drive’s erase or format  feature or
> pull logs, etc.
> Or, is there something close enough that I could modify?
>

camcontrol cmd is what I usually use, but it's quite low level. I've used
it to write shell scripts to pull logs from $VENDOR.
But sg3_utils makes most things a lot easier if you're pulling a standard
log.

Warner