diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-03-09 15:52:27 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-03-09 15:52:27 +0000 |
commit | 6498c8fa92b6ecfce411679af47064a6fd80ff33 (patch) | |
tree | 3a9ff8d3f4117965d82fe9105949e23dae93a023 /inhex | |
parent | d4e94e36b445985f8618ed048c98787ad0edfdf1 (diff) | |
download | sg3_utils-6498c8fa92b6ecfce411679af47064a6fd80ff33.tar.gz |
sg_logs: add --exclude and --undefined options, improve 'last_n' log pages; add inhex/logs_last_n.hex
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@942 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'inhex')
-rw-r--r-- | inhex/README | 6 | ||||
-rw-r--r-- | inhex/inq_standard.hex | 4 | ||||
-rw-r--r-- | inhex/logs_last_n.hex | 41 |
3 files changed, 47 insertions, 4 deletions
diff --git a/inhex/README b/inhex/README index d1a50b19..ed2419ce 100644 --- a/inhex/README +++ b/inhex/README @@ -2,7 +2,9 @@ ======================================== The files in this folder contain hexadecimal data (in ASCII) and associated -comments (prefixed with the hash mark symbol: '#' ). +comments (prefixed with the hash mark symbol: '#' ). Files containing +hexadecimal data have the extension ".hex". There is at least one file +containing binary data and it has the extension ".raw". The utility that each hex file is associated with can be determined in most case by prepending "sg_" to these filenames. Then go to the 'src' folder (a @@ -15,7 +17,7 @@ after prepending 'sg_' becomes: sg_vpd_dev_id.hex which is a partial match on the sg_vpd utility. The remaining 'dev_id.hex' is meant to suggest the 'device identifier' -VPD page which is a mandatory VPD page. +VPD page which is a mandatory VPD page for SCSI devices.. Assuming sg3_utils is installed, it can be tested like this: sg_vpd --inhex=<folder_holding_sg3_utils>/inhex/vpd_dev_id.hex diff --git a/inhex/inq_standard.hex b/inhex/inq_standard.hex index 0c793fed..73c80f37 100644 --- a/inhex/inq_standard.hex +++ b/inhex/inq_standard.hex @@ -4,9 +4,9 @@ # SCSI INQUIRY command. # The response in this file can be decoded with: -# sg_inq --inhex=sg_inq_standard.hex +# sg_inq --inhex=inq_standard.hex # or -# sg_vpd --inhex=sg_inq_standard.hex --page=sinq +# sg_vpd --inhex=inq_standard.hex --page=sinq # # The sg_inq utility defaults to the 'standard' INQUIRY while the # sg_vpd utility defaults to the "Supported VPD pages" VPD page. diff --git a/inhex/logs_last_n.hex b/inhex/logs_last_n.hex new file mode 100644 index 00000000..b6384d17 --- /dev/null +++ b/inhex/logs_last_n.hex @@ -0,0 +1,41 @@ +# This file contains the ASCII hex of a SCSI LOG SENSE command responses +# for the various "Last n" log (sub)pages concaternated together. + +# The response in this file can be decoded with: +# sg_logs --inhex=logs_last_n.hex +# or +# sg_logs --inhex=logs_last_n.hex --brief +# or +# sg_logs --inhex=logs_last_n.hex --exclude + +# Last n mode page data changed log subpage +4b 02 00 28 +00 00 03 0c 00 00 00 04 00 00 00 02 00 00 00 01 +00 01 03 04 0a 00 00 00 +00 02 03 04 5a 01 00 00 +00 03 03 04 5c 02 00 00 + +# Last n INQUIRY data changed log subpage +4b 01 00 28 +00 00 03 0c 00 00 00 01 00 00 00 03 00 00 00 02 +00 01 03 04 00 00 00 00 +00 02 03 04 01 80 00 00 +00 03 03 04 01 83 00 00 + +# Last n deferred errors or asynchronous events log subpage +0b 00 00 5a +00 00 03 40 +73,0,0,0,0,0,0 38 +b,36,1,0 +0,0,0,2,11,11,11,11,22,22,22,22,55,55,55,55,66,66,66,66 1,0,0,7, 2,0,0,8 +0,0,0,1,77,77,77,77,77,77,77,77,88,88,88,88,88,88,88,88, 3,0,0,5 +00 01 03 12 +f1 00 03 00 00 12 34 0a 00 00 00 00 11 00 00 00 00 00 + +# Last n error events log page +07 00 00 31 +00 00 01 0c +6d 65 64 69 75 6d 20 65 72 72 6f 72 +00 01 01 1d +55 41 3a 20 63 61 70 61 63 69 74 79 20 64 61 74 +61 20 68 61 73 20 63 68 61 6e 67 65 64 |