Skip to content

Instantly share code, notes, and snippets.

@ymdysk
ymdysk / scsi-log-parser.rb
Created April 10, 2018 11:44 — forked from johnl/scsi-log-parser.rb
script to parse Linux scsi command logs
#!/usr/bin/ruby
# Parses linux scsi command logs
# http://www.seagate.com/staticfiles/support/disc/manuals/scsi/100293068a.pdf
# give this program itself as input to test
# DE AD BE EF == 3735928559
# CA FE == 51966
# CDB: Write(10): 2a 1A DE AD BE EF 1F CA FE 00
# CDB: Synchronize Cache(10): 35 06 DE AD BE EF 1F CA FE 00