CmdID

CmdID / Commands

sg_raw

Send arbitrary SCSI command to a connected device. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Send a command to an optical SCSI device assigned to sr0 to load the media in its tray

sg_raw /dev/sr0 EA 00 00 00 00 01Identify

Read data from IFILE instead of stdin

sg_raw --infile path/to/IFILE /dev/sgX scsi_commandIdentify

Skip the first LEN bytes of input data

sg_raw --skip LEN /dev/sgX scsi_commandIdentify

Read SLEN bytes of data and send to the device

sg_raw --send SLEN /dev/sgX scsi_commandIdentify

Wait up to SEC seconds for sg_raw to finish processing

sg_raw --timeout SEC /dev/sgX scsi_commandIdentify

Increase verbosity level by 1

sg_raw --verbose /dev/sgX scsi_commandIdentify

Dump returned data in binary form

sg_raw --binary /dev/sgX scsi_commandIdentify

Write data received from the specified device to an OFILE

sg_raw --outfile path/to/OFILE /dev/sgX scsi_commandIdentify