how to use scsi_id command with its examples

The scsi_id command retrieves the unique SCSI identifier (SCSI ID) of a SCSI device attached to the server. SCSI ID is a unique identifier assigned to a SCSI device by the controller, which is used to differentiate the device.

  • About  scsi_id: To retrieve and generate a unique SCSI identifier
  • Comes From : udev-147
  • Configuration Files:
  • Path: /sbin/scsi_id

Examples:

1. To retrieve and generate a unique SCSI identifier

$ scsi_id

 2. To Send SG_IO commands to device

$ scsi_id –device=device /dev/sdc 

3. To treat the device as black listed, and do nothing unless a white listed device is found

$ scsi_id –blacklisted

 4. To read configuration  and  black/white  list  entries  from  config-file

$ scsi_id –config=config-file

 5. To treat the device as white listed

$ scsi_id –whitelisted

 6. To use SCSI INQUIRY VPD page code 0x80, 0x83, or pre-spc3-83

$ scsi_id –page=0x80|0x83|pre-spc3-83

 7. To reformat the output

$ scsi_id –replace-whitespace

 8. To export all data in KEY= format used to import in other programs

$ scsi_id –export

 9. To generate verbose debugging output

$ scsi_id –verbose

 10. To display the version

$ scsi_id –version 

Related Commands: udev 

Leave a Reply

Your email address will not be published. Required fields are marked *