sg3_utils is a package of utilities for accessing devices that use SCSI command sets. Most utilities issue a single command and display the response, while some work at a slightly higher level. There are utilities for fetching INQUIRY data and VPD, mode, and log pages. There is support for modern SCSI transports such as SAS and FCP. The package is written for Linux and has been ported to FreeBSD, Solaris, Tru64, and Windows. There is an earlier version of this package for Linux 2.2 series kernels called sg_utils.
| Licenses | GPL |
|---|
Recent releases


Changes: This release tracks many changes in the SCSI drafts from www.t10.org since June 2008. It adds an sg_write_same utility that includes support for thin provisioning. Thin provisioning and larger sector size (than 512 bytes) capability has been added to several utilities. The Linux port now supports bsg devices. Several bugfixes and minor interface and library enhancements.


Changes: This release tracks changes to various www.t10.org drafts in the 8 months since the last release. It adds an sg_sat_phy_event utility to fetch and decode SATA phy statistics. There is library and utility cleanup, often putting large tables into separate files.


Changes: This release adds utilities to send the Set Target Port Groups command (sg_stpg), query a SAF-TE enclosure (sg_safte), and send an ATA SET FEATURES command via SAT. It adds sparse write logic to sg_dd. The build infrastructure has been changed to autotools, so in most cases the build becomes "./configure ; make". There are various other updates to track drafts from www.t10.org.


Changes: This release adds an sg_raw utility that allows users to pass through any SCSI command. It adds a Solaris port. Various utilities have been synchronized with most recent SCSI drafts.


Changes: This release adds utilities to support SCSI READ BUFFER and WRITE BUFFER commands. The latter can be used to upload firmware. It cleans up the command line interface of older utilities and reworks man pages. Support has been added for building with MinGW on Windows. The package now builds cleanly under C++ as well as its native C. It has been synchronized to SPC-4 revision 8.