diff options
Diffstat (limited to 'inhex')
-rw-r--r-- | inhex/README | 50 | ||||
-rw-r--r-- | inhex/get_elem_status.hex | 35 | ||||
-rw-r--r-- | inhex/get_lba_status.hex | 14 | ||||
-rw-r--r-- | inhex/ses_areca_all.hex | 186 | ||||
-rw-r--r-- | inhex/vpd_consistuents.hex | 38 | ||||
-rw-r--r-- | inhex/vpd_dev_id.hex | 5 | ||||
-rw-r--r-- | inhex/vpd_lbpro.hex | 4 | ||||
-rw-r--r-- | inhex/vpd_sfs.hex | 3 |
8 files changed, 335 insertions, 0 deletions
diff --git a/inhex/README b/inhex/README new file mode 100644 index 00000000..d7654665 --- /dev/null +++ b/inhex/README @@ -0,0 +1,50 @@ + Hex data for various sg3_utils utilities + ======================================== + +The files in this folder contain hexadecimal data (in ASCII) and associated +comments (prefixed with the hash mark symbol ('#')). + +The utility that each hex file is associated with can be determined by +prepending "sg_" to these filenames then going to the 'src' folder (a +sibling folder to this one) and look for a match or partial match on +the name. + +For example: + vpd_dev_id.hex +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. + +Assuming sg3_utils is installed, it can be tested like this: + sg_vpd --inhex=<folder_holding_sg3_utils>/inhex/vpd_dev_id.hex + +And should output this: + +Device Identification VPD page: + Addressed logical unit: + designator type: NAA, code set: Binary + 0x5000c5003011cb2b + Target port: + designator type: NAA, code set: Binary + transport: Serial Attached SCSI Protocol (SPL-4) + 0x5000c5003011cb29 + designator type: Relative target port, code set: Binary + transport: Serial Attached SCSI Protocol (SPL-4) + Relative target port: 0x1 + Target device that contains addressed lu: + designator type: NAA, code set: Binary + transport: Serial Attached SCSI Protocol (SPL-4) + 0x5000c5003011cb28 + designator type: SCSI name string, code set: UTF-8 + SCSI name string: + naa.5000C5003011CB28 + + +Users are encouraged to send the author any ASCII hex files for utilities +that support --inhex and don't have hex data already. Special cases are +also welcome. They help the author test this code. + +Douglas Gilbert +28th August 2019 diff --git a/inhex/get_elem_status.hex b/inhex/get_elem_status.hex new file mode 100644 index 00000000..7db83c81 --- /dev/null +++ b/inhex/get_elem_status.hex @@ -0,0 +1,35 @@ +# To test sg_get_elem_status with dummy response to the SCSI +# GET PHYSICAL ELEMENT SATUS command + +0 0 0 4 +0 0 0 2 +0 0 0 2 + +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 + +# first descriptor +0 0 0 0 +0 0 0 1 + +0 0 0 0 0 +0 +1 +2c +0 0 0 0 11 22 33 0 + +0 0 0 0 0 0 0 0 + +# second descriptor +0 0 0 0 +0 0 0 2 + +0 0 0 0 0 +1 +1 +fe +ff ff ff ff ff ff ff ff + +0 0 0 0 0 0 0 0 + + + diff --git a/inhex/get_lba_status.hex b/inhex/get_lba_status.hex new file mode 100644 index 00000000..97934fa6 --- /dev/null +++ b/inhex/get_lba_status.hex @@ -0,0 +1,14 @@ + + +0 0 0 24 +0 0 0 6 + +0 0 0 0 0 0 0 0 +11 22 33 0 + +0 0 0 0 + +0 0 0 0 11 22 33 0 +0 0 0 44 + +1 1 0 0 diff --git a/inhex/ses_areca_all.hex b/inhex/ses_areca_all.hex new file mode 100644 index 00000000..96e3e46a --- /dev/null +++ b/inhex/ses_areca_all.hex @@ -0,0 +1,186 @@ + +# Supported Diagnostic Pages dpage: +00 00 00 0b 00 01 02 04 05 07 0a 0d 0e 0f 3f + +# Configuration (SES) dpage: +01 00 01 28 00 00 00 00 11 00 09 2c d5 b4 01 50 +3f c0 ec 16 41 72 65 63 61 20 20 20 41 52 43 2d +38 30 32 38 30 31 2e 33 33 2e 36 33 30 31 33 33 +11 22 33 44 55 00 00 00 17 18 00 18 0e 01 00 1c +18 01 00 0c 03 05 00 1a 04 02 00 17 12 02 00 1a +19 03 00 16 02 02 00 17 06 01 00 18 41 72 72 61 +79 44 65 76 69 63 65 73 49 6e 53 75 62 45 6e 63 +6c 73 72 30 45 6e 63 6c 6f 73 75 72 65 45 6c 65 +6d 65 6e 74 49 6e 53 75 62 45 6e 63 6c 73 72 30 +53 41 53 20 45 78 70 61 6e 64 65 72 43 6f 6f 6c +69 6e 67 45 6c 65 6d 65 6e 74 49 6e 53 75 62 45 +6e 63 6c 73 72 30 54 65 6d 70 53 65 6e 73 6f 72 +73 49 6e 53 75 62 45 6e 63 6c 73 72 30 56 6f 6c +74 61 67 65 53 65 6e 73 6f 72 73 49 6e 53 75 62 +45 6e 63 6c 73 72 30 43 6f 6e 6e 65 63 74 6f 72 +73 49 6e 53 75 62 45 6e 63 6c 73 72 30 50 6f 77 +65 72 53 75 70 70 6c 79 49 6e 53 75 62 45 6e 63 +6c 73 72 30 41 75 64 69 62 6c 65 41 6c 61 72 6d +49 6e 53 75 62 45 6e 63 6c 73 72 30 + +# Enclosure Status (SES) dpage: +02 02 00 cc 00 00 00 00 00 00 00 00 05 00 00 00 +05 00 00 00 05 00 00 00 05 00 00 00 05 00 00 00 +05 00 00 00 05 00 00 00 05 00 00 00 05 00 00 00 +05 00 00 00 05 00 00 00 05 00 00 00 05 00 00 00 +05 00 00 00 05 00 00 00 05 00 00 00 05 00 00 00 +05 00 00 00 01 00 00 00 05 00 00 00 05 00 00 00 +05 00 00 00 05 00 00 00 05 00 00 00 00 00 00 00 +01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 +05 00 00 10 05 00 00 10 05 00 00 10 05 00 00 10 +01 02 ee 07 00 00 00 00 01 00 45 00 01 00 56 00 +00 00 00 00 01 00 00 5e 01 00 00 b4 00 00 00 00 +01 05 00 00 01 05 00 00 01 05 00 00 00 00 00 00 +05 00 00 20 05 00 00 20 00 00 00 00 01 00 00 00 + +# String In (SES) dpage: +04 00 00 2e 57 65 20 68 61 76 65 20 69 6d 70 6c +65 6d 65 6e 74 65 64 20 53 74 72 69 6e 67 20 49 +6e 20 44 69 61 67 6e 6f 73 74 69 63 20 50 61 67 +65 00 + +# Threshold In (SES) dpage: +05 00 00 c4 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 63 50 19 14 73 6e 19 14 +00 00 00 00 82 7f 70 6d 7a 77 69 66 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 + +# Element Descriptor (SES) dpage: +07 00 03 0e 00 00 00 00 00 00 00 18 41 72 72 61 +79 44 65 76 69 63 65 73 49 6e 53 75 62 45 6e 63 +6c 73 72 30 00 00 00 08 53 4c 4f 54 20 30 31 00 +00 00 00 08 53 4c 4f 54 20 30 32 00 00 00 00 08 +53 4c 4f 54 20 30 33 00 00 00 00 08 53 4c 4f 54 +20 30 34 00 00 00 00 08 53 4c 4f 54 20 30 35 00 +00 00 00 08 53 4c 4f 54 20 30 36 00 00 00 00 08 +53 4c 4f 54 20 30 37 00 00 00 00 08 53 4c 4f 54 +20 30 38 00 00 00 00 08 53 4c 4f 54 20 30 39 00 +00 00 00 08 53 4c 4f 54 20 31 30 00 00 00 00 08 +53 4c 4f 54 20 31 31 00 00 00 00 08 53 4c 4f 54 +20 31 32 00 00 00 00 08 53 4c 4f 54 20 31 33 00 +00 00 00 08 53 4c 4f 54 20 31 34 00 00 00 00 08 +53 4c 4f 54 20 31 35 00 00 00 00 08 53 4c 4f 54 +20 31 36 00 00 00 00 08 53 4c 4f 54 20 31 37 00 +00 00 00 08 53 4c 4f 54 20 31 38 00 00 00 00 08 +53 4c 4f 54 20 31 39 00 00 00 00 08 53 4c 4f 54 +20 32 30 00 00 00 00 08 53 4c 4f 54 20 32 31 00 +00 00 00 08 53 4c 4f 54 20 32 32 00 00 00 00 08 +53 4c 4f 54 20 32 33 00 00 00 00 08 53 4c 4f 54 +20 32 34 00 00 00 00 1c 45 6e 63 6c 6f 73 75 72 +65 45 6c 65 6d 65 6e 74 49 6e 53 75 62 45 6e 63 +6c 73 72 30 00 00 00 12 45 6e 63 6c 6f 73 75 72 +65 45 6c 65 6d 65 6e 74 30 31 00 00 00 0c 53 41 +53 20 45 78 70 61 6e 64 65 72 00 00 00 09 45 78 +70 61 6e 64 65 72 30 00 00 00 1a 43 6f 6f 6c 69 +6e 67 45 6c 65 6d 65 6e 74 49 6e 53 75 62 45 6e +63 6c 73 72 30 00 00 00 07 46 61 6e 20 30 31 00 +00 00 00 07 46 61 6e 20 30 32 00 00 00 00 07 46 +61 6e 20 30 33 00 00 00 00 07 46 61 6e 20 30 34 +00 00 00 00 07 43 50 55 46 61 6e 00 00 00 00 17 +54 65 6d 70 53 65 6e 73 6f 72 73 49 6e 53 75 62 +45 6e 63 6c 73 72 30 00 00 00 0c 45 4e 43 2e 20 +54 65 6d 70 20 20 00 00 00 00 0c 43 68 69 70 20 +54 65 6d 70 20 20 00 00 00 00 1a 56 6f 6c 74 61 +67 65 53 65 6e 73 6f 72 73 49 6e 53 75 62 45 6e +63 6c 73 72 30 00 00 00 07 30 2e 39 35 56 20 00 +00 00 00 07 31 2e 38 56 20 20 00 00 00 00 16 43 +6f 6e 6e 65 63 74 6f 72 73 49 6e 53 75 62 45 6e +63 6c 73 72 30 00 00 00 0c 43 6f 6e 6e 65 63 74 +6f 72 30 30 00 00 00 00 0c 43 6f 6e 6e 65 63 74 +6f 72 30 31 00 00 00 00 0c 43 6f 6e 6e 65 63 74 +6f 72 30 32 00 00 00 00 17 50 6f 77 65 72 53 75 +70 70 6c 79 49 6e 53 75 62 45 6e 63 6c 73 72 30 +00 00 00 0e 50 6f 77 65 72 53 75 70 70 6c 79 30 +31 00 00 00 00 0e 50 6f 77 65 72 53 75 70 70 6c +79 30 32 00 00 00 00 18 41 75 64 69 62 6c 65 41 +6c 61 72 6d 49 6e 53 75 62 45 6e 63 6c 73 72 30 +00 00 00 0e 41 75 64 69 62 6c 65 2d 41 6c 61 72 +6d 00 + +# Additional Element Status (SES-2) dpage: +0a 00 03 bc 00 00 00 00 16 22 00 00 01 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 16 22 00 01 +01 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +16 22 00 02 01 00 00 02 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 16 22 00 03 01 00 00 03 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 16 22 00 04 01 00 00 04 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 16 22 00 05 +01 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +16 22 00 06 01 00 00 06 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 16 22 00 07 01 00 00 07 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 16 22 00 08 01 00 00 08 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 16 22 00 09 +01 00 00 09 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +16 22 00 0a 01 00 00 0a 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 16 22 00 0b 01 00 00 0b 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 16 22 00 0c 01 00 00 0c +20 00 00 02 50 01 b4 d5 16 ec c0 3f 50 01 51 7e +85 c3 ef ff 14 00 00 00 00 00 00 00 16 22 00 0d +01 00 00 0d 20 00 00 02 50 01 b4 d5 16 ec c0 3f +50 01 51 7e 85 c3 ef ff 15 00 00 00 00 00 00 00 +16 22 00 0e 01 00 00 0e 20 00 00 02 50 01 b4 d5 +16 ec c0 3f 50 01 51 7e 85 c3 ef ff 16 00 00 00 +00 00 00 00 16 22 00 0f 01 00 00 0f 20 00 00 02 +50 01 b4 d5 16 ec c0 3f 50 01 51 7e 85 c3 ef ff +17 00 00 00 00 00 00 00 16 22 00 10 01 00 00 10 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 16 22 00 11 +01 00 00 11 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +16 22 00 12 01 00 00 12 10 00 00 08 50 01 b4 d5 +16 ec c0 3f 50 00 c5 00 30 11 cb 29 00 00 00 00 +00 00 00 00 16 22 00 13 01 00 00 13 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 16 22 00 14 01 00 00 14 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 16 22 00 15 +01 00 00 15 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +16 22 00 16 01 00 00 16 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 16 22 00 17 01 00 00 17 00 00 00 00 +00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 +00 00 00 00 00 00 00 00 16 56 00 00 24 40 00 00 +50 01 b4 d5 16 ec c0 3f ff 0d ff 0c ff 0e ff 0f +ff 09 ff 08 ff 0a ff 0b ff 05 ff 04 ff 06 ff 07 +ff 01 ff 00 ff 02 ff 03 02 ff 02 ff 02 ff 02 ff +01 ff 01 ff 01 ff 01 ff 00 ff 00 ff 00 ff 00 ff +ff 11 ff 10 ff 12 ff 13 ff 15 ff 14 ff 16 ff 17 + +# Supported SES Diagnostic Pages (SES-2) dpage: +0d 00 00 0c 01 02 04 05 07 0a 0d 0e 0f 00 00 00 + +# Download Microcode (SES-2) dpage: +0e 00 00 14 00 00 00 00 00 00 00 00 00 10 00 00 +00 00 00 00 00 00 00 00 + +# Subenclosure Nickname (SES-2) dpage: +0f 00 00 2c 00 00 00 00 00 00 00 00 00 00 00 00 +45 76 61 6c 20 42 6f 61 72 64 20 4e 69 63 6b 6e +61 6d 65 20 53 69 6d 75 6c 61 74 6f 72 20 20 20 diff --git a/inhex/vpd_consistuents.hex b/inhex/vpd_consistuents.hex new file mode 100644 index 00000000..57fbb7cc --- /dev/null +++ b/inhex/vpd_consistuents.hex @@ -0,0 +1,38 @@ +00 8b 00 c6 + +00 03 00 00 + +41 42 43 44 20 20 00 00 +41 42 43 44 45 46 47 48 41 42 43 44 44 44 44 44 +30 31 32 33 + +00 00 00 2e + +01 00 00 14 + +01 b5 00 10 00 00 00 00 +03 01 20 e0 +07 02 10 80 00 00 00 00 + +01 00 00 12 + +00 92 00 0e 00 00 00 00 +00 01 01 01 01 02 02 01 +09 09 + + +00 03 00 00 + +53 45 41 47 41 54 45 20 +53 54 32 30 30 46 4d 30 30 37 33 20 20 20 20 20 +30 30 30 37 + +00 00 00 50 + +01 00 00 4c + +00 83 00 48 01 03 00 08 50 00 c5 00 30 11 cb 2b +61 93 00 08 50 00 c5 00 30 11 cb 29 61 94 00 04 +00 00 00 01 61 a3 00 08 50 00 c5 00 30 11 cb 28 +03 28 00 18 6e 61 61 2e 35 30 30 30 43 35 30 30 +33 30 31 31 43 42 32 38 00 00 00 00 diff --git a/inhex/vpd_dev_id.hex b/inhex/vpd_dev_id.hex new file mode 100644 index 00000000..073e87df --- /dev/null +++ b/inhex/vpd_dev_id.hex @@ -0,0 +1,5 @@ +00 83 00 48 01 03 00 08 50 00 c5 00 30 11 cb 2b +61 93 00 08 50 00 c5 00 30 11 cb 29 61 94 00 04 +00 00 00 01 61 a3 00 08 50 00 c5 00 30 11 cb 28 +03 28 00 18 6e 61 61 2e 35 30 30 30 43 35 30 30 +33 30 31 31 43 42 32 38 00 00 00 00 diff --git a/inhex/vpd_lbpro.hex b/inhex/vpd_lbpro.hex new file mode 100644 index 00000000..639e74bd --- /dev/null +++ b/inhex/vpd_lbpro.hex @@ -0,0 +1,4 @@ + +01 b5 00 10 00 00 00 00 +03 01 20 e0 +07 02 10 80 00 00 00 00 diff --git a/inhex/vpd_sfs.hex b/inhex/vpd_sfs.hex new file mode 100644 index 00000000..b9d282f5 --- /dev/null +++ b/inhex/vpd_sfs.hex @@ -0,0 +1,3 @@ +00 92 00 0e 00 00 00 00 +00 01 01 01 01 02 02 01 +09 09 |