Your company here — click to reach over 10,000 unique daily visitors

Package sg3_utils

Utilities for devices that use SCSI command sets


Collection of Linux utilities for devices that use the SCSI command set.
Includes utilities to copy data based on "dd" syntax and semantics (called
sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check
mode and log pages (sginfo, sg_modes and sg_logs); spin up and down
disks (sg_start); do self tests (sg_senddiag); and various other functions.
See the README, CHANGELOG and COVERAGE files. Requires the linux kernel 2.4
series or later. In the 2.4 series SCSI generic device names (e.g. /dev/sg0)
must be used. In the 2.6 series other device names may be used as
well (e.g. /dev/sda).

Warning: Some of these tools access the internals of your system
and the incorrect usage of them may render your system inoperable.

Version: 1.48

System Administration

rescan-scsi-bus.sh script to add and remove SCSI devices without rebooting
scsi-rescan alias for rescan-scsi-bus.sh
scsi_logging_level access Linux SCSI logging level information
scsi_mandat check SCSI device support for mandatory commands
scsi_readcap do SCSI READ CAPACITY command on disks
scsi_ready do SCSI TEST UNIT READY on devices
scsi_satl check SCSI to ATA Translation (SAT) device support
scsi_start start one or more SCSI disks
scsi_stop stop (spin down) one or more SCSI disks
scsi_temperature fetch the temperature of a SCSI device
sg3_utils a package of utilities for sending SCSI commands
sg3_utils_json JSON output for some sg3_utils utilities
sg_bg_ctl send SCSI BACKGROUND CONTROL command
sg_compare_and_write send the SCSI COMPARE AND WRITE command
sg_copy_results send SCSI RECEIVE COPY RESULTS command (XCOPY related)
sg_dd copy data to and from files and devices, especially SCSI devices
sg_decode_sense decode SCSI sense and related data
sg_emc_trespass change ownership of SCSI LUN from another Service-Processor to this one
sg_format format, format with preset, resize SCSI disk; format tape
sg_get_config send SCSI GET CONFIGURATION command (MMC-4 +)
sg_get_elem_status send SCSI GET PHYSICAL ELEMENT STATUS command
sg_get_lba_status send SCSI GET LBA STATUS(16 or 32) command
sg_inq issue SCSI INQUIRY command and/or decode its response
sg_logs access log pages with SCSI LOG SENSE command
sg_luns send SCSI REPORT LUNS command or decode given LUN
sg_map displays mapping between Linux sg and other SCSI devices
sg_map26 map SCSI generic (sg) device to corresponding device names
sg_modes reads mode pages with SCSI MODE SENSE command
sg_opcodes report supported SCSI commands or task management functions
sg_persist use SCSI PERSISTENT RESERVE command to access registrations and reservations
sg_raw send arbitrary SCSI or NVMe command to a device
sg_rbuf reads data using SCSI READ BUFFER command
sg_rdac display or modify SCSI RDAC Redundant Controller mode page
sg_read read multiple blocks of data, optionally with SCSI READ commands
sg_read_attr send SCSI READ ATTRIBUTE command
sg_read_block_limits send SCSI READ BLOCK LIMITS command
sg_read_buffer send SCSI READ BUFFER command
sg_read_long send a SCSI READ LONG command
sg_readcap send SCSI READ CAPACITY command
sg_reassign send SCSI REASSIGN BLOCKS command
sg_referrals send SCSI REPORT REFERRALS command
sg_rem_rest_elem send SCSI remove or restore element command
sg_rep_density send SCSI REPORT DENSITY SUPPORT command
sg_rep_zones send SCSI REPORT ZONES, REALMS or ZONE DOMAINS command
sg_requests send one or more SCSI REQUEST SENSE commands
sg_reset sends SCSI device, target, bus or host reset; or checks reset state
sg_reset_wp send SCSI RESET WRITE POINTER command
sg_rmsn send SCSI READ MEDIA SERIAL NUMBER command
sg_safte access SCSI Accessed Fault-Tolerant Enclosure (SAF-TE) device
sg_sanitize remove all user data from disk with SCSI SANITIZE command
sg_sat_datetime report or set date and time on a ATA device
sg_sat_identify send ATA IDENTIFY DEVICE command via SCSI to ATA Translation (SAT) layer
sg_sat_phy_event use ATA READ LOG EXT via a SAT pass-through to fetch SATA phy event counters
sg_sat_read_gplog use ATA READ LOG EXT or SMART READ LOG command via a SCSI to ATA Translation (SAT) layer
sg_sat_set_features use ATA SET FEATURES command via a SCSI to ATA Translation (SAT) layer
sg_scan scans sg devices (or SCSI/ATAPI/ATA devices) and prints results
sg_seek send SCSI SEEK, PRE-FETCH(10) or PRE-FETCH(16) command
sg_senddiag performs a SCSI SEND DIAGNOSTIC command
sg_ses access a SCSI Enclosure Services (SES) device
sg_ses_microcode send microcode to a SCSI enclosure
sg_start send SCSI START STOP UNIT command: start, stop, load or eject medium
sg_stpg send SCSI SET TARGET PORT GROUPS command
sg_stream_ctl send SCSI STREAM CONTROL or GET STREAM STATUS command
sg_sync send SCSI SYNCHRONIZE CACHE command
sg_test_rwbuf test a SCSI host adapter by issuing dummy writes and reads
sg_timestamp report or set timestamp on SCSI device
sg_turs send one or more SCSI TEST UNIT READY commands
sg_unmap send SCSI UNMAP command (known as 'trim' in ATA specs)
sg_verify invoke SCSI VERIFY command(s) on a block device
sg_vpd fetch SCSI VPD page and/or decode its response
sg_wr_mode write (modify) SCSI mode page
sg_write_attr send SCSI WRITE ATTRIBUTE command
sg_write_buffer send SCSI WRITE BUFFER commands
sg_write_long send SCSI WRITE LONG command
sg_write_same send SCSI WRITE SAME command
sg_write_verify send the SCSI WRITE AND VERIFY command
sg_xcopy copy data to and from files and devices using SCSI EXTENDED COPY (XCOPY)
sg_z_act_query send a SCSI ZONE ACTIVATE or ZONE QUERY command
sg_zone send a SCSI ZONE modifying command
sginfo access mode page information for a SCSI (or ATAPI) device
sgm_dd copy data to and from files and devices, especially SCSI devices
sgp_dd copy data to and from files and devices, especially SCSI devices