diff --git a/testdata/nvme-null-CT250P2SSD8-nvme0.json b/testdata/nvme-null-CT250P2SSD8-nvme0.json new file mode 100644 index 0000000..f589a48 --- /dev/null +++ b/testdata/nvme-null-CT250P2SSD8-nvme0.json @@ -0,0 +1,119 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "CT250P2SSD8", + "nvme_controller_id": 1, + "nvme_ieee_oui_identifier": 41077, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 488397168, + "bytes": 250059350016 + }, + "eui64": { + "ext_id": 391110459468, + "oui": 41077 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 488397168, + "bytes": 250059350016 + }, + "utilization": { + "blocks": 488397168, + "bytes": 250059350016 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 49321, + "subsystem_id": 49321 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 5, + "controller_busy_time": 1675, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 4932757, + "data_units_written": 1002900, + "host_reads": 38087906, + "host_writes": 29940645, + "media_errors": 0, + "num_err_log_entries": 1, + "percentage_used": 0, + "power_cycles": 8, + "power_on_hours": 10147, + "temperature": 26, + "temperature_sensors": [ + 40 + ], + "unsafe_shutdowns": 5, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 250059350016, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.3", + "value": 66304 + }, + "power_cycle_count": 8, + "power_on_time": { + "hours": 10147 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "user_capacity": { + "blocks": 488397168, + "bytes": 250059350016 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-HUSMR7632BHP301-nvme0.json b/testdata/nvme-null-HUSMR7632BHP301-nvme0.json new file mode 100644 index 0000000..550fa5e --- /dev/null +++ b/testdata/nvme-null-HUSMR7632BHP301-nvme0.json @@ -0,0 +1,88 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "HUSMR7632BHP301", + "nvme_controller_id": 35, + "nvme_ieee_oui_identifier": 3274, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 7256, + "subsystem_id": 7256 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 1184621, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 790641770, + "data_units_written": 2824080560, + "host_reads": 9757701763, + "host_writes": 40892765082, + "media_errors": 0, + "num_err_log_entries": 34, + "percentage_used": 5, + "power_cycles": 53, + "power_on_hours": 482, + "temperature": 40, + "temperature_sensors": [ + 40, + 32, + 36, + 38 + ], + "unsafe_shutdowns": 29, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3204045602816, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 53, + "power_on_time": { + "hours": 482 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 40 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_MEMPEK1W032GA-nvme0.json b/testdata/nvme-null-INTEL_MEMPEK1W032GA-nvme0.json new file mode 100644 index 0000000..3a47b02 --- /dev/null +++ b/testdata/nvme-null-INTEL_MEMPEK1W032GA-nvme0.json @@ -0,0 +1,108 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "INTEL MEMPEK1W032GA", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 57149440, + "bytes": 29260513280 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 57149440, + "bytes": 29260513280 + }, + "utilization": { + "blocks": 57149440, + "bytes": 29260513280 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 0, + "controller_busy_time": 0, + "critical_warning": 0, + "data_units_read": 3539278, + "data_units_written": 4744607, + "host_reads": 26487271, + "host_writes": 210021083, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 1, + "power_cycles": 194, + "power_on_hours": 41159, + "temperature": 31, + "unsafe_shutdowns": 173 + }, + "nvme_version": { + "string": "<1.2", + "value": 0 + }, + "power_cycle_count": 194, + "power_on_time": { + "hours": 41159 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 31 + }, + "user_capacity": { + "blocks": 57149440, + "bytes": 29260513280 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPE2KE016T8-nvme0.json b/testdata/nvme-null-INTEL_SSDPE2KE016T8-nvme0.json new file mode 100644 index 0000000..13e4981 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPE2KE016T8-nvme0.json @@ -0,0 +1,89 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "INTEL SSDPE2KE016T8", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 22, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 25850206, + "data_units_written": 13140871, + "host_reads": 113307179, + "host_writes": 132571492, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 48, + "power_on_hours": 4236, + "temperature": 31, + "unsafe_shutdowns": 24, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1600321314816, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 48, + "power_on_time": { + "hours": 4236 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 31 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPE2KE020T7-nvme0.json b/testdata/nvme-null-INTEL_SSDPE2KE020T7-nvme0.json new file mode 100644 index 0000000..166d99d --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPE2KE020T7-nvme0.json @@ -0,0 +1,116 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "INTEL SSDPE2KE020T7", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "eui64": { + "ext_id": 276138426624, + "oui": 6083300 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "utilization": { + "blocks": 3907029168, + "bytes": 2000398934016 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 99, + "available_spare_threshold": 10, + "controller_busy_time": 1120, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 788753289, + "data_units_written": 577364942, + "host_reads": 18069915709, + "host_writes": 31991278795, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 3, + "power_cycles": 121, + "power_on_hours": 26055, + "temperature": 14, + "unsafe_shutdowns": 98, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 2000398934016, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 121, + "power_on_time": { + "hours": 26055 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 14 + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPE2KE032T8-nvme0.json b/testdata/nvme-null-INTEL_SSDPE2KE032T8-nvme0.json new file mode 100644 index 0000000..bc3201a --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPE2KE032T8-nvme0.json @@ -0,0 +1,89 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "INTEL SSDPE2KE032T8", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 48, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 24936976, + "data_units_written": 41911765, + "host_reads": 770212980, + "host_writes": 1117261746, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 35, + "power_on_hours": 4643, + "temperature": 40, + "unsafe_shutdowns": 31, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3200631791616, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 35, + "power_on_time": { + "hours": 4643 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 40 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPE2KX010T8-nvme1.json b/testdata/nvme-null-INTEL_SSDPE2KX010T8-nvme1.json new file mode 100644 index 0000000..6bae6f0 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPE2KX010T8-nvme1.json @@ -0,0 +1,89 @@ +{ + "device": { + "info_name": "/dev/nvme1", + "name": "/dev/nvme1", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "INTEL SSDPE2KX010T8", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 99, + "available_spare_threshold": 10, + "controller_busy_time": 17221, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 1152411394, + "data_units_written": 5165815292, + "host_reads": 101762817898, + "host_writes": 166689758596, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 73, + "power_cycles": 10, + "power_on_hours": 8843, + "temperature": 36, + "unsafe_shutdowns": 7, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1000204886016, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 10, + "power_on_time": { + "hours": 8843 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme1" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 36 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPE2KX020T7-nvme6.json b/testdata/nvme-null-INTEL_SSDPE2KX020T7-nvme6.json new file mode 100644 index 0000000..feef2b5 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPE2KX020T7-nvme6.json @@ -0,0 +1,116 @@ +{ + "device": { + "info_name": "/dev/nvme6", + "name": "/dev/nvme6", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 4096, + "model_name": "INTEL SSDPE2KX020T7", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 488378646, + "bytes": 2000398934016 + }, + "eui64": { + "ext_id": 193695907840, + "oui": 6083300 + }, + "formatted_lba_size": 4096, + "id": 1, + "size": { + "blocks": 488378646, + "bytes": 2000398934016 + }, + "utilization": { + "blocks": 488378646, + "bytes": 2000398934016 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 99, + "available_spare_threshold": 10, + "controller_busy_time": 21955, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 1031973760, + "data_units_written": 5014522069, + "host_reads": 22445737117, + "host_writes": 112598062434, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 75, + "power_cycles": 121, + "power_on_hours": 49441, + "temperature": 19, + "unsafe_shutdowns": 106, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 2000398934016, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 121, + "power_on_time": { + "hours": 49441 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme6" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 19 + }, + "user_capacity": { + "blocks": 488378646, + "bytes": 2000398934016 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPE2KX020T8-nvme2.json b/testdata/nvme-null-INTEL_SSDPE2KX020T8-nvme2.json new file mode 100644 index 0000000..78c4585 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPE2KX020T8-nvme2.json @@ -0,0 +1,89 @@ +{ + "device": { + "info_name": "/dev/nvme2", + "name": "/dev/nvme2", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "INTEL SSDPE2KX020T8", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 4541, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 196141631, + "data_units_written": 2643181154, + "host_reads": 8057873051, + "host_writes": 92720362018, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 22, + "power_cycles": 31, + "power_on_hours": 36959, + "temperature": 29, + "unsafe_shutdowns": 21, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 2000398934016, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 31, + "power_on_time": { + "hours": 36959 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme2" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 29 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPE2KX040T8-nvme10.json b/testdata/nvme-null-INTEL_SSDPE2KX040T8-nvme10.json new file mode 100644 index 0000000..11fea25 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPE2KX040T8-nvme10.json @@ -0,0 +1,82 @@ +{ + "device": { + "info_name": "/dev/nvme10", + "name": "/dev/nvme10", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "INTEL SSDPE2KX040T8", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 117, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 33128216, + "data_units_written": 60648805, + "host_reads": 506758577, + "host_writes": 1364280341, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 21, + "power_on_hours": 2434, + "temperature": 29, + "unsafe_shutdowns": 15, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 4000787030016, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 21, + "power_on_time": { + "hours": 2434 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme10" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 29 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPE2MX450G7-nvme0.json b/testdata/nvme-null-INTEL_SSDPE2MX450G7-nvme0.json new file mode 100644 index 0000000..1779211 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPE2MX450G7-nvme0.json @@ -0,0 +1,108 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "INTEL SSDPE2MX450G7", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 879097968, + "bytes": 450098159616 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 879097968, + "bytes": 450098159616 + }, + "utilization": { + "blocks": 879097968, + "bytes": 450098159616 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 98, + "available_spare_threshold": 10, + "controller_busy_time": 1, + "critical_warning": 0, + "data_units_read": 3977362, + "data_units_written": 6981141, + "host_reads": 31044112, + "host_writes": 313248139, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 67, + "power_on_hours": 22944, + "temperature": 11, + "unsafe_shutdowns": 4 + }, + "nvme_version": { + "string": "<1.2", + "value": 0 + }, + "power_cycle_count": 67, + "power_on_time": { + "hours": 22944 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 11 + }, + "user_capacity": { + "blocks": 879097968, + "bytes": 450098159616 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPEDKE020T7-nvme0.json b/testdata/nvme-null-INTEL_SSDPEDKE020T7-nvme0.json new file mode 100644 index 0000000..d8b91ce --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPEDKE020T7-nvme0.json @@ -0,0 +1,116 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "INTEL SSDPEDKE020T7", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "eui64": { + "ext_id": 600496931072, + "oui": 6083300 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "utilization": { + "blocks": 3907029168, + "bytes": 2000398934016 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 5299, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 345682780, + "data_units_written": 1664146250, + "host_reads": 5647764315, + "host_writes": 52892954185, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 18, + "power_cycles": 19, + "power_on_hours": 17259, + "temperature": 28, + "unsafe_shutdowns": 12, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 2000398934016, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 19, + "power_on_time": { + "hours": 17259 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 28 + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPEDMD016T4-nvme0.json b/testdata/nvme-null-INTEL_SSDPEDMD016T4-nvme0.json new file mode 100644 index 0000000..5629179 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPEDMD016T4-nvme0.json @@ -0,0 +1,108 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "INTEL SSDPEDMD016T4", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 3125627568, + "bytes": 1600321314816 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 3125627568, + "bytes": 1600321314816 + }, + "utilization": { + "blocks": 3125627568, + "bytes": 1600321314816 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 99, + "available_spare_threshold": 10, + "controller_busy_time": 16, + "critical_warning": 0, + "data_units_read": 6933871372, + "data_units_written": 32381395004, + "host_reads": 337375119290, + "host_writes": 1694335138991, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 41, + "power_cycles": 27, + "power_on_hours": 57288, + "temperature": 21, + "unsafe_shutdowns": 0 + }, + "nvme_version": { + "string": "<1.2", + "value": 0 + }, + "power_cycle_count": 27, + "power_on_time": { + "hours": 57288 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 21 + }, + "user_capacity": { + "blocks": 3125627568, + "bytes": 1600321314816 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPEDMD400G4-nvme0.json b/testdata/nvme-null-INTEL_SSDPEDMD400G4-nvme0.json new file mode 100644 index 0000000..4ff054c --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPEDMD400G4-nvme0.json @@ -0,0 +1,101 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 4096, + "model_name": "INTEL SSDPEDMD400G4", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 97677846, + "bytes": 400088457216 + }, + "formatted_lba_size": 4096, + "id": 1, + "size": { + "blocks": 97677846, + "bytes": 400088457216 + }, + "utilization": { + "blocks": 97677846, + "bytes": 400088457216 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 295, + "critical_warning": 0, + "data_units_read": 27197255, + "data_units_written": 655012839, + "host_reads": 488215996, + "host_writes": 12453004160, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 5, + "power_cycles": 55, + "power_on_hours": 41951, + "temperature": 28, + "unsafe_shutdowns": 4 + }, + "power_cycle_count": 55, + "power_on_time": { + "hours": 41951 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 28 + }, + "user_capacity": { + "blocks": 97677846, + "bytes": 400088457216 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPEDMD800G4-nvme0.json b/testdata/nvme-null-INTEL_SSDPEDMD800G4-nvme0.json new file mode 100644 index 0000000..cd3cd94 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPEDMD800G4-nvme0.json @@ -0,0 +1,108 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 4096, + "model_name": "INTEL SSDPEDMD800G4", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 195353046, + "bytes": 800166076416 + }, + "formatted_lba_size": 4096, + "id": 1, + "size": { + "blocks": 195353046, + "bytes": 800166076416 + }, + "utilization": { + "blocks": 195353046, + "bytes": 800166076416 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 93, + "available_spare_threshold": 10, + "controller_busy_time": 1116, + "critical_warning": 0, + "data_units_read": 1662103356, + "data_units_written": 15055091656, + "host_reads": 160426723773, + "host_writes": 495846288226, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 51, + "power_cycles": 12, + "power_on_hours": 54704, + "temperature": 30, + "unsafe_shutdowns": 0 + }, + "nvme_version": { + "string": "<1.2", + "value": 0 + }, + "power_cycle_count": 12, + "power_on_time": { + "hours": 54704 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 30 + }, + "user_capacity": { + "blocks": 195353046, + "bytes": 800166076416 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPEK1A058GA-nvme0.json b/testdata/nvme-null-INTEL_SSDPEK1A058GA-nvme0.json new file mode 100644 index 0000000..6ee4740 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPEK1A058GA-nvme0.json @@ -0,0 +1,107 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 4096, + "model_name": "INTEL SSDPEK1A058GA", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 14398720, + "bytes": 58977157120 + }, + "eui64": { + "ext_id": 124058992896, + "oui": 6083300 + }, + "formatted_lba_size": 4096, + "id": 1, + "size": { + "blocks": 14398720, + "bytes": 58977157120 + }, + "utilization": { + "blocks": 14398720, + "bytes": 58977157120 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 0, + "controller_busy_time": 28, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 3501226, + "data_units_written": 1081718, + "host_reads": 22655963, + "host_writes": 76735372, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 24, + "power_on_hours": 3752, + "temperature": 44, + "unsafe_shutdowns": 18, + "warning_temp_time": 0 + }, + "power_cycle_count": 24, + "power_on_time": { + "hours": 3752 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 44 + }, + "user_capacity": { + "blocks": 14398720, + "bytes": 58977157120 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPF2KE032T1-nvme0.json b/testdata/nvme-null-INTEL_SSDPF2KE032T1-nvme0.json new file mode 100644 index 0000000..19fb9c1 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPF2KE032T1-nvme0.json @@ -0,0 +1,89 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "INTEL SSDPF2KE032T1", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 8, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 24934456, + "data_units_written": 39452691, + "host_reads": 766457016, + "host_writes": 863371502, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 12, + "power_on_hours": 4637, + "temperature": 38, + "unsafe_shutdowns": 7, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3200631791616, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.4", + "value": 66560 + }, + "power_cycle_count": 12, + "power_on_time": { + "hours": 4637 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 38 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPF2KX038T1-nvme5.json b/testdata/nvme-null-INTEL_SSDPF2KX038T1-nvme5.json new file mode 100644 index 0000000..816f82b --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPF2KX038T1-nvme5.json @@ -0,0 +1,82 @@ +{ + "device": { + "info_name": "/dev/nvme5", + "name": "/dev/nvme5", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "INTEL SSDPF2KX038T1", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 98, + "available_spare_threshold": 10, + "controller_busy_time": 39, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 74575162, + "data_units_written": 146527728, + "host_reads": 1319001622, + "host_writes": 4030259924, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 39, + "power_on_hours": 4454, + "temperature": 29, + "unsafe_shutdowns": 26, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3840755982336, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 39, + "power_on_time": { + "hours": 4454 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme5" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 29 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-INTEL_SSDPF2KX038TZ-nvme4.json b/testdata/nvme-null-INTEL_SSDPF2KX038TZ-nvme4.json new file mode 100644 index 0000000..f51d470 --- /dev/null +++ b/testdata/nvme-null-INTEL_SSDPF2KX038TZ-nvme4.json @@ -0,0 +1,82 @@ +{ + "device": { + "info_name": "/dev/nvme4", + "name": "/dev/nvme4", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "INTEL SSDPF2KX038TZ", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 6083300, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 32902, + "subsystem_id": 32902 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 12, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 34089816, + "data_units_written": 64549952, + "host_reads": 514122574, + "host_writes": 1619528929, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 21, + "power_on_hours": 2435, + "temperature": 29, + "unsafe_shutdowns": 15, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3840755982336, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 21, + "power_on_time": { + "hours": 2435 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme4" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 29 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-MTFDHAX1T6MCE-1AN1ZABYY-nvme0.json b/testdata/nvme-null-MTFDHAX1T6MCE-1AN1ZABYY-nvme0.json new file mode 100644 index 0000000..fde9f21 --- /dev/null +++ b/testdata/nvme-null-MTFDHAX1T6MCE-1AN1ZABYY-nvme0.json @@ -0,0 +1,112 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "MTFDHAX1T6MCE-1AN1ZABYY", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 57551, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 3125627568, + "bytes": 1600321314816 + }, + "eui64": { + "ext_id": 13062368512, + "oui": 13623296 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 3125627568, + "bytes": 1600321314816 + }, + "utilization": { + "blocks": 3125627568, + "bytes": 1600321314816 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 5, + "controller_busy_time": 0, + "critical_warning": 0, + "data_units_read": 281422399, + "data_units_written": 2184152450, + "host_reads": 10641023038, + "host_writes": 58578200626, + "media_errors": 0, + "num_err_log_entries": 1, + "percentage_used": 69, + "power_cycles": 40, + "power_on_hours": 29891, + "temperature": 32, + "unsafe_shutdowns": 7 + }, + "nvme_version": { + "string": "<1.2", + "value": 0 + }, + "power_cycle_count": 40, + "power_on_time": { + "hours": 29891 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 32 + }, + "user_capacity": { + "blocks": 3125627568, + "bytes": 1600321314816 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7300_MTFDHBE1T6TDG-nvme0.json b/testdata/nvme-null-Micron_7300_MTFDHBE1T6TDG-nvme0.json new file mode 100644 index 0000000..e71e9d6 --- /dev/null +++ b/testdata/nvme-null-Micron_7300_MTFDHBE1T6TDG-nvme0.json @@ -0,0 +1,120 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "Micron_7300_MTFDHBE1T6TDG", + "nvme_controller_id": 1, + "nvme_ieee_oui_identifier": 41077, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 3125627568, + "bytes": 1600321314816 + }, + "eui64": { + "ext_id": 5223520082, + "oui": 41077 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 3125627568, + "bytes": 1600321314816 + }, + "utilization": { + "blocks": 3125627568, + "bytes": 1600321314816 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 5, + "controller_busy_time": 244, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 865, + "data_units_written": 338104, + "host_reads": 16825, + "host_writes": 13198956, + "media_errors": 0, + "num_err_log_entries": 1, + "percentage_used": 0, + "power_cycles": 16, + "power_on_hours": 5100, + "temperature": 22, + "temperature_sensors": [ + 30, + 24 + ], + "unsafe_shutdowns": 0, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1600321314816, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.3", + "value": 66304 + }, + "power_cycle_count": 16, + "power_on_time": { + "hours": 5100 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 22 + }, + "user_capacity": { + "blocks": 3125627568, + "bytes": 1600321314816 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7300_MTFDHBE1T9TDF-nvme0.json b/testdata/nvme-null-Micron_7300_MTFDHBE1T9TDF-nvme0.json new file mode 100644 index 0000000..f8d29bb --- /dev/null +++ b/testdata/nvme-null-Micron_7300_MTFDHBE1T9TDF-nvme0.json @@ -0,0 +1,120 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 4096, + "model_name": "Micron_7300_MTFDHBE1T9TDF", + "nvme_controller_id": 1, + "nvme_ieee_oui_identifier": 41077, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 468843606, + "bytes": 1920383410176 + }, + "eui64": { + "ext_id": 4982755821, + "oui": 41077 + }, + "formatted_lba_size": 4096, + "id": 1, + "size": { + "blocks": 468843606, + "bytes": 1920383410176 + }, + "utilization": { + "blocks": 468843606, + "bytes": 1920383410176 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 5, + "controller_busy_time": 1294669, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 223334847, + "data_units_written": 1362255590, + "host_reads": 6729365943, + "host_writes": 43932944742, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 9, + "power_cycles": 10, + "power_on_hours": 27233, + "temperature": 26, + "temperature_sensors": [ + 35, + 28 + ], + "unsafe_shutdowns": 0, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1920383410176, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.3", + "value": 66304 + }, + "power_cycle_count": 10, + "power_on_time": { + "hours": 27233 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "user_capacity": { + "blocks": 468843606, + "bytes": 1920383410176 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7300_MTFDHBE3T2TDG-nvme0.json b/testdata/nvme-null-Micron_7300_MTFDHBE3T2TDG-nvme0.json new file mode 100644 index 0000000..77c1a2f --- /dev/null +++ b/testdata/nvme-null-Micron_7300_MTFDHBE3T2TDG-nvme0.json @@ -0,0 +1,113 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 4096, + "model_name": "Micron_7300_MTFDHBE3T2TDG", + "nvme_controller_id": 1, + "nvme_ieee_oui_identifier": 41077, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 781404246, + "bytes": 3200631791616 + }, + "eui64": { + "ext_id": 5122290698, + "oui": 41077 + }, + "formatted_lba_size": 4096, + "id": 1, + "size": { + "blocks": 781404246, + "bytes": 3200631791616 + }, + "utilization": { + "blocks": 781404246, + "bytes": 3200631791616 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 5, + "controller_busy_time": 227837, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 16302695, + "data_units_written": 165795201, + "host_reads": 190918064, + "host_writes": 3849300883, + "media_errors": 0, + "num_err_log_entries": 1, + "percentage_used": 0, + "power_cycles": 8, + "power_on_hours": 3820, + "temperature": 38, + "temperature_sensors": [ + 46, + 40 + ], + "unsafe_shutdowns": 1, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3200631791616, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 8, + "power_on_time": { + "hours": 3820 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 38 + }, + "user_capacity": { + "blocks": 781404246, + "bytes": 3200631791616 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7300_MTFDHBE3T8TDF-nvme3.json b/testdata/nvme-null-Micron_7300_MTFDHBE3T8TDF-nvme3.json new file mode 100644 index 0000000..4a327fc --- /dev/null +++ b/testdata/nvme-null-Micron_7300_MTFDHBE3T8TDF-nvme3.json @@ -0,0 +1,120 @@ +{ + "device": { + "info_name": "/dev/nvme3", + "name": "/dev/nvme3", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 4096, + "model_name": "Micron_7300_MTFDHBE3T8TDF", + "nvme_controller_id": 1, + "nvme_ieee_oui_identifier": 41077, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 937684566, + "bytes": 3840755982336 + }, + "eui64": { + "ext_id": 5137678885, + "oui": 41077 + }, + "formatted_lba_size": 4096, + "id": 1, + "size": { + "blocks": 937684566, + "bytes": 3840755982336 + }, + "utilization": { + "blocks": 937684566, + "bytes": 3840755982336 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 99, + "available_spare_threshold": 5, + "controller_busy_time": 322317, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 176835984, + "data_units_written": 891511465, + "host_reads": 3997799320, + "host_writes": 22147613604, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 2, + "power_cycles": 44, + "power_on_hours": 8833, + "temperature": 26, + "temperature_sensors": [ + 35, + 28 + ], + "unsafe_shutdowns": 32, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3840755982336, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.3", + "value": 66304 + }, + "power_cycle_count": 44, + "power_on_time": { + "hours": 8833 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme3" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "user_capacity": { + "blocks": 937684566, + "bytes": 3840755982336 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7300_MTFDHBE960TDF-nvme0.json b/testdata/nvme-null-Micron_7300_MTFDHBE960TDF-nvme0.json new file mode 100644 index 0000000..7fadff1 --- /dev/null +++ b/testdata/nvme-null-Micron_7300_MTFDHBE960TDF-nvme0.json @@ -0,0 +1,120 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "Micron_7300_MTFDHBE960TDF", + "nvme_controller_id": 1, + "nvme_ieee_oui_identifier": 41077, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 1875385008, + "bytes": 960197124096 + }, + "eui64": { + "ext_id": 4994889026, + "oui": 41077 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 1875385008, + "bytes": 960197124096 + }, + "utilization": { + "blocks": 1875385008, + "bytes": 960197124096 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 5, + "controller_busy_time": 1427331, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 398417835, + "data_units_written": 1297577305, + "host_reads": 8733559604, + "host_writes": 24852979274, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 10, + "power_cycles": 8, + "power_on_hours": 26686, + "temperature": 27, + "temperature_sensors": [ + 37, + 29 + ], + "unsafe_shutdowns": 0, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 960197124096, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.3", + "value": 66304 + }, + "power_cycle_count": 8, + "power_on_time": { + "hours": 26686 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 27 + }, + "user_capacity": { + "blocks": 1875385008, + "bytes": 960197124096 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7400_MTFDKCB1T6TFC-nvme2.json b/testdata/nvme-null-Micron_7400_MTFDKCB1T6TFC-nvme2.json new file mode 100644 index 0000000..bc04c28 --- /dev/null +++ b/testdata/nvme-null-Micron_7400_MTFDKCB1T6TFC-nvme2.json @@ -0,0 +1,87 @@ +{ + "device": { + "info_name": "/dev/nvme2", + "name": "/dev/nvme2", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "Micron_7400_MTFDKCB1T6TFC", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 41077, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 39003, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 1087990952, + "data_units_written": 1136100893, + "host_reads": 19755987150, + "host_writes": 20204186058, + "media_errors": 0, + "num_err_log_entries": 40, + "percentage_used": 4, + "power_cycles": 44, + "power_on_hours": 13108, + "temperature": 35, + "temperature_sensors": [ + 42, + 37, + 34 + ], + "unsafe_shutdowns": 40, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1600321314816, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 44, + "power_on_time": { + "hours": 13108 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme2" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 35 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7400_MTFDKCB1T9TDZ-nvme10.json b/testdata/nvme-null-Micron_7400_MTFDKCB1T9TDZ-nvme10.json new file mode 100644 index 0000000..d5c58e8 --- /dev/null +++ b/testdata/nvme-null-Micron_7400_MTFDKCB1T9TDZ-nvme10.json @@ -0,0 +1,94 @@ +{ + "device": { + "info_name": "/dev/nvme10", + "name": "/dev/nvme10", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "Micron_7400_MTFDKCB1T9TDZ", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 41077, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 9928, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 55574020, + "data_units_written": 725355323, + "host_reads": 1650568378, + "host_writes": 16632159768, + "media_errors": 0, + "num_err_log_entries": 17, + "percentage_used": 5, + "power_cycles": 17, + "power_on_hours": 9099, + "temperature": 33, + "temperature_sensors": [ + 41, + 35, + 33 + ], + "unsafe_shutdowns": 15, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1920383410176, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.4", + "value": 66560 + }, + "power_cycle_count": 17, + "power_on_time": { + "hours": 9099 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme10" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 33 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7400_MTFDKCB3T2TFC-nvme2.json b/testdata/nvme-null-Micron_7400_MTFDKCB3T2TFC-nvme2.json new file mode 100644 index 0000000..af34346 --- /dev/null +++ b/testdata/nvme-null-Micron_7400_MTFDKCB3T2TFC-nvme2.json @@ -0,0 +1,94 @@ +{ + "device": { + "info_name": "/dev/nvme2", + "name": "/dev/nvme2", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "Micron_7400_MTFDKCB3T2TFC", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 41077, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 3476, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 58862015, + "data_units_written": 124370358, + "host_reads": 1516688038, + "host_writes": 6089266363, + "media_errors": 0, + "num_err_log_entries": 9, + "percentage_used": 0, + "power_cycles": 8, + "power_on_hours": 10346, + "temperature": 24, + "temperature_sensors": [ + 30, + 25, + 24 + ], + "unsafe_shutdowns": 5, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3200631791616, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.4", + "value": 66560 + }, + "power_cycle_count": 8, + "power_on_time": { + "hours": 10346 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme2" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7400_MTFDKCB3T8TDZ-nvme3.json b/testdata/nvme-null-Micron_7400_MTFDKCB3T8TDZ-nvme3.json new file mode 100644 index 0000000..d725d9c --- /dev/null +++ b/testdata/nvme-null-Micron_7400_MTFDKCB3T8TDZ-nvme3.json @@ -0,0 +1,87 @@ +{ + "device": { + "info_name": "/dev/nvme3", + "name": "/dev/nvme3", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "Micron_7400_MTFDKCB3T8TDZ", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 41077, + "nvme_number_of_namespaces": 128, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 1267, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 36236622, + "data_units_written": 63334884, + "host_reads": 387822512, + "host_writes": 1066211555, + "media_errors": 0, + "num_err_log_entries": 15, + "percentage_used": 0, + "power_cycles": 20, + "power_on_hours": 2436, + "temperature": 31, + "temperature_sensors": [ + 39, + 34, + 31 + ], + "unsafe_shutdowns": 15, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3840755982336, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 20, + "power_on_time": { + "hours": 2436 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme3" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 31 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7450_MTFDKCB3T8TFR-nvme6.json b/testdata/nvme-null-Micron_7450_MTFDKCB3T8TFR-nvme6.json new file mode 100644 index 0000000..5d772cb --- /dev/null +++ b/testdata/nvme-null-Micron_7450_MTFDKCB3T8TFR-nvme6.json @@ -0,0 +1,94 @@ +{ + "device": { + "info_name": "/dev/nvme6", + "name": "/dev/nvme6", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "Micron_7450_MTFDKCB3T8TFR", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 41077, + "nvme_number_of_namespaces": 132, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 213, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 2430296, + "data_units_written": 27054698, + "host_reads": 37410459, + "host_writes": 553708815, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 1, + "power_on_hours": 150, + "temperature": 27, + "temperature_sensors": [ + 35, + 30, + 26 + ], + "unsafe_shutdowns": 0, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3840755982336, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.4", + "value": 66560 + }, + "power_cycle_count": 1, + "power_on_time": { + "hours": 150 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme6" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 27 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7450_MTFDKCC3T2TFS-nvme1.json b/testdata/nvme-null-Micron_7450_MTFDKCC3T2TFS-nvme1.json new file mode 100644 index 0000000..cda23f7 --- /dev/null +++ b/testdata/nvme-null-Micron_7450_MTFDKCC3T2TFS-nvme1.json @@ -0,0 +1,94 @@ +{ + "device": { + "info_name": "/dev/nvme1", + "name": "/dev/nvme1", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "Micron_7450_MTFDKCC3T2TFS", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 41077, + "nvme_number_of_namespaces": 132, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 10, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 170056, + "data_units_written": 1248078, + "host_reads": 412435, + "host_writes": 92595817, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 32, + "power_on_hours": 2884, + "temperature": 33, + "temperature_sensors": [ + 38, + 35, + 33 + ], + "unsafe_shutdowns": 30, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3200631791616, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.4", + "value": 66560 + }, + "power_cycle_count": 32, + "power_on_time": { + "hours": 2884 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme1" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 33 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_7450_MTFDKCC3T8TFR-nvme11.json b/testdata/nvme-null-Micron_7450_MTFDKCC3T8TFR-nvme11.json new file mode 100644 index 0000000..accf219 --- /dev/null +++ b/testdata/nvme-null-Micron_7450_MTFDKCC3T8TFR-nvme11.json @@ -0,0 +1,87 @@ +{ + "device": { + "info_name": "/dev/nvme11", + "name": "/dev/nvme11", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "Micron_7450_MTFDKCC3T8TFR", + "nvme_controller_id": 0, + "nvme_ieee_oui_identifier": 41077, + "nvme_number_of_namespaces": 132, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 928, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 34195414, + "data_units_written": 60979236, + "host_reads": 358762506, + "host_writes": 1016731250, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 20, + "power_on_hours": 2436, + "temperature": 25, + "temperature_sensors": [ + 29, + 26, + 25 + ], + "unsafe_shutdowns": 15, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3840755982336, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 20, + "power_on_time": { + "hours": 2436 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme11" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 25 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Micron_9300_MTFDHAL3T8TDP-nvme0.json b/testdata/nvme-null-Micron_9300_MTFDHAL3T8TDP-nvme0.json new file mode 100644 index 0000000..a00bfe4 --- /dev/null +++ b/testdata/nvme-null-Micron_9300_MTFDHAL3T8TDP-nvme0.json @@ -0,0 +1,95 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "Micron_9300_MTFDHAL3T8TDP", + "nvme_controller_id": 1, + "nvme_ieee_oui_identifier": 41077, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 4932, + "subsystem_id": 4932 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 5, + "controller_busy_time": 9702, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 5289507, + "data_units_written": 17746518, + "host_reads": 52735545, + "host_writes": 527514964, + "media_errors": 0, + "num_err_log_entries": 8, + "percentage_used": 0, + "power_cycles": 3, + "power_on_hours": 285, + "temperature": 24, + "temperature_sensors": [ + 27, + 24, + 20, + 20 + ], + "unsafe_shutdowns": 1, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3840755982336, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 3, + "power_on_time": { + "hours": 285 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZPLJ6T4HALA-00007-nvme0.json b/testdata/nvme-null-SAMSUNG_MZPLJ6T4HALA-00007-nvme0.json new file mode 100644 index 0000000..8366824 --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZPLJ6T4HALA-00007-nvme0.json @@ -0,0 +1,94 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZPLJ6T4HALA-00007", + "nvme_controller_id": 65, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 1, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 84478, + "data_units_written": 88679, + "host_reads": 426730, + "host_writes": 2591584, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 32, + "power_on_hours": 861, + "temperature": 33, + "temperature_sensors": [ + 33, + 31, + 32 + ], + "unsafe_shutdowns": 10, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 6401252745216, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.3", + "value": 66304 + }, + "power_cycle_count": 32, + "power_on_time": { + "hours": 861 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 33 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZPLL1T6HAJQ-00005-nvme0.json b/testdata/nvme-null-SAMSUNG_MZPLL1T6HAJQ-00005-nvme0.json new file mode 100644 index 0000000..83b143b --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZPLL1T6HAJQ-00005-nvme0.json @@ -0,0 +1,94 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZPLL1T6HAJQ-00005", + "nvme_controller_id": 33, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 56388, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 367584746, + "data_units_written": 2840371158, + "host_reads": 34181111227, + "host_writes": 71799680343, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 6, + "power_cycles": 21, + "power_on_hours": 28074, + "temperature": 40, + "temperature_sensors": [ + 40, + 38, + 38 + ], + "unsafe_shutdowns": 16, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1600321314816, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2.1", + "value": 66049 + }, + "power_cycle_count": 21, + "power_on_time": { + "hours": 28074 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 40 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZPLL1T6HEHP-00003-nvme0.json b/testdata/nvme-null-SAMSUNG_MZPLL1T6HEHP-00003-nvme0.json new file mode 100644 index 0000000..1cd564e --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZPLL1T6HEHP-00003-nvme0.json @@ -0,0 +1,94 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZPLL1T6HEHP-00003", + "nvme_controller_id": 33, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 9689, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 132156216, + "data_units_written": 611904693, + "host_reads": 4241167614, + "host_writes": 18543068881, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 1, + "power_cycles": 65, + "power_on_hours": 26605, + "temperature": 36, + "temperature_sensors": [ + 36, + 34, + 34 + ], + "unsafe_shutdowns": 45, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1600321314816, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2", + "value": 66048 + }, + "power_cycle_count": 65, + "power_on_time": { + "hours": 26605 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 36 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZPLL3T2HAJQ-00005-nvme1.json b/testdata/nvme-null-SAMSUNG_MZPLL3T2HAJQ-00005-nvme1.json new file mode 100644 index 0000000..97c92bf --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZPLL3T2HAJQ-00005-nvme1.json @@ -0,0 +1,87 @@ +{ + "device": { + "info_name": "/dev/nvme1", + "name": "/dev/nvme1", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZPLL3T2HAJQ-00005", + "nvme_controller_id": 33, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 5572, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 93216906, + "data_units_written": 500161695, + "host_reads": 2332065245, + "host_writes": 5255094035, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 25, + "power_on_hours": 13138, + "temperature": 38, + "temperature_sensors": [ + 38, + 38, + 38 + ], + "unsafe_shutdowns": 14, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3200631791616, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 25, + "power_on_time": { + "hours": 13138 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme1" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 38 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZPLL3T2HMLS-00003-nvme1.json b/testdata/nvme-null-SAMSUNG_MZPLL3T2HMLS-00003-nvme1.json new file mode 100644 index 0000000..fe90f24 --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZPLL3T2HMLS-00003-nvme1.json @@ -0,0 +1,87 @@ +{ + "device": { + "info_name": "/dev/nvme1", + "name": "/dev/nvme1", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZPLL3T2HMLS-00003", + "nvme_controller_id": 33, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 81688, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 3716916944, + "data_units_written": 6264387784, + "host_reads": 59834749634, + "host_writes": 158424932551, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 6, + "power_cycles": 70, + "power_on_hours": 50235, + "temperature": 40, + "temperature_sensors": [ + 40, + 39, + 38 + ], + "unsafe_shutdowns": 47, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3200631791616, + "nvme_unallocated_capacity": 0, + "power_cycle_count": 70, + "power_on_time": { + "hours": 50235 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme1" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 40 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZQL21T9HCJR-00A07-nvme0.json b/testdata/nvme-null-SAMSUNG_MZQL21T9HCJR-00A07-nvme0.json new file mode 100644 index 0000000..df18c95 --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZQL21T9HCJR-00A07-nvme0.json @@ -0,0 +1,93 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZQL21T9HCJR-00A07", + "nvme_controller_id": 6, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 3970, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 70487783, + "data_units_written": 267397176, + "host_reads": 1980393839, + "host_writes": 9358693660, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 3, + "power_cycles": 63, + "power_on_hours": 13113, + "temperature": 22, + "temperature_sensors": [ + 22, + 29 + ], + "unsafe_shutdowns": 34, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 1920383410176, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.4", + "value": 66560 + }, + "power_cycle_count": 63, + "power_on_time": { + "hours": 13113 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 22 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZQL23T8HCLS-00A07-nvme9.json b/testdata/nvme-null-SAMSUNG_MZQL23T8HCLS-00A07-nvme9.json new file mode 100644 index 0000000..9938957 --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZQL23T8HCLS-00A07-nvme9.json @@ -0,0 +1,93 @@ +{ + "device": { + "info_name": "/dev/nvme9", + "name": "/dev/nvme9", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZQL23T8HCLS-00A07", + "nvme_controller_id": 6, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 5203, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 62679808, + "data_units_written": 639454618, + "host_reads": 1615291761, + "host_writes": 16276566236, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 3, + "power_cycles": 4, + "power_on_hours": 4369, + "temperature": 22, + "temperature_sensors": [ + 22, + 31 + ], + "unsafe_shutdowns": 1, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3840755982336, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.4", + "value": 66560 + }, + "power_cycle_count": 4, + "power_on_time": { + "hours": 4369 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme9" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 22 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZQL2960HCJR-00A07-nvme0.json b/testdata/nvme-null-SAMSUNG_MZQL2960HCJR-00A07-nvme0.json new file mode 100644 index 0000000..412cc8c --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZQL2960HCJR-00A07-nvme0.json @@ -0,0 +1,93 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZQL2960HCJR-00A07", + "nvme_controller_id": 6, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 108, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 3463621, + "data_units_written": 3055861, + "host_reads": 336456600, + "host_writes": 354224726, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 20, + "power_on_hours": 1999, + "temperature": 22, + "temperature_sensors": [ + 22, + 31 + ], + "unsafe_shutdowns": 17, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 960197124096, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.4", + "value": 66560 + }, + "power_cycle_count": 20, + "power_on_time": { + "hours": 1999 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 22 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-SAMSUNG_MZWLL3T2HAJQ-00005-nvme0.json b/testdata/nvme-null-SAMSUNG_MZWLL3T2HAJQ-00005-nvme0.json new file mode 100644 index 0000000..d4e60b5 --- /dev/null +++ b/testdata/nvme-null-SAMSUNG_MZWLL3T2HAJQ-00005-nvme0.json @@ -0,0 +1,101 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "model_name": "SAMSUNG MZWLL3T2HAJQ-00005", + "nvme_controller_id": 33, + "nvme_ieee_oui_identifier": 9528, + "nvme_number_of_namespaces": 32, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 93891, + "critical_comp_time": 0, + "critical_warning": 16, + "data_units_read": 146935678, + "data_units_written": 147556750, + "host_reads": 3927325763, + "host_writes": 2665106227, + "media_errors": 0, + "num_err_log_entries": 0, + "percentage_used": 0, + "power_cycles": 6, + "power_on_hours": 18376, + "temperature": 40, + "temperature_sensors": [ + 40, + 40, + 35 + ], + "unsafe_shutdowns": 4, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 3200631791616, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.2.1", + "value": 66049 + }, + "power_cycle_count": 6, + "power_on_time": { + "hours": 18376 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "media_read_only": false, + "other": 0, + "persistent_memory_region_unreliable": false, + "reliability_degraded": false, + "spare_below_threshold": false, + "temperature_above_or_below_threshold": false, + "value": 16, + "volatile_memory_backup_failed": true + }, + "passed": false + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 8, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 40 + } +} \ No newline at end of file diff --git a/testdata/nvme-null-Samsung_SSD_970_EVO_Plus_250GB-nvme0.json b/testdata/nvme-null-Samsung_SSD_970_EVO_Plus_250GB-nvme0.json new file mode 100644 index 0000000..bef87be --- /dev/null +++ b/testdata/nvme-null-Samsung_SSD_970_EVO_Plus_250GB-nvme0.json @@ -0,0 +1,120 @@ +{ + "device": { + "info_name": "/dev/nvme0", + "name": "/dev/nvme0", + "protocol": "NVMe", + "type": "nvme" + }, + "firmware_version": "REDACTED", + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "Samsung SSD 970 EVO Plus 250GB", + "nvme_controller_id": 4, + "nvme_ieee_oui_identifier": 9528, + "nvme_namespaces": [ + { + "capacity": { + "blocks": 488397168, + "bytes": 250059350016 + }, + "eui64": { + "ext_id": 386844027293, + "oui": 9528 + }, + "formatted_lba_size": 512, + "id": 1, + "size": { + "blocks": 488397168, + "bytes": 250059350016 + }, + "utilization": { + "blocks": 25515848, + "bytes": 13064114176 + } + } + ], + "nvme_number_of_namespaces": 1, + "nvme_pci_vendor": { + "id": 5197, + "subsystem_id": 5197 + }, + "nvme_smart_health_information_log": { + "available_spare": 100, + "available_spare_threshold": 10, + "controller_busy_time": 892, + "critical_comp_time": 0, + "critical_warning": 0, + "data_units_read": 2025034, + "data_units_written": 1969459, + "host_reads": 13927240, + "host_writes": 88382369, + "media_errors": 0, + "num_err_log_entries": 22, + "percentage_used": 0, + "power_cycles": 16, + "power_on_hours": 3149, + "temperature": 35, + "temperature_sensors": [ + 35, + 39 + ], + "unsafe_shutdowns": 12, + "warning_temp_time": 0 + }, + "nvme_total_capacity": 250059350016, + "nvme_unallocated_capacity": 0, + "nvme_version": { + "string": "1.3", + "value": 66304 + }, + "power_cycle_count": 16, + "power_on_time": { + "hours": 3149 + }, + "serial_number": "REDACTED", + "smart_status": { + "nvme": { + "value": 0 + }, + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/nvme0" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 35 + }, + "user_capacity": { + "blocks": 488397168, + "bytes": 250059350016 + } +} \ No newline at end of file diff --git a/testdata/sat-Dell_Certified_Intel_S3520_Series_SSDs-SSDSCKJB240G7R-sdm.json b/testdata/sat-Dell_Certified_Intel_S3520_Series_SSDs-SSDSCKJB240G7R-sdm.json new file mode 100644 index 0000000..07d4d45 --- /dev/null +++ b/testdata/sat-Dell_Certified_Intel_S3520_Series_SSDs-SSDSCKJB240G7R-sdm.json @@ -0,0 +1,742 @@ +{ + "ata_additional_product_id": "DELL(tm)", + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "4294967295", + "value": 4294967295 + }, + "thresh": 39, + "value": 130, + "when_failed": "", + "worst": 130 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "21213", + "value": 21213 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "186", + "value": 186 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRC- ", + "updated_online": true, + "value": 30 + }, + "id": 13, + "name": "Read_Soft_Error_Rate", + "raw": { + "string": "4294967295", + "value": 4294967295 + }, + "thresh": 0, + "value": 130, + "when_failed": "", + "worst": 130 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "167", + "value": 167 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 179, + "name": "Used_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "7268", + "value": 7268 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 181, + "name": "Program_Fail_Cnt_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 182, + "name": "Erase_Fail_Count_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "47", + "value": 47 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 92 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 201, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "18900 (310 1222)", + "value": 1331519965652 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 202, + "name": "End_of_Life", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "129493", + "value": 129493 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "102400", + "value": 102400 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "362060752", + "value": 362060752 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Total_LBAs_Written", + "raw": { + "string": "129493", + "value": 129493 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "129493", + "value": 129493 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "573613", + "value": 573613 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 245, + "name": "Percent_Life_Remaining", + "raw": { + "string": "100", + "value": 100 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdm [SAT]", + "name": "/dev/sdm", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 7, + "name": "M.2" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Dell Certified Intel S3520 Series SSDs", + "model_name": "SSDSCKJB240G7R", + "physical_block_size": 4096, + "power_cycle_count": 186, + "power_on_time": { + "hours": 21213 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdm" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 47 + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726020ALE614-sda.json b/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726020ALE614-sda.json new file mode 100644 index 0000000..a925951 --- /dev/null +++ b/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726020ALE614-sda.json @@ -0,0 +1,483 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "108", + "value": 108 + }, + "thresh": 54, + "value": 136, + "when_failed": "", + "worst": 136 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "222 (Average 222)", + "value": 17194418398 + }, + "thresh": 24, + "value": 134, + "when_failed": "", + "worst": 134 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 128, + "when_failed": "", + "worst": 128 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "67518", + "value": 67518 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 91 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "2507", + "value": 2507 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "2507", + "value": 2507 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "27 (Min/Max 21/39)", + "value": 167505100827 + }, + "thresh": 0, + "value": 222, + "when_failed": "", + "worst": 222 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 41, + "string": "ACS-2, ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "HGST Ultrastar 7K6000", + "model_name": "HGST HUS726020ALE614", + "physical_block_size": 4096, + "power_cycle_count": 12, + "power_on_time": { + "hours": 67518 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 27 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726040ALA614-sda.json b/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726040ALA614-sda.json new file mode 100644 index 0000000..9a2d404 --- /dev/null +++ b/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726040ALA614-sda.json @@ -0,0 +1,483 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "107", + "value": 107 + }, + "thresh": 54, + "value": 136, + "when_failed": "", + "worst": 136 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "371 (Average 364)", + "value": 30088626547 + }, + "thresh": 24, + "value": 145, + "when_failed": "", + "worst": 145 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 128, + "when_failed": "", + "worst": 128 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "54154", + "value": 54154 + }, + "thresh": 0, + "value": 93, + "when_failed": "", + "worst": 93 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "2256", + "value": 2256 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "2256", + "value": 2256 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "31 (Min/Max 24/41)", + "value": 176095232031 + }, + "thresh": 0, + "value": 193, + "when_failed": "", + "worst": 193 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 41, + "string": "ACS-2, ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "HGST Ultrastar 7K6000", + "model_name": "HGST HUS726040ALA614", + "physical_block_size": 512, + "power_cycle_count": 11, + "power_on_time": { + "hours": 54154 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 31 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 7814037168, + "bytes": 4000787030016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726040ALE614-sdb.json b/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726040ALE614-sdb.json new file mode 100644 index 0000000..20db0ba --- /dev/null +++ b/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726040ALE614-sdb.json @@ -0,0 +1,483 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "108", + "value": 108 + }, + "thresh": 54, + "value": 136, + "when_failed": "", + "worst": 136 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "393 (Average 391)", + "value": 30090396041 + }, + "thresh": 24, + "value": 136, + "when_failed": "", + "worst": 136 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "121", + "value": 121 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 128, + "when_failed": "", + "worst": 128 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "42454", + "value": 42454 + }, + "thresh": 0, + "value": 94, + "when_failed": "", + "worst": 94 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "121", + "value": 121 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "1703", + "value": 1703 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "1703", + "value": 1703 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "31 (Min/Max 21/42)", + "value": 180390002719 + }, + "thresh": 0, + "value": 193, + "when_failed": "", + "worst": 193 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 41, + "string": "ACS-2, ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sdb [SAT]", + "name": "/dev/sdb", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "HGST Ultrastar 7K6000", + "model_name": "HGST HUS726040ALE614", + "physical_block_size": 4096, + "power_cycle_count": 121, + "power_on_time": { + "hours": 42454 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdb" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 31 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 7814037168, + "bytes": 4000787030016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726060ALE614-sdf.json b/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726060ALE614-sdf.json new file mode 100644 index 0000000..5914b4a --- /dev/null +++ b/testdata/sat-HGST_Ultrastar_7K6000-HGST_HUS726060ALE614-sdf.json @@ -0,0 +1,483 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "104", + "value": 104 + }, + "thresh": 54, + "value": 137, + "when_failed": "", + "worst": 137 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "501 (Average 485)", + "value": 42981458421 + }, + "thresh": 24, + "value": 133, + "when_failed": "", + "worst": 133 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 128, + "when_failed": "", + "worst": 128 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "63037", + "value": 63037 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 91 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "2708", + "value": 2708 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "2708", + "value": 2708 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25 (Min/Max 18/42)", + "value": 180389806105 + }, + "thresh": 0, + "value": 240, + "when_failed": "", + "worst": 240 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 41, + "string": "ACS-2, ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sdf [SAT]", + "name": "/dev/sdf", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "HGST Ultrastar 7K6000", + "model_name": "HGST HUS726060ALE614", + "physical_block_size": 4096, + "power_cycle_count": 15, + "power_on_time": { + "hours": 63037 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdf" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 11721045168, + "bytes": 6001175126016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-HGST_Ultrastar_HC310_320-HGST_HUS726T4TALE6L4-sda.json b/testdata/sat-HGST_Ultrastar_HC310_320-HGST_HUS726T4TALE6L4-sda.json new file mode 100644 index 0000000..ec4ab24 --- /dev/null +++ b/testdata/sat-HGST_Ultrastar_HC310_320-HGST_HUS726T4TALE6L4-sda.json @@ -0,0 +1,483 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "92", + "value": 92 + }, + "thresh": 54, + "value": 133, + "when_failed": "", + "worst": 133 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 30064771072 + }, + "thresh": 24, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 128, + "when_failed": "", + "worst": 128 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "291", + "value": 291 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "13", + "value": 13 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "13", + "value": 13 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "29 (Min/Max 22/32)", + "value": 137440395293 + }, + "thresh": 0, + "value": 206, + "when_failed": "", + "worst": 206 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 41, + "string": "ACS-2, ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "HGST Ultrastar HC310/320", + "model_name": "HGST HUS726T4TALE6L4", + "physical_block_size": 4096, + "power_cycle_count": 1, + "power_on_time": { + "hours": 291 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 29 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 7814037168, + "bytes": 4000787030016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-HGST_Ultrastar_HC310_320-HGST_HUS728T8TALE6L4-sdd.json b/testdata/sat-HGST_Ultrastar_HC310_320-HGST_HUS728T8TALE6L4-sdd.json new file mode 100644 index 0000000..709b659 --- /dev/null +++ b/testdata/sat-HGST_Ultrastar_HC310_320-HGST_HUS728T8TALE6L4-sdd.json @@ -0,0 +1,483 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "96", + "value": 96 + }, + "thresh": 54, + "value": 132, + "when_failed": "", + "worst": 132 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "494 (Average 466)", + "value": 30095311342 + }, + "thresh": 24, + "value": 169, + "when_failed": "", + "worst": 169 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "16", + "value": 16 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 128, + "when_failed": "", + "worst": 128 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "38399", + "value": 38399 + }, + "thresh": 0, + "value": 95, + "when_failed": "", + "worst": 95 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "16", + "value": 16 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "1604", + "value": 1604 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "1604", + "value": 1604 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "28 (Min/Max 18/39)", + "value": 167504904220 + }, + "thresh": 0, + "value": 214, + "when_failed": "", + "worst": 214 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 41, + "string": "ACS-2, ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sdd [SAT]", + "name": "/dev/sdd", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "HGST Ultrastar HC310/320", + "model_name": "HGST HUS728T8TALE6L4", + "physical_block_size": 4096, + "power_cycle_count": 16, + "power_on_time": { + "hours": 38399 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdd" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 28 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-HGST_Ultrastar_He10-HGST_HUH721008ALE604-sde.json b/testdata/sat-HGST_Ultrastar_He10-HGST_HUH721008ALE604-sde.json new file mode 100644 index 0000000..f8537a2 --- /dev/null +++ b/testdata/sat-HGST_Ultrastar_He10-HGST_HUH721008ALE604-sde.json @@ -0,0 +1,505 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "104", + "value": 104 + }, + "thresh": 54, + "value": 131, + "when_failed": "", + "worst": 131 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "396 (Average 445)", + "value": 25798967692 + }, + "thresh": 24, + "value": 156, + "when_failed": "", + "worst": 156 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "128", + "value": 128 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 128, + "when_failed": "", + "worst": 128 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "32564", + "value": 32564 + }, + "thresh": 0, + "value": 96, + "when_failed": "", + "worst": 96 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "123", + "value": 123 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 22, + "name": "Helium_Level", + "raw": { + "string": "100", + "value": 100 + }, + "thresh": 25, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "1064", + "value": 1064 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "1064", + "value": 1064 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25 (Min/Max 17/41)", + "value": 176094773273 + }, + "thresh": 0, + "value": 240, + "when_failed": "", + "worst": 240 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 41, + "string": "ACS-2, ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sde [SAT]", + "name": "/dev/sde", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "HGST Ultrastar He10", + "model_name": "HGST HUH721008ALE604", + "physical_block_size": 4096, + "power_cycle_count": 123, + "power_on_time": { + "hours": 32564 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sde" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-Hitachi_Deskstar_7K1000.C-Hitachi_HDS721010CLA332-sda.json b/testdata/sat-Hitachi_Deskstar_7K1000.C-Hitachi_HDS721010CLA332-sda.json new file mode 100644 index 0000000..102bc7c --- /dev/null +++ b/testdata/sat-Hitachi_Deskstar_7K1000.C-Hitachi_HDS721010CLA332-sda.json @@ -0,0 +1,477 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "786446", + "value": 786446 + }, + "thresh": 16, + "value": 94, + "when_failed": "", + "worst": 94 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "95", + "value": 95 + }, + "thresh": 54, + "value": 136, + "when_failed": "", + "worst": 136 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "314 (Average 310)", + "value": 25790120250 + }, + "thresh": 24, + "value": 121, + "when_failed": "", + "worst": 121 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 20, + "value": 138, + "when_failed": "", + "worst": 138 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "109245", + "value": 109245 + }, + "thresh": 0, + "value": 85, + "when_failed": "", + "worst": 85 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "58", + "value": 58 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "58", + "value": 58 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "28 (Min/Max 20/49)", + "value": 210454708252 + }, + "thresh": 0, + "value": 214, + "when_failed": "", + "worst": 214 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 0 + } + }, + "ata_version": { + "major_value": 508, + "minor_value": 41, + "string": "ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Hitachi Deskstar 7K1000.C", + "model_name": "Hitachi HDS721010CLA332", + "physical_block_size": 512, + "power_cycle_count": 26, + "power_on_time": { + "hours": 109245 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 28 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-Hitachi_HGST_Ultrastar_7K2-HGST_HUS722T1TALA604-sdu.json b/testdata/sat-Hitachi_HGST_Ultrastar_7K2-HGST_HUS722T1TALA604-sdu.json new file mode 100644 index 0000000..c9bb98d --- /dev/null +++ b/testdata/sat-Hitachi_HGST_Ultrastar_7K2-HGST_HUS722T1TALA604-sdu.json @@ -0,0 +1,527 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "3750", + "value": 3750 + }, + "thresh": 21, + "value": 145, + "when_failed": "", + "worst": 138 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "46", + "value": 46 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "32218", + "value": 32218 + }, + "thresh": 0, + "value": 56, + "when_failed": "", + "worst": 56 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "45", + "value": 45 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 16, + "name": "Gas_Gauge", + "raw": { + "string": "17023028824", + "value": 17023028824 + }, + "thresh": 0, + "value": 0, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "20", + "value": 20 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "9104", + "value": 9104 + }, + "thresh": 0, + "value": 197, + "when_failed": "", + "worst": 197 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 0, + "value": 118, + "when_failed": "", + "worst": 107 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2046, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdu [SAT]", + "name": "/dev/sdu", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Hitachi/HGST Ultrastar 7K2", + "model_name": "HGST HUS722T1TALA604", + "physical_block_size": 512, + "power_cycle_count": 45, + "power_on_time": { + "hours": 32218 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 126 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdu" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Hitachi_HGST_Ultrastar_7K2-HGST_HUS722T2TALA604-sdc.json b/testdata/sat-Hitachi_HGST_Ultrastar_7K2-HGST_HUS722T2TALA604-sdc.json new file mode 100644 index 0000000..18116b9 --- /dev/null +++ b/testdata/sat-Hitachi_HGST_Ultrastar_7K2-HGST_HUS722T2TALA604-sdc.json @@ -0,0 +1,527 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "3850", + "value": 3850 + }, + "thresh": 21, + "value": 183, + "when_failed": "", + "worst": 182 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "43", + "value": 43 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "40662", + "value": 40662 + }, + "thresh": 0, + "value": 45, + "when_failed": "", + "worst": 45 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "43", + "value": 43 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 16, + "name": "Gas_Gauge", + "raw": { + "string": "677786019612", + "value": 677786019612 + }, + "thresh": 0, + "value": 12, + "when_failed": "", + "worst": 188 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "33", + "value": 33 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "54", + "value": 54 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 121, + "when_failed": "", + "worst": 109 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2046, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Hitachi/HGST Ultrastar 7K2", + "model_name": "HGST HUS722T2TALA604", + "physical_block_size": 512, + "power_cycle_count": 43, + "power_on_time": { + "hours": 40662 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 126 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Hitachi_HGST_Ultrastar_7K4000-HGST_HUS724020ALA640-sdc.json b/testdata/sat-Hitachi_HGST_Ultrastar_7K4000-HGST_HUS724020ALA640-sdc.json new file mode 100644 index 0000000..711f280 --- /dev/null +++ b/testdata/sat-Hitachi_HGST_Ultrastar_7K4000-HGST_HUS724020ALA640-sdc.json @@ -0,0 +1,483 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "76", + "value": 76 + }, + "thresh": 54, + "value": 138, + "when_failed": "", + "worst": 138 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "457 (Average 480)", + "value": 38686163401 + }, + "thresh": 24, + "value": 133, + "when_failed": "", + "worst": 133 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "62", + "value": 62 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "24", + "value": 24 + }, + "thresh": 20, + "value": 145, + "when_failed": "", + "worst": 145 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "56961", + "value": 56961 + }, + "thresh": 0, + "value": 92, + "when_failed": "", + "worst": 92 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "62", + "value": 62 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "99", + "value": 99 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "99", + "value": 99 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "27 (Min/Max 18/36)", + "value": 154620002331 + }, + "thresh": 0, + "value": 222, + "when_failed": "", + "worst": 222 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 508, + "minor_value": 41, + "string": "ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Hitachi/HGST Ultrastar 7K4000", + "model_name": "HGST HUS724020ALA640", + "physical_block_size": 512, + "power_cycle_count": 62, + "power_on_time": { + "hours": 56961 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 27 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-Hitachi_HGST_Ultrastar_7K4000-HGST_HUS724040ALA640-sda.json b/testdata/sat-Hitachi_HGST_Ultrastar_7K4000-HGST_HUS724040ALA640-sda.json new file mode 100644 index 0000000..4c882ec --- /dev/null +++ b/testdata/sat-Hitachi_HGST_Ultrastar_7K4000-HGST_HUS724040ALA640-sda.json @@ -0,0 +1,483 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "78", + "value": 78 + }, + "thresh": 54, + "value": 137, + "when_failed": "", + "worst": 137 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "593 (Average 637)", + "value": 51581354577 + }, + "thresh": 24, + "value": 126, + "when_failed": "", + "worst": 126 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "37", + "value": 37 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 20, + "value": 140, + "when_failed": "", + "worst": 140 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "64012", + "value": 64012 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 91 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "1740", + "value": 1740 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "1740", + "value": 1740 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "36 (Min/Max 18/40)", + "value": 171799871524 + }, + "thresh": 0, + "value": 166, + "when_failed": "", + "worst": 166 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 508, + "minor_value": 41, + "string": "ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Hitachi/HGST Ultrastar 7K4000", + "model_name": "HGST HUS724040ALA640", + "physical_block_size": 512, + "power_cycle_count": 27, + "power_on_time": { + "hours": 64012 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 36 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 7814037168, + "bytes": 4000787030016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-Hitachi_Ultrastar_A7K2000-Hitachi_HUA722010CLA330-sdr.json b/testdata/sat-Hitachi_Ultrastar_A7K2000-Hitachi_HUA722010CLA330-sdr.json new file mode 100644 index 0000000..f60a014 --- /dev/null +++ b/testdata/sat-Hitachi_Ultrastar_A7K2000-Hitachi_HUA722010CLA330-sdr.json @@ -0,0 +1,477 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "90", + "value": 90 + }, + "thresh": 54, + "value": 137, + "when_failed": "", + "worst": 137 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "309 (Average 308)", + "value": 25789989173 + }, + "thresh": 24, + "value": 123, + "when_failed": "", + "worst": 123 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "34", + "value": 34 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "28", + "value": 28 + }, + "thresh": 20, + "value": 144, + "when_failed": "", + "worst": 144 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "54978", + "value": 54978 + }, + "thresh": 0, + "value": 93, + "when_failed": "", + "worst": 93 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "34", + "value": 34 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "87", + "value": 87 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "87", + "value": 87 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (Min/Max 18/38)", + "value": 163209936920 + }, + "thresh": 0, + "value": 250, + "when_failed": "", + "worst": 250 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 0 + } + }, + "ata_version": { + "major_value": 508, + "minor_value": 41, + "string": "ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sdr [SAT]", + "name": "/dev/sdr", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Hitachi Ultrastar A7K2000", + "model_name": "Hitachi HUA722010CLA330", + "physical_block_size": 512, + "power_cycle_count": 34, + "power_on_time": { + "hours": 54978 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdr" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB016T4-sdf.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB016T4-sdf.json new file mode 100644 index 0000000..a959472 --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB016T4-sdf.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 16401, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "67329", + "value": 67329 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "32", + "value": 32 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "8670 (398 2929)", + "value": 1709588947422 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "23 (Min/Max 20/29)", + "value": 487850007 + }, + "thresh": 0, + "value": 77, + "when_failed": "", + "worst": 71 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "62594010", + "value": 62594010 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 15, + "when_failed": "", + "worst": 15 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "62594010", + "value": 62594010 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "12767078", + "value": 12767078 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "138721860", + "value": 138721860 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdf [SAT]", + "name": "/dev/sdf", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB016T4", + "physical_block_size": 4096, + "power_cycle_count": 32, + "power_on_time": { + "hours": 67329 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdf" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 23 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 3125627568, + "bytes": 1600321314816 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G4-sde.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G4-sde.json new file mode 100644 index 0000000..e1c1725 --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G4-sde.json @@ -0,0 +1,661 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "69412", + "value": 69412 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "55", + "value": 55 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "49", + "value": 49 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "640 (409 5906)", + "value": 1757028680320 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "16 (Min/Max 14/28)", + "value": 470679568 + }, + "thresh": 0, + "value": 84, + "when_failed": "", + "worst": 72 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "49", + "value": 49 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "15376617", + "value": 15376617 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "80619", + "value": 80619 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "4164380", + "value": 4164380 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 22, + "when_failed": "", + "worst": 22 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "15376617", + "value": 15376617 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "7177604", + "value": 7177604 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 272, + "string": "ACS-2 T13/2015-D revision 3" + }, + "device": { + "info_name": "/dev/sde [SAT]", + "name": "/dev/sde", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB240G4", + "physical_block_size": 4096, + "power_cycle_count": 55, + "power_on_time": { + "hours": 69412 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sde" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G6-sdf.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G6-sdf.json new file mode 100644 index 0000000..df4fad2 --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G6-sdf.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "67252", + "value": 67252 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "530", + "value": 530 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "524", + "value": 524 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "4490 (395 1377)", + "value": 1696602329482 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "19 (Min/Max 12/29)", + "value": 487325715 + }, + "thresh": 0, + "value": 81, + "when_failed": "", + "worst": 71 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "524", + "value": 524 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "10301402", + "value": 10301402 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "51917", + "value": 51917 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "4034425", + "value": 4034425 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 50, + "when_failed": "", + "worst": 50 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "10301402", + "value": 10301402 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "15956", + "value": 15956 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "13233052", + "value": 13233052 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 272, + "string": "ACS-2 T13/2015-D revision 3" + }, + "device": { + "info_name": "/dev/sdf [SAT]", + "name": "/dev/sdf", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB240G6", + "physical_block_size": 4096, + "power_cycle_count": 530, + "power_on_time": { + "hours": 67252 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdf" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 19 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G7-sdg.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G7-sdg.json new file mode 100644 index 0000000..776a13b --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB240G7-sdg.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "56721", + "value": 56721 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "15110 (349 5924)", + "value": 1499331836678 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "19 (Min/Max 15/25)", + "value": 420413459 + }, + "thresh": 0, + "value": 81, + "when_failed": "", + "worst": 75 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "22052942", + "value": 22052942 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "58818", + "value": 58818 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "2", + "value": 2 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "3403256", + "value": 3403256 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 43, + "when_failed": "", + "worst": 43 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "22052942", + "value": 22052942 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "568982", + "value": 568982 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "30298233", + "value": 30298233 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdg [SAT]", + "name": "/dev/sdg", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB240G7", + "physical_block_size": 4096, + "power_cycle_count": 11, + "power_on_time": { + "hours": 56721 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdg" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 19 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G4-sda.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G4-sda.json new file mode 100644 index 0000000..dec633e --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G4-sda.json @@ -0,0 +1,661 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "56437", + "value": 56437 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "75", + "value": 75 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "62", + "value": 62 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "623 (328 56)", + "value": 1408752943727 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "10 (Min/Max 4/26)", + "value": 436469770 + }, + "thresh": 0, + "value": 90, + "when_failed": "", + "worst": 80 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "62", + "value": 62 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "21", + "value": 21 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "3", + "value": 3 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "1209471", + "value": 1209471 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "2837", + "value": 2837 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "2205008", + "value": 2205008 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 95, + "when_failed": "", + "worst": 95 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "1209471", + "value": 1209471 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "4566495", + "value": 4566495 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 272, + "string": "ACS-2 T13/2015-D revision 3" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB480G4", + "physical_block_size": 4096, + "power_cycle_count": 75, + "power_on_time": { + "hours": 56437 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 21 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 740785439, + "bytes": 379282144768 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G6-sda.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G6-sda.json new file mode 100644 index 0000000..5979e9c --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G6-sda.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 16403, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "54278", + "value": 54278 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "50", + "value": 50 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "45", + "value": 45 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "5060 (319 2829)", + "value": 1370279973828 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "28 (Min/Max 24/37)", + "value": 622329884 + }, + "thresh": 0, + "value": 72, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "45", + "value": 45 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "28", + "value": 28 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "10960529", + "value": 10960529 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 64, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "10960529", + "value": 10960529 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "1480522", + "value": 1480522 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "18148965", + "value": 18148965 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 272, + "string": "ACS-2 T13/2015-D revision 3" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB480G6", + "physical_block_size": 512, + "power_cycle_count": 50, + "power_on_time": { + "hours": 54278 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 28 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G7-sda.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G7-sda.json new file mode 100644 index 0000000..dbccf3a --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB480G7-sda.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "52003", + "value": 52003 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "32", + "value": 32 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "14970 (341 8524)", + "value": 1465142491770 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "22 (Min/Max 19/26)", + "value": 437452822 + }, + "thresh": 0, + "value": 78, + "when_failed": "", + "worst": 75 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "849547", + "value": 849547 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "2519", + "value": 2519 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "58", + "value": 58 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "3120097", + "value": 3120097 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "849547", + "value": 849547 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "1200534", + "value": 1200534 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "2286373", + "value": 2286373 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB480G7", + "physical_block_size": 4096, + "power_cycle_count": 32, + "power_on_time": { + "hours": 52003 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 22 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G4-sda.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G4-sda.json new file mode 100644 index 0000000..e34ec51 --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G4-sda.json @@ -0,0 +1,661 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "64506", + "value": 64506 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "28", + "value": 28 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "604 (376 3794)", + "value": 1615156347484 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "23 (Min/Max 19/35)", + "value": 588447767 + }, + "thresh": 0, + "value": 77, + "when_failed": "", + "worst": 65 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "34", + "value": 34 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "15017138", + "value": 15017138 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "35154", + "value": 35154 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "56", + "value": 56 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "3870254", + "value": 3870254 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 66, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "15017138", + "value": 15017138 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "19209582", + "value": 19209582 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 272, + "string": "ACS-2 T13/2015-D revision 3" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB800G4", + "physical_block_size": 4096, + "power_cycle_count": 28, + "power_on_time": { + "hours": 64506 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 34 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 1562824368, + "bytes": 800166076416 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G6-sdb.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G6-sdb.json new file mode 100644 index 0000000..dfade57 --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G6-sdb.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "68009", + "value": 68009 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "17", + "value": 17 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "6710 (395 5453)", + "value": 1696869456438 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "30 (Min/Max 28/39)", + "value": 656146462 + }, + "thresh": 0, + "value": 70, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "17", + "value": 17 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "30", + "value": 30 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "27887319", + "value": 27887319 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "48455", + "value": 48455 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "4080377", + "value": 4080377 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 53, + "when_failed": "", + "worst": 53 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "27887319", + "value": 27887319 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "10569812", + "value": 10569812 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "38991517", + "value": 38991517 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 272, + "string": "ACS-2 T13/2015-D revision 3" + }, + "device": { + "info_name": "/dev/sdb [SAT]", + "name": "/dev/sdb", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB800G6", + "physical_block_size": 4096, + "power_cycle_count": 27, + "power_on_time": { + "hours": 68009 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdb" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 30 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 1562824368, + "bytes": 800166076416 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G7-sdh.json b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G7-sdh.json new file mode 100644 index 0000000..0bf938e --- /dev/null +++ b/testdata/sat-Intel_730_and_DC_S35x0_3610_3700_Series_SSDs-INTEL_SSDSC2BB800G7-sdh.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "55188", + "value": 55188 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "20", + "value": 20 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "14690 (351 4320)", + "value": 1507816651106 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Temperature_Case", + "raw": { + "string": "26 (Min/Max 19/40)", + "value": 672333850 + }, + "thresh": 0, + "value": 74, + "when_failed": "", + "worst": 61 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "20", + "value": 20 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Internal", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "15041780", + "value": 15041780 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "18780", + "value": 18780 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "3311272", + "value": 3311272 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 82, + "when_failed": "", + "worst": 82 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "15041780", + "value": 15041780 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "6879182", + "value": 6879182 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "26624256", + "value": 26624256 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdh [SAT]", + "name": "/dev/sdh", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel 730 and DC S35x0/3610/3700 Series SSDs", + "model_name": "INTEL SSDSC2BB800G7", + "physical_block_size": 4096, + "power_cycle_count": 25, + "power_on_time": { + "hours": 55188 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdh" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 1562824368, + "bytes": 800166076416 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S3520_Series_SSDs-INTEL_SSDSC2BB016T7-sdc.json b/testdata/sat-Intel_S3520_Series_SSDs-INTEL_SSDSC2BB016T7-sdc.json new file mode 100644 index 0000000..7b47697 --- /dev/null +++ b/testdata/sat-Intel_S3520_Series_SSDs-INTEL_SSDSC2BB016T7-sdc.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "43494", + "value": 43494 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "39", + "value": 39 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "37", + "value": 37 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "13420 (297 4078)", + "value": 1275872556140 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Case_Temperature", + "raw": { + "string": "26 (Min/Max 19/30)", + "value": 504561690 + }, + "thresh": 0, + "value": 74, + "when_failed": "", + "worst": 70 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "37", + "value": 37 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Drive_Temperature", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "2772743", + "value": 2772743 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "4075", + "value": 4075 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "34", + "value": 34 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "2609411", + "value": 2609411 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 97, + "when_failed": "", + "worst": 97 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "2772743", + "value": 2772743 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "1472973", + "value": 1472973 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "10636875", + "value": 10636875 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S3520 Series SSDs", + "model_name": "INTEL SSDSC2BB016T7", + "physical_block_size": 4096, + "power_cycle_count": 39, + "power_on_time": { + "hours": 43494 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 3125627568, + "bytes": 1600321314816 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019T7-sdq.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019T7-sdq.json new file mode 100644 index 0000000..f89836f --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019T7-sdq.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "20904", + "value": 20904 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "13", + "value": 13 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2551 (141 2657)", + "value": 605764520439 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "26 (Min/Max 16/35)", + "value": 588251162 + }, + "thresh": 0, + "value": 74, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "13", + "value": 13 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "29748724", + "value": 29748724 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "15544", + "value": 15544 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "1254219", + "value": 1254219 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 85, + "when_failed": "", + "worst": 85 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "29748724", + "value": 29748724 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "5578367", + "value": 5578367 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "54777356", + "value": 54777356 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdq [SAT]", + "name": "/dev/sdq", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB019T7", + "physical_block_size": 4096, + "power_cycle_count": 19, + "power_on_time": { + "hours": 20904 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdq" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 3750748848, + "bytes": 1920383410176 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019T8-sdr.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019T8-sdr.json new file mode 100644 index 0000000..ec1c8fb --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019T8-sdr.json @@ -0,0 +1,705 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "17704", + "value": 17704 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2517 (23 65535)", + "value": 103079152085 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "25 (Min/Max 20/35)", + "value": 588513305 + }, + "thresh": 0, + "value": 75, + "when_failed": "", + "worst": 67 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "2856519", + "value": 2856519 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "1781", + "value": 1781 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "1062252", + "value": 1062252 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 235, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2517 (23 65535)", + "value": 103079152085 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "2856519", + "value": 2856519 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "505266", + "value": 505266 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "12454492", + "value": 12454492 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdr [SAT]", + "name": "/dev/sdr", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB019T8", + "physical_block_size": 4096, + "power_cycle_count": 23, + "power_on_time": { + "hours": 17704 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdr" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 3750748848, + "bytes": 1920383410176 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019TZ-sdr.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019TZ-sdr.json new file mode 100644 index 0000000..c1a7dee --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB019TZ-sdr.json @@ -0,0 +1,771 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 67, + "when_failed": "", + "worst": 67 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "3260", + "value": 3260 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2548 (7 65535)", + "value": 34359675380 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "25 (Min/Max 22/37)", + "value": 622198809 + }, + "thresh": 0, + "value": 75, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "1649413", + "value": 1649413 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "1044", + "value": 1044 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "4", + "value": 4 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "195629", + "value": 195629 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 229, + "name": "Unknown_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 230, + "name": "Unknown_SSD_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 235, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2548 (7 65535)", + "value": 34359675380 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "1649413", + "value": 1649413 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "80424", + "value": 80424 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "8211577", + "value": 8211577 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Unknown_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdr [SAT]", + "name": "/dev/sdr", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB019TZ", + "physical_block_size": 4096, + "power_cycle_count": 7, + "power_on_time": { + "hours": 3260 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdr" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 3750748848, + "bytes": 1920383410176 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G7-sdd.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G7-sdd.json new file mode 100644 index 0000000..371511e --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G7-sdd.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "4", + "value": 4 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "49466", + "value": 49466 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "22 (304 9536)", + "value": 1306295009302 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "23 (Min/Max 20/31)", + "value": 521404439 + }, + "thresh": 0, + "value": 77, + "when_failed": "", + "worst": 69 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "4149381", + "value": 4149381 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "46141", + "value": 46141 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "2967952", + "value": 2967952 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 55, + "when_failed": "", + "worst": 55 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "4149381", + "value": 4149381 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "1233691", + "value": 1233691 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "25496755", + "value": 25496755 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdd [SAT]", + "name": "/dev/sdd", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB240G7", + "physical_block_size": 4096, + "power_cycle_count": 12, + "power_on_time": { + "hours": 49466 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdd" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 23 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G8-sdc.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G8-sdc.json new file mode 100644 index 0000000..f727caa --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB240G8-sdc.json @@ -0,0 +1,705 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "40786", + "value": 40786 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "725", + "value": 725 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "721", + "value": 721 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2673 (725 65535)", + "value": 3118146194033 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "20 (Min/Max 15/28)", + "value": 470745108 + }, + "thresh": 0, + "value": 80, + "when_failed": "", + "worst": 72 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "721", + "value": 721 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "20", + "value": 20 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "2575247", + "value": 2575247 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "12441", + "value": 12441 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "5", + "value": 5 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "2447065", + "value": 2447065 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 88, + "when_failed": "", + "worst": 88 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 235, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2673 (725 65535)", + "value": 3118146194033 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "2575247", + "value": 2575247 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "136620", + "value": 136620 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "12186490", + "value": 12186490 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB240G8", + "physical_block_size": 4096, + "power_cycle_count": 725, + "power_on_time": { + "hours": 40786 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 20 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB480G7-sda.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB480G7-sda.json new file mode 100644 index 0000000..c0f4f13 --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB480G7-sda.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "23289", + "value": 23289 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2421 (158 10045)", + "value": 679263144309 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "29 (Min/Max 26/40)", + "value": 672792605 + }, + "thresh": 0, + "value": 71, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "46901", + "value": 46901 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "204", + "value": 204 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "50", + "value": 50 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "1397343", + "value": 1397343 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "46901", + "value": 46901 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "47930", + "value": 47930 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "202843", + "value": 202843 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB480G7", + "physical_block_size": 4096, + "power_cycle_count": 22, + "power_on_time": { + "hours": 23289 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 29 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB480G8-sdm.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB480G8-sdm.json new file mode 100644 index 0000000..88c7e94 --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB480G8-sdm.json @@ -0,0 +1,697 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "13017", + "value": 13017 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "10", + "value": 10 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2475 (10 65535)", + "value": 47244577195 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "30 (Min/Max 22/34)", + "value": 571867166 + }, + "thresh": 0, + "value": 70, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "30", + "value": 30 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "14308", + "value": 14308 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "51", + "value": 51 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "98", + "value": 98 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "781077", + "value": 781077 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 235, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2475 (10 65535)", + "value": 47244577195 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "14308", + "value": 14308 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "1059500", + "value": 1059500 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "95488", + "value": 95488 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdm [SAT]", + "name": "/dev/sdm", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB480G8", + "physical_block_size": 4096, + "power_cycle_count": 10, + "power_on_time": { + "hours": 13017 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdm" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 30 + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB960G7-sdi.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB960G7-sdi.json new file mode 100644 index 0000000..fa7edca --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB960G7-sdi.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "34454", + "value": 34454 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2451 (234 8250)", + "value": 1005563021715 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "22 (Min/Max 21/34)", + "value": 571801622 + }, + "thresh": 0, + "value": 78, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "12755342", + "value": 12755342 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "14397", + "value": 14397 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "61", + "value": 61 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "2067177", + "value": 2067177 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 86, + "when_failed": "", + "worst": 86 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "12755342", + "value": 12755342 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "20061059", + "value": 20061059 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "26106552", + "value": 26106552 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdi [SAT]", + "name": "/dev/sdi", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB960G7", + "physical_block_size": 4096, + "power_cycle_count": 31, + "power_on_time": { + "hours": 34454 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdi" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 22 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 1875385008, + "bytes": 960197124096 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB960G8-sde.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB960G8-sde.json new file mode 100644 index 0000000..fcde1ac --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KB960G8-sde.json @@ -0,0 +1,705 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "13383", + "value": 13383 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "14", + "value": 14 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2523 (14 65535)", + "value": 64424446427 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "23 (Min/Max 21/34)", + "value": 571801623 + }, + "thresh": 0, + "value": 77, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "215581", + "value": 215581 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "573", + "value": 573 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "17", + "value": 17 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "803020", + "value": 803020 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 235, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2523 (14 65535)", + "value": 64424446427 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "215581", + "value": 215581 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "47096", + "value": 47096 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "2122543", + "value": 2122543 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sde [SAT]", + "name": "/dev/sde", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KB960G8", + "physical_block_size": 4096, + "power_cycle_count": 14, + "power_on_time": { + "hours": 13383 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sde" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 23 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 1875385008, + "bytes": 960197124096 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KG480G8-sda.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KG480G8-sda.json new file mode 100644 index 0000000..2c6a0b7 --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSC2KG480G8-sda.json @@ -0,0 +1,697 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "2460", + "value": 2460 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2405 (23 65535)", + "value": 103079151973 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "32 (Min/Max 28/37)", + "value": 622592032 + }, + "thresh": 0, + "value": 68, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "32", + "value": 32 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "18612", + "value": 18612 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "51", + "value": 51 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "91", + "value": 91 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "147623", + "value": 147623 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 235, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2405 (23 65535)", + "value": 103079151973 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "18612", + "value": 18612 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "200257", + "value": 200257 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "110747", + "value": 110747 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSC2KG480G8", + "physical_block_size": 4096, + "power_cycle_count": 23, + "power_on_time": { + "hours": 2460 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 32 + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSCKKB480G8-sda.json b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSCKKB480G8-sda.json new file mode 100644 index 0000000..4156754 --- /dev/null +++ b/testdata/sat-Intel_S4510_S4610_S4500_S4600_Series_SSDs-INTEL_SSDSCKKB480G8-sda.json @@ -0,0 +1,705 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "3618", + "value": 3618 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "61", + "value": 61 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 175, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2242 (62 65535)", + "value": 270582876354 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Downshift_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 90, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Drive_Temperature", + "raw": { + "string": "34 (Min/Max 26/42)", + "value": 706347042 + }, + "thresh": 0, + "value": 66, + "when_failed": "", + "worst": 59 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "34", + "value": 34 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Pending_Sector_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 225, + "name": "Host_Writes_32MiB", + "raw": { + "string": "100661", + "value": 100661 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 226, + "name": "Workld_Media_Wear_Indic", + "raw": { + "string": "81", + "value": 81 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 227, + "name": "Workld_Host_Reads_Perc", + "raw": { + "string": "9", + "value": 9 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 228, + "name": "Workload_Minutes", + "raw": { + "string": "216691", + "value": 216691 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Media_Wearout_Indicator", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 234, + "name": "Thermal_Throttle_Status", + "raw": { + "string": "0/0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 235, + "name": "Power_Loss_Cap_Test", + "raw": { + "string": "2242 (62 65535)", + "value": 270582876354 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "100661", + "value": 100661 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "12175", + "value": 12175 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "NAND_Writes_32MiB", + "raw": { + "string": "140496", + "value": 140496 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2044, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 7, + "name": "M.2" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Intel S4510/S4610/S4500/S4600 Series SSDs", + "model_name": "INTEL SSDSCKKB480G8", + "physical_block_size": 4096, + "power_cycle_count": 61, + "power_on_time": { + "hours": 3618 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 34 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 6083300 + } +} \ No newline at end of file diff --git a/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5210_MTFDDAK960QDE-sdm.json b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5210_MTFDDAK960QDE-sdm.json new file mode 100644 index 0000000..b8c8647 --- /dev/null +++ b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5210_MTFDDAK960QDE-sdm.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "3815", + "value": 3815 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Reserved_Block_Pct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 173, + "name": "Avg_Block-Erase_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unexpect_Power_Loss_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Int_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "19 (Min/Max 11/28)", + "value": 120259805203 + }, + "thresh": 0, + "value": 81, + "when_failed": "", + "worst": 72 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 202, + "name": "Percent_Lifetime_Remain", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 206, + "name": "Write_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Total_LBAs_Written", + "raw": { + "string": "272291616", + "value": 272291616 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Host_Program_Page_Count", + "raw": { + "string": "8509113", + "value": 8509113 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 248, + "name": "Bckgnd_Program_Page_Cnt", + "raw": { + "string": "1059955", + "value": 1059955 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "2946", + "value": 2946 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 210, + "name": "RAIN_Success_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2040, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdm [SAT]", + "name": "/dev/sdm", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Micron 5100 Pro / 52x0 / 5300 SSDs", + "model_name": "Micron_5210_MTFDDAK960QDE", + "physical_block_size": 4096, + "power_cycle_count": 1, + "power_on_time": { + "hours": 3815 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdm" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 19 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 1875385008, + "bytes": 960197124096 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 41077 + } +} \ No newline at end of file diff --git a/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK1T9TDS-sda.json b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK1T9TDS-sda.json new file mode 100644 index 0000000..5ef25bf --- /dev/null +++ b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK1T9TDS-sda.json @@ -0,0 +1,727 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "4175", + "value": 4175 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Reserved_Block_Pct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 173, + "name": "Avg_Block-Erase_Count", + "raw": { + "string": "83", + "value": 83 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unexpect_Power_Loss_Ct", + "raw": { + "string": "16", + "value": 16 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Int_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (Min/Max 13/35)", + "value": 150324707352 + }, + "thresh": 0, + "value": 76, + "when_failed": "", + "worst": 65 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "24", + "value": 24 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 202, + "name": "Percent_Lifetime_Remain", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 206, + "name": "Write_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Total_LBAs_Written", + "raw": { + "string": "130006927240", + "value": 130006927240 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Host_Program_Page_Count", + "raw": { + "string": "4062707571", + "value": 4062707571 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 248, + "name": "Bckgnd_Program_Page_Cnt", + "raw": { + "string": "8824675195", + "value": 8824675195 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "4800", + "value": 4800 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 210, + "name": "RAIN_Success_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 211, + "name": "Integ_Scan_Complete_Cnt", + "raw": { + "string": "42", + "value": 42 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 212, + "name": "Integ_Scan_Folding_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4088, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Micron 5100 Pro / 52x0 / 5300 SSDs", + "model_name": "Micron_5300_MTFDDAK1T9TDS", + "physical_block_size": 4096, + "power_cycle_count": 19, + "power_on_time": { + "hours": 4175 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 3750748848, + "bytes": 1920383410176 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 41077 + } +} \ No newline at end of file diff --git a/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK240TDS-sda.json b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK240TDS-sda.json new file mode 100644 index 0000000..3a7b797 --- /dev/null +++ b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK240TDS-sda.json @@ -0,0 +1,727 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "22926", + "value": 22926 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Reserved_Block_Pct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 173, + "name": "Avg_Block-Erase_Count", + "raw": { + "string": "16", + "value": 16 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unexpect_Power_Loss_Ct", + "raw": { + "string": "21", + "value": 21 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Int_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "10", + "value": 10 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "27 (Min/Max 16/33)", + "value": 141734969371 + }, + "thresh": 0, + "value": 73, + "when_failed": "", + "worst": 67 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 202, + "name": "Percent_Lifetime_Remain", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 206, + "name": "Write_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Total_LBAs_Written", + "raw": { + "string": "13081275632", + "value": 13081275632 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Host_Program_Page_Count", + "raw": { + "string": "429271075", + "value": 429271075 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 248, + "name": "Bckgnd_Program_Page_Cnt", + "raw": { + "string": "33907658", + "value": 33907658 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "2305", + "value": 2305 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 210, + "name": "RAIN_Success_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 211, + "name": "Integ_Scan_Complete_Cnt", + "raw": { + "string": "150", + "value": 150 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 212, + "name": "Integ_Scan_Folding_Cnt", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4088, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Micron 5100 Pro / 52x0 / 5300 SSDs", + "model_name": "Micron_5300_MTFDDAK240TDS", + "physical_block_size": 4096, + "power_cycle_count": 23, + "power_on_time": { + "hours": 22926 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 27 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 41077 + } +} \ No newline at end of file diff --git a/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK3T8TDS-sdc.json b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK3T8TDS-sdc.json new file mode 100644 index 0000000..84170fa --- /dev/null +++ b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK3T8TDS-sdc.json @@ -0,0 +1,727 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "14643", + "value": 14643 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "58", + "value": 58 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Reserved_Block_Pct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 173, + "name": "Avg_Block-Erase_Count", + "raw": { + "string": "40", + "value": 40 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unexpect_Power_Loss_Ct", + "raw": { + "string": "53", + "value": 53 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Int_Downshift_Ct", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "23 (Min/Max 14/38)", + "value": 163209674775 + }, + "thresh": 0, + "value": 77, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 202, + "name": "Percent_Lifetime_Remain", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 206, + "name": "Write_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Total_LBAs_Written", + "raw": { + "string": "400292112400", + "value": 400292112400 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Host_Program_Page_Count", + "raw": { + "string": "12774640139", + "value": 12774640139 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 248, + "name": "Bckgnd_Program_Page_Cnt", + "raw": { + "string": "578699417", + "value": 578699417 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "14081", + "value": 14081 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 210, + "name": "RAIN_Success_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 211, + "name": "Integ_Scan_Complete_Cnt", + "raw": { + "string": "123", + "value": 123 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 212, + "name": "Integ_Scan_Folding_Cnt", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4088, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Micron 5100 Pro / 52x0 / 5300 SSDs", + "model_name": "Micron_5300_MTFDDAK3T8TDS", + "physical_block_size": 4096, + "power_cycle_count": 58, + "power_on_time": { + "hours": 14643 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 23 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 7501476528, + "bytes": 3840755982336 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 41077 + } +} \ No newline at end of file diff --git a/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK960TDS-sdi.json b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK960TDS-sdi.json new file mode 100644 index 0000000..ab5fbe5 --- /dev/null +++ b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAK960TDS-sdi.json @@ -0,0 +1,727 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "26409", + "value": 26409 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "3", + "value": 3 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Reserved_Block_Pct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 173, + "name": "Avg_Block-Erase_Count", + "raw": { + "string": "99", + "value": 99 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unexpect_Power_Loss_Ct", + "raw": { + "string": "2", + "value": 2 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Int_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "8", + "value": 8 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "23 (Min/Max 15/33)", + "value": 141734903831 + }, + "thresh": 0, + "value": 77, + "when_failed": "", + "worst": 67 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 202, + "name": "Percent_Lifetime_Remain", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 1, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 206, + "name": "Write_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Total_LBAs_Written", + "raw": { + "string": "153586889664", + "value": 153586889664 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Host_Program_Page_Count", + "raw": { + "string": "4799589736", + "value": 4799589736 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 248, + "name": "Bckgnd_Program_Page_Cnt", + "raw": { + "string": "3340144569", + "value": 3340144569 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "2983", + "value": 2983 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 210, + "name": "RAIN_Success_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 211, + "name": "Integ_Scan_Complete_Cnt", + "raw": { + "string": "159", + "value": 159 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 212, + "name": "Integ_Scan_Folding_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4088, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdi [SAT]", + "name": "/dev/sdi", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Micron 5100 Pro / 52x0 / 5300 SSDs", + "model_name": "Micron_5300_MTFDDAK960TDS", + "physical_block_size": 4096, + "power_cycle_count": 3, + "power_on_time": { + "hours": 26409 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdi" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 23 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 1875385008, + "bytes": 960197124096 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 41077 + } +} \ No newline at end of file diff --git a/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAV240TDS-sda.json b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAV240TDS-sda.json new file mode 100644 index 0000000..6cda6a0 --- /dev/null +++ b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAV240TDS-sda.json @@ -0,0 +1,727 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "10561", + "value": 10561 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "53", + "value": 53 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Reserved_Block_Pct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 173, + "name": "Avg_Block-Erase_Count", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unexpect_Power_Loss_Ct", + "raw": { + "string": "17", + "value": 17 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Int_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "33", + "value": 33 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "28 (Min/Max 23/50)", + "value": 214749872156 + }, + "thresh": 0, + "value": 72, + "when_failed": "", + "worst": 50 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 202, + "name": "Percent_Lifetime_Remain", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 206, + "name": "Write_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Total_LBAs_Written", + "raw": { + "string": "10945093682", + "value": 10945093682 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Host_Program_Page_Count", + "raw": { + "string": "346714837", + "value": 346714837 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 248, + "name": "Bckgnd_Program_Page_Cnt", + "raw": { + "string": "24007173", + "value": 24007173 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "2305", + "value": 2305 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 210, + "name": "RAIN_Success_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 211, + "name": "Integ_Scan_Complete_Cnt", + "raw": { + "string": "110", + "value": 110 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 212, + "name": "Integ_Scan_Folding_Cnt", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4088, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 7, + "name": "M.2" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Micron 5100 Pro / 52x0 / 5300 SSDs", + "model_name": "Micron_5300_MTFDDAV240TDS", + "physical_block_size": 4096, + "power_cycle_count": 53, + "power_on_time": { + "hours": 10561 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 28 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 41077 + } +} \ No newline at end of file diff --git a/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAV480TDS-sda.json b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAV480TDS-sda.json new file mode 100644 index 0000000..d6d60b7 --- /dev/null +++ b/testdata/sat-Micron_5100_Pro___52x0___5300_SSDs-Micron_5300_MTFDDAV480TDS-sda.json @@ -0,0 +1,727 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "4111", + "value": 4111 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "46", + "value": 46 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Reserved_Block_Pct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 173, + "name": "Avg_Block-Erase_Count", + "raw": { + "string": "13", + "value": 13 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unexpect_Power_Loss_Ct", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Int_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "35 (Min/Max 24/51)", + "value": 219044904995 + }, + "thresh": 0, + "value": 65, + "when_failed": "", + "worst": 49 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 202, + "name": "Percent_Lifetime_Remain", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 206, + "name": "Write_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Total_LBAs_Written", + "raw": { + "string": "17744378123", + "value": 17744378123 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Host_Program_Page_Count", + "raw": { + "string": "557165843", + "value": 557165843 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 248, + "name": "Bckgnd_Program_Page_Cnt", + "raw": { + "string": "24916201", + "value": 24916201 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "2161", + "value": 2161 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 210, + "name": "RAIN_Success_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 211, + "name": "Integ_Scan_Complete_Cnt", + "raw": { + "string": "65", + "value": 65 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 212, + "name": "Integ_Scan_Folding_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4088, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 7, + "name": "M.2" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Micron 5100 Pro / 52x0 / 5300 SSDs", + "model_name": "Micron_5300_MTFDDAV480TDS", + "physical_block_size": 4096, + "power_cycle_count": 46, + "power_on_time": { + "hours": 4111 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 35 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 41077 + } +} \ No newline at end of file diff --git a/testdata/sat-Micron_5100___52x0___5300___5400_SSDs-Micron_5300_MTFDDAK480TDS-sda.json b/testdata/sat-Micron_5100___52x0___5300___5400_SSDs-Micron_5300_MTFDDAK480TDS-sda.json new file mode 100644 index 0000000..5817007 --- /dev/null +++ b/testdata/sat-Micron_5100___52x0___5300___5400_SSDs-Micron_5300_MTFDDAK480TDS-sda.json @@ -0,0 +1,719 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "19394", + "value": 19394 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "53", + "value": 53 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 170, + "name": "Reserved_Block_Pct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 171, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 173, + "name": "Avg_Block-Erase_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 174, + "name": "Unexpect_Power_Loss_Ct", + "raw": { + "string": "44", + "value": 44 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "SATA_Int_Downshift_Ct", + "raw": { + "string": "3", + "value": 3 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "27 (Min/Max 16/35)", + "value": 150324903963 + }, + "thresh": 0, + "value": 73, + "when_failed": "", + "worst": 65 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "2", + "value": 2 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 202, + "name": "Percent_Lifetime_Remain", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-- ", + "updated_online": true, + "value": 14 + }, + "id": 206, + "name": "Write_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Total_LBAs_Written", + "raw": { + "string": "7916536962", + "value": 7916536962 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Host_Program_Page_Count", + "raw": { + "string": "255173508", + "value": 255173508 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 248, + "name": "Bckgnd_Program_Page_Cnt", + "raw": { + "string": "24600708", + "value": 24600708 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "2161", + "value": 2161 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 210, + "name": "RAIN_Success_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 211, + "name": "Integ_Scan_Complete_Cnt", + "raw": { + "string": "141", + "value": 141 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 212, + "name": "Integ_Scan_Folding_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4088, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Micron 5100 / 52x0 / 5300 / 5400 SSDs", + "model_name": "Micron_5300_MTFDDAK480TDS", + "physical_block_size": 4096, + "power_cycle_count": 53, + "power_on_time": { + "hours": 19394 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 27 + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 41077 + } +} \ No newline at end of file diff --git a/testdata/sat-Phison_Driven_SSDs-KINGSTON_SA400M8120G-sda.json b/testdata/sat-Phison_Driven_SSDs-KINGSTON_SA400M8120G-sda.json new file mode 100644 index 0000000..509b842 --- /dev/null +++ b/testdata/sat-Phison_Driven_SSDs-KINGSTON_SA400M8120G-sda.json @@ -0,0 +1,673 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "4994", + "value": 4994 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "8", + "value": 8 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 148, + "name": "Unknown_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 149, + "name": "Unknown_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 167, + "name": "Write_Protect_Mode", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 168, + "name": "SATA_Phy_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 169, + "name": "Bad_Block_Rate", + "raw": { + "string": "4", + "value": 4 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 170, + "name": "Bad_Blk_Ct_Erl/Lat", + "raw": { + "string": "0/6", + "value": 6 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 172, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 173, + "name": "MaxAvgErase_Ct", + "raw": { + "string": "50 (Average 17)", + "value": 1114162 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 181, + "name": "Program_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 182, + "name": "Erase_Fail_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "3", + "value": 3 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "38 (Min/Max 28/39)", + "value": 120261640230 + }, + "thresh": 0, + "value": 38, + "when_failed": "", + "worst": 39 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "SATA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 218, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 231, + "name": "SSD_Life_Left", + "raw": { + "string": "98", + "value": 98 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 233, + "name": "Flash_Writes_GiB", + "raw": { + "string": "979", + "value": 979 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Lifetime_Writes_GiB", + "raw": { + "string": "398", + "value": 398 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Lifetime_Reads_GiB", + "raw": { + "string": "937", + "value": 937 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 244, + "name": "Average_Erase_Count", + "raw": { + "string": "17", + "value": 17 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 245, + "name": "Max_Erase_Count", + "raw": { + "string": "50", + "value": 50 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 246, + "name": "Total_Erase_Count", + "raw": { + "string": "125544", + "value": 125544 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_version": { + "major_value": 2040, + "minor_value": 283, + "string": "ACS-3 T13/2161-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Phison Driven SSDs", + "model_name": "KINGSTON SA400M8120G", + "physical_block_size": 512, + "power_cycle_count": 8, + "power_on_time": { + "hours": 4994 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 4, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 38 + }, + "trim": { + "deterministic": false, + "supported": true, + "zeroed": false + }, + "user_capacity": { + "blocks": 234441648, + "bytes": 120034123776 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 9911 + } +} \ No newline at end of file diff --git a/testdata/sat-Phison_Driven_SSDs-KINGSTON_SKC400S371T-sda.json b/testdata/sat-Phison_Driven_SSDs-KINGSTON_SKC400S371T-sda.json new file mode 100644 index 0000000..2ab541c --- /dev/null +++ b/testdata/sat-Phison_Driven_SSDs-KINGSTON_SKC400S371T-sda.json @@ -0,0 +1,705 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Not_In_Use", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Not_In_Use", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 5, + "name": "Retired_Block_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Not_In_Use", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Not_In_Use", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "54450", + "value": 54450 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 168, + "name": "SATA_Phy_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 170, + "name": "Bad_Blk_Ct_Erl/Lat", + "raw": { + "string": "1/1162", + "value": 16778378 + }, + "thresh": 10, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 173, + "name": "MaxAvgErase_Ct", + "raw": { + "string": "888 (Average 808)", + "value": 52953976 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 175, + "name": "Not_In_Use", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 192, + "name": "Unsafe_Shutdown_Count", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "31 (Min/Max 23/44)", + "value": 188980068383 + }, + "thresh": 30, + "value": 69, + "when_failed": "", + "worst": 56 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Not_In_Use", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 199, + "name": "SATA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 218, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 231, + "name": "SSD_Life_Left", + "raw": { + "string": "74", + "value": 74 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 233, + "name": "Flash_Writes_GiB", + "raw": { + "string": "840007", + "value": 840007 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 240, + "name": "Not_In_Use", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 241, + "name": "Lifetime_Writes_GiB", + "raw": { + "string": "391741", + "value": 391741 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 242, + "name": "Lifetime_Reads_GiB", + "raw": { + "string": "1837742", + "value": 1837742 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 244, + "name": "Average_Erase_Count", + "raw": { + "string": "808", + "value": 808 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 245, + "name": "Max_Erase_Count", + "raw": { + "string": "888", + "value": 888 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 246, + "name": "Total_Erase_Count", + "raw": { + "string": "217844032", + "value": 217844032 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1016, + "minor_value": 0, + "string": "ACS-2 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Phison Driven SSDs", + "model_name": "KINGSTON SKC400S371T", + "physical_block_size": 512, + "power_cycle_count": 23, + "power_on_time": { + "hours": 54450 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 31 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 2000409264, + "bytes": 1024209543168 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 9911 + } +} \ No newline at end of file diff --git a/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7L3240HCHQ-00A07-sda.json b/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7L3240HCHQ-00A07-sda.json new file mode 100644 index 0000000..f933f82 --- /dev/null +++ b/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7L3240HCHQ-00A07-sda.json @@ -0,0 +1,675 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "10106", + "value": 10106 + }, + "thresh": 0, + "value": 97, + "when_failed": "", + "worst": 97 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "17", + "value": 17 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 177, + "name": "Wear_Leveling_Count", + "raw": { + "string": "114", + "value": 114 + }, + "thresh": 5, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 179, + "name": "Used_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "220", + "value": 220 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 181, + "name": "Program_Fail_Cnt_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 182, + "name": "Erase_Fail_Count_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "30", + "value": 30 + }, + "thresh": 0, + "value": 70, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "30 (Min/Max 24/40)", + "value": 171800264734 + }, + "thresh": 0, + "value": 70, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "ECC_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 202, + "name": "Exception_Mode_Status", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 235, + "name": "POR_Recovery_Count", + "raw": { + "string": "14", + "value": 14 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "652566252", + "value": 652566252 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "28190000396", + "value": 28190000396 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "SATA_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 244, + "name": "Thermal_Throttle_St", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 245, + "name": "Timed_Workld_Media_Wear", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Timed_Workld_RdWr_Ratio", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Timed_Workld_Timer", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 251, + "name": "NAND_Writes", + "raw": { + "string": "993815616", + "value": 993815616 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4092, + "minor_value": 94, + "string": "ACS-4 T13/BSR INCITS 529 revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Samsung based SSDs", + "model_name": "SAMSUNG MZ7L3240HCHQ-00A07", + "physical_block_size": 4096, + "power_cycle_count": 17, + "power_on_time": { + "hours": 10106 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 30 + }, + "user_capacity": { + "blocks": 468862128, + "bytes": 240057409536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 9528 + } +} \ No newline at end of file diff --git a/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7LH1T9HMLT-00005-sda.json b/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7LH1T9HMLT-00005-sda.json new file mode 100644 index 0000000..d1893c3 --- /dev/null +++ b/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7LH1T9HMLT-00005-sda.json @@ -0,0 +1,683 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "4717", + "value": 4717 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "53", + "value": 53 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 177, + "name": "Wear_Leveling_Count", + "raw": { + "string": "16", + "value": 16 + }, + "thresh": 5, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 179, + "name": "Used_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "5816", + "value": 5816 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 181, + "name": "Program_Fail_Cnt_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 182, + "name": "Erase_Fail_Count_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "24", + "value": 24 + }, + "thresh": 0, + "value": 76, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (Min/Max 21/40)", + "value": 171800068120 + }, + "thresh": 0, + "value": 76, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "ECC_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 202, + "name": "Exception_Mode_Status", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 235, + "name": "POR_Recovery_Count", + "raw": { + "string": "30", + "value": 30 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "63180483059", + "value": 63180483059 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "47974401521", + "value": 47974401521 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "SATA_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 244, + "name": "Thermal_Throttle_St", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 245, + "name": "Timed_Workld_Media_Wear", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Timed_Workld_RdWr_Ratio", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Timed_Workld_Timer", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 251, + "name": "NAND_Writes", + "raw": { + "string": "64213448960", + "value": 64213448960 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4092, + "minor_value": 94, + "string": "ACS-4 T13/BSR INCITS 529 revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Samsung based SSDs", + "model_name": "SAMSUNG MZ7LH1T9HMLT-00005", + "physical_block_size": 4096, + "power_cycle_count": 53, + "power_on_time": { + "hours": 4717 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 3750748848, + "bytes": 1920383410176 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 9528 + } +} \ No newline at end of file diff --git a/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7LH480HAHQ-00005-sda.json b/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7LH480HAHQ-00005-sda.json new file mode 100644 index 0000000..04cb89c --- /dev/null +++ b/testdata/sat-Samsung_based_SSDs-SAMSUNG_MZ7LH480HAHQ-00005-sda.json @@ -0,0 +1,675 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "7753", + "value": 7753 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "168", + "value": 168 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 177, + "name": "Wear_Leveling_Count", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 5, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 179, + "name": "Used_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "1434", + "value": 1434 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 181, + "name": "Program_Fail_Cnt_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 182, + "name": "Erase_Fail_Count_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 74, + "when_failed": "", + "worst": 67 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26 (Min/Max 20/33)", + "value": 141735231514 + }, + "thresh": 0, + "value": 74, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "ECC_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 202, + "name": "Exception_Mode_Status", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 235, + "name": "POR_Recovery_Count", + "raw": { + "string": "161", + "value": 161 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "1375952821", + "value": 1375952821 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "45092229071", + "value": 45092229071 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "SATA_Downshift_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 244, + "name": "Thermal_Throttle_St", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 245, + "name": "Timed_Workld_Media_Wear", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Timed_Workld_RdWr_Ratio", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Timed_Workld_Timer", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 251, + "name": "NAND_Writes", + "raw": { + "string": "1637892480", + "value": 1637892480 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4092, + "minor_value": 94, + "string": "ACS-4 T13/BSR INCITS 529 revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Samsung based SSDs", + "model_name": "SAMSUNG MZ7LH480HAHQ-00005", + "physical_block_size": 4096, + "power_cycle_count": 168, + "power_on_time": { + "hours": 7753 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 26 + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 9528 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Constellation_ES.3-ST1000NM0033-9ZM173-sdq.json b/testdata/sat-Seagate_Constellation_ES.3-ST1000NM0033-9ZM173-sdq.json new file mode 100644 index 0000000..2ab7635 --- /dev/null +++ b/testdata/sat-Seagate_Constellation_ES.3-ST1000NM0033-9ZM173-sdq.json @@ -0,0 +1,571 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "90736659", + "value": 90736659 + }, + "thresh": 44, + "value": 79, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 97, + "when_failed": "", + "worst": 96 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "569143298", + "value": 569143298 + }, + "thresh": 30, + "value": 87, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "76915", + "value": 76915 + }, + "thresh": 0, + "value": 13, + "when_failed": "", + "worst": 13 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "25 (Min/Max 21/31)", + "value": 521469977 + }, + "thresh": 45, + "value": 75, + "when_failed": "", + "worst": 59 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "3224", + "value": 3224 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25 (0 16 0 0 0)", + "value": 68719476761 + }, + "thresh": 0, + "value": 25, + "when_failed": "", + "worst": 41 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "90736659", + "value": 90736659 + }, + "thresh": 0, + "value": 37, + "when_failed": "", + "worst": 15 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1008, + "minor_value": 0, + "string": "ACS-2 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdq [SAT]", + "name": "/dev/sdq", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Constellation ES.3", + "model_name": "ST1000NM0033-9ZM173", + "physical_block_size": 512, + "power_cycle_count": 25, + "power_on_time": { + "hours": 76915 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 32 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdq" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Constellation_ES.3-ST2000NM0033-9ZM175-sde.json b/testdata/sat-Seagate_Constellation_ES.3-ST2000NM0033-9ZM175-sde.json new file mode 100644 index 0000000..629c62c --- /dev/null +++ b/testdata/sat-Seagate_Constellation_ES.3-ST2000NM0033-9ZM175-sde.json @@ -0,0 +1,571 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "138668267", + "value": 138668267 + }, + "thresh": 44, + "value": 81, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 96, + "when_failed": "", + "worst": 95 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "2134229173", + "value": 2134229173 + }, + "thresh": 30, + "value": 93, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "76590", + "value": 76590 + }, + "thresh": 0, + "value": 13, + "when_failed": "", + "worst": 13 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "17", + "value": 17 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "24 (Min/Max 18/33)", + "value": 554827800 + }, + "thresh": 45, + "value": 76, + "when_failed": "", + "worst": 56 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "3206", + "value": 3206 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (0 18 0 0 0)", + "value": 77309411352 + }, + "thresh": 0, + "value": 24, + "when_failed": "", + "worst": 44 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "138668267", + "value": 138668267 + }, + "thresh": 0, + "value": 21, + "when_failed": "", + "worst": 3 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1008, + "minor_value": 0, + "string": "ACS-2 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sde [SAT]", + "name": "/dev/sde", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Constellation ES.3", + "model_name": "ST2000NM0033-9ZM175", + "physical_block_size": 512, + "power_cycle_count": 17, + "power_on_time": { + "hours": 76590 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 32 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sde" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Constellation_ES.3-ST3000NM0033-9ZM178-sdc.json b/testdata/sat-Seagate_Constellation_ES.3-ST3000NM0033-9ZM178-sdc.json new file mode 100644 index 0000000..b8a1b28 --- /dev/null +++ b/testdata/sat-Seagate_Constellation_ES.3-ST3000NM0033-9ZM178-sdc.json @@ -0,0 +1,571 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "35422734", + "value": 35422734 + }, + "thresh": 44, + "value": 75, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 94, + "when_failed": "", + "worst": 93 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "140", + "value": 140 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "1788942287", + "value": 1788942287 + }, + "thresh": 30, + "value": 92, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "57744", + "value": 57744 + }, + "thresh": 0, + "value": 35, + "when_failed": "", + "worst": 35 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "140", + "value": 140 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "17180131332", + "value": 17180131332 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "22 (Min/Max 21/22)", + "value": 370475030 + }, + "thresh": 45, + "value": 78, + "when_failed": "", + "worst": 56 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "136", + "value": 136 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "2482", + "value": 2482 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "22 (0 18 0 0 0)", + "value": 77309411350 + }, + "thresh": 0, + "value": 22, + "when_failed": "", + "worst": 44 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "35422734", + "value": 35422734 + }, + "thresh": 0, + "value": 19, + "when_failed": "", + "worst": 6 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1008, + "minor_value": 0, + "string": "ACS-2 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 2, + "string": "3.0 Gb/s", + "units_per_second": 30 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Constellation ES.3", + "model_name": "ST3000NM0033-9ZM178", + "physical_block_size": 512, + "power_cycle_count": 140, + "power_on_time": { + "hours": 57744 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 32 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 22 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 5860533168, + "bytes": 3000592982016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Constellation_ES_SATA-ST32000644NS-sda.json b/testdata/sat-Seagate_Constellation_ES_SATA-ST32000644NS-sda.json new file mode 100644 index 0000000..4e0f326 --- /dev/null +++ b/testdata/sat-Seagate_Constellation_ES_SATA-ST32000644NS-sda.json @@ -0,0 +1,567 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "103699713", + "value": 103699713 + }, + "thresh": 44, + "value": 80, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 82 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 36, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "52383508216", + "value": 52383508216 + }, + "thresh": 30, + "value": 78, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "45080", + "value": 45080 + }, + "thresh": 0, + "value": 49, + "when_failed": "", + "worst": 49 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "27 (Min/Max 24/36)", + "value": 605552667 + }, + "thresh": 45, + "value": 73, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "27 (0 15 0 0 0)", + "value": 64424509467 + }, + "thresh": 0, + "value": 27, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "103699713", + "value": 103699713 + }, + "thresh": 0, + "value": 28, + "when_failed": "", + "worst": 18 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 496, + "minor_value": 41, + "string": "ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 2, + "string": "3.0 Gb/s", + "units_per_second": 30 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Constellation ES (SATA)", + "model_name": "ST32000644NS", + "physical_block_size": 512, + "power_cycle_count": 26, + "power_on_time": { + "hours": 45080 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 2.6", + "value": 16 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 27 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Constellation_ES_SATA_6Gb_s-ST500NM0011-sda.json b/testdata/sat-Seagate_Constellation_ES_SATA_6Gb_s-ST500NM0011-sda.json new file mode 100644 index 0000000..bc6bbcb --- /dev/null +++ b/testdata/sat-Seagate_Constellation_ES_SATA_6Gb_s-ST500NM0011-sda.json @@ -0,0 +1,571 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "171057050", + "value": 171057050 + }, + "thresh": 44, + "value": 82, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 96, + "when_failed": "", + "worst": 95 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "48", + "value": 48 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 36, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "987249722", + "value": 987249722 + }, + "thresh": 30, + "value": 90, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "76427", + "value": 76427 + }, + "thresh": 0, + "value": 13, + "when_failed": "", + "worst": 13 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "48", + "value": 48 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "32 (Min/Max 25/37)", + "value": 622395424 + }, + "thresh": 45, + "value": 68, + "when_failed": "", + "worst": 59 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "38", + "value": 38 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "65", + "value": 65 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "32 (0 18 0 0 0)", + "value": 77309411360 + }, + "thresh": 0, + "value": 32, + "when_failed": "", + "worst": 41 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "171057050", + "value": 171057050 + }, + "thresh": 0, + "value": 118, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 496, + "minor_value": 41, + "string": "ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Constellation ES (SATA 6Gb/s)", + "model_name": "ST500NM0011", + "physical_block_size": 512, + "power_cycle_count": 48, + "power_on_time": { + "hours": 76427 + }, + "rotation_rate": 7202, + "sata_version": { + "string": "SATA 3.0", + "value": 32 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 32 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 976773168, + "bytes": 500107862016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST10000NM0016-1TT101-sda.json b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST10000NM0016-1TT101-sda.json new file mode 100644 index 0000000..8db3652 --- /dev/null +++ b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST10000NM0016-1TT101-sda.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "167226072", + "value": 167226072 + }, + "thresh": 44, + "value": 82, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 94, + "when_failed": "", + "worst": 91 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "41", + "value": 41 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "2675401001", + "value": 2675401001 + }, + "thresh": 45, + "value": 94, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "34013 (105 34 0)", + "value": 115594749838557 + }, + "thresh": 0, + "value": 62, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "42", + "value": 42 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0 0 0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "49", + "value": 49 + }, + "thresh": 0, + "value": 51, + "when_failed": "", + "worst": 51 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "25 (Min/Max 23/35)", + "value": 588709913 + }, + "thresh": 40, + "value": 75, + "when_failed": "", + "worst": 57 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "18368", + "value": 18368 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 91 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "60", + "value": 60 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "59747", + "value": 59747 + }, + "thresh": 0, + "value": 71, + "when_failed": "", + "worst": 71 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25 (0 14 0 0 0)", + "value": 60129542169 + }, + "thresh": 0, + "value": 25, + "when_failed": "", + "worst": 43 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "167226072", + "value": 167226072 + }, + "thresh": 0, + "value": 20, + "when_failed": "", + "worst": 6 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "16671h+22m+05.274s", + "value": 5692008488255775 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "336030386452", + "value": 336030386452 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "100392633118", + "value": 100392633118 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2032, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Enterprise Capacity 3.5 HDD", + "model_name": "ST10000NM0016-1TT101", + "physical_block_size": 4096, + "power_cycle_count": 42, + "power_on_time": { + "hours": 34013 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 19532873728, + "bytes": 10000831348736 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST1000NM0008-2F2100-sda.json b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST1000NM0008-2F2100-sda.json new file mode 100644 index 0000000..b7fef97 --- /dev/null +++ b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST1000NM0008-2F2100-sda.json @@ -0,0 +1,638 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "26943318", + "value": 26943318 + }, + "thresh": 44, + "value": 74, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 96, + "when_failed": "", + "worst": 96 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "36", + "value": 36 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "312868058", + "value": 312868058 + }, + "thresh": 45, + "value": 84, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "47060h+35m+00.858s", + "value": 9023116403587028 + }, + "thresh": 0, + "value": 47, + "when_failed": "", + "worst": 47 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0 0 0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "24 (Min/Max 20/33)", + "value": 554958872 + }, + "thresh": 40, + "value": 76, + "when_failed": "", + "worst": 67 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "1582", + "value": 1582 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "2670", + "value": 2670 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (0 18 0 0 0)", + "value": 77309411352 + }, + "thresh": 0, + "value": 24, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "26943318", + "value": 26943318 + }, + "thresh": 0, + "value": 74, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "46922h+54m+18.974s", + "value": 13997186748561226 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "7826697467", + "value": 7826697467 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "71818734117", + "value": 71818734117 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2032, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Enterprise Capacity 3.5 HDD", + "model_name": "ST1000NM0008-2F2100", + "physical_block_size": 512, + "power_cycle_count": 29, + "power_on_time": { + "hours": 47060, + "minutes": 35 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST2000NM0008-2F3100-sdl.json b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST2000NM0008-2F3100-sdl.json new file mode 100644 index 0000000..90321d2 --- /dev/null +++ b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST2000NM0008-2F3100-sdl.json @@ -0,0 +1,638 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "184637705", + "value": 184637705 + }, + "thresh": 44, + "value": 82, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 96, + "when_failed": "", + "worst": 96 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "52", + "value": 52 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "1072141236", + "value": 1072141236 + }, + "thresh": 45, + "value": 90, + "when_failed": "", + "worst": 61 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "37054h+12m+58.233s", + "value": 3342485283705022 + }, + "thresh": 0, + "value": 58, + "when_failed": "", + "worst": 58 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "51", + "value": 51 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "2 2 2", + "value": 8590065666 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "19 (Min/Max 17/29)", + "value": 487653395 + }, + "thresh": 40, + "value": 81, + "when_failed": "", + "worst": 61 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "805", + "value": 805 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "18494", + "value": 18494 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 91 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "19 (0 17 0 0 0)", + "value": 73014444051 + }, + "thresh": 0, + "value": 19, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "184637705", + "value": 184637705 + }, + "thresh": 0, + "value": 82, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "34643h+21m+17.541s", + "value": 5486996814333779 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "917915044063", + "value": 917915044063 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "699347210152", + "value": 699347210152 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2032, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdl [SAT]", + "name": "/dev/sdl", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Enterprise Capacity 3.5 HDD", + "model_name": "ST2000NM0008-2F3100", + "physical_block_size": 512, + "power_cycle_count": 51, + "power_on_time": { + "hours": 37054, + "minutes": 12 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdl" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 19 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST4000NM0035-1V4107-sdc.json b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST4000NM0035-1V4107-sdc.json new file mode 100644 index 0000000..ca7768b --- /dev/null +++ b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST4000NM0035-1V4107-sdc.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "156126818", + "value": 156126818 + }, + "thresh": 44, + "value": 82, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 95, + "when_failed": "", + "worst": 93 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "36", + "value": 36 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "2856887595", + "value": 2856887595 + }, + "thresh": 45, + "value": 95, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "37119", + "value": 37119 + }, + "thresh": 0, + "value": 58, + "when_failed": "", + "worst": 58 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "32", + "value": 32 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0 0 0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "29 (Min/Max 28/31)", + "value": 521928733 + }, + "thresh": 40, + "value": 71, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "12551", + "value": 12551 + }, + "thresh": 0, + "value": 94, + "when_failed": "", + "worst": 94 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "221697", + "value": 221697 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "29 (0 15 0 0 0)", + "value": 64424509469 + }, + "thresh": 0, + "value": 29, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "156126818", + "value": 156126818 + }, + "thresh": 0, + "value": 4, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "22566h+01m+09.514s", + "value": 298560356636710 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "147026905479", + "value": 147026905479 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "231362640550", + "value": 231362640550 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2032, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Enterprise Capacity 3.5 HDD", + "model_name": "ST4000NM0035-1V4107", + "physical_block_size": 512, + "power_cycle_count": 32, + "power_on_time": { + "hours": 37119 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 29 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 7814037168, + "bytes": 4000787030016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST8000NM0016-1U3101-sds.json b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST8000NM0016-1U3101-sds.json new file mode 100644 index 0000000..adcd55e --- /dev/null +++ b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST8000NM0016-1U3101-sds.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "239425872", + "value": 239425872 + }, + "thresh": 44, + "value": 84, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 93, + "when_failed": "", + "worst": 92 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "61", + "value": 61 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "3788264559", + "value": 3788264559 + }, + "thresh": 45, + "value": 96, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "38098 (190 82 0)", + "value": 209259396633810 + }, + "thresh": 0, + "value": 57, + "when_failed": "", + "worst": 57 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "63", + "value": 63 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0 0 0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "38", + "value": 38 + }, + "thresh": 0, + "value": 62, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "21 (Min/Max 19/30)", + "value": 504561685 + }, + "thresh": 40, + "value": 79, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "12508", + "value": 12508 + }, + "thresh": 0, + "value": 94, + "when_failed": "", + "worst": 94 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "382", + "value": 382 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "5329", + "value": 5329 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "21 (0 16 0 0 0)", + "value": 68719476757 + }, + "thresh": 0, + "value": 21, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "239425872", + "value": 239425872 + }, + "thresh": 0, + "value": 5, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "35114h+21m+42.902s", + "value": 5595921479928106 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "219601741475", + "value": 219601741475 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "155044474266", + "value": 155044474266 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2032, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sds [SAT]", + "name": "/dev/sds", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Enterprise Capacity 3.5 HDD", + "model_name": "ST8000NM0016-1U3101", + "physical_block_size": 4096, + "power_cycle_count": 63, + "power_on_time": { + "hours": 38098 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sds" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 21 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST8000NM0055-1RM112-sdh.json b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST8000NM0055-1RM112-sdh.json new file mode 100644 index 0000000..a9701d5 --- /dev/null +++ b/testdata/sat-Seagate_Enterprise_Capacity_3.5_HDD-ST8000NM0055-1RM112-sdh.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "19820656", + "value": 19820656 + }, + "thresh": 44, + "value": 73, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 90, + "when_failed": "", + "worst": 89 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "39", + "value": 39 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "2448016663", + "value": 2448016663 + }, + "thresh": 45, + "value": 94, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "50427", + "value": 50427 + }, + "thresh": 0, + "value": 43, + "when_failed": "", + "worst": 43 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "40", + "value": 40 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 99, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0 0 0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RCK ", + "updated_online": true, + "value": 58 + }, + "id": 189, + "name": "High_Fly_Writes", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "31 (Min/Max 29/37)", + "value": 622657567 + }, + "thresh": 40, + "value": 69, + "when_failed": "", + "worst": 55 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "149358", + "value": 149358 + }, + "thresh": 0, + "value": 26, + "when_failed": "", + "worst": 26 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "1581", + "value": 1581 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "201071", + "value": 201071 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "31 (0 19 0 0 0)", + "value": 81604378655 + }, + "thresh": 0, + "value": 31, + "when_failed": "", + "worst": 45 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "19820656", + "value": 19820656 + }, + "thresh": 0, + "value": 73, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "50311h+35m+49.046s", + "value": 9230082287649927 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "474314849904", + "value": 474314849904 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "158212488565", + "value": 158212488565 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2032, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdh [SAT]", + "name": "/dev/sdh", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Enterprise Capacity 3.5 HDD", + "model_name": "ST8000NM0055-1RM112", + "physical_block_size": 4096, + "power_cycle_count": 40, + "power_on_time": { + "hours": 50427 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdh" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 31 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Exos_7E8-ST1000NM000A-2J3100-sdq.json b/testdata/sat-Seagate_Exos_7E8-ST1000NM000A-2J3100-sdq.json new file mode 100644 index 0000000..7055123 --- /dev/null +++ b/testdata/sat-Seagate_Exos_7E8-ST1000NM000A-2J3100-sdq.json @@ -0,0 +1,593 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "87494727", + "value": 87494727 + }, + "thresh": 44, + "value": 79, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 97, + "when_failed": "", + "worst": 97 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "13", + "value": 13 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "45734571", + "value": 45734571 + }, + "thresh": 45, + "value": 77, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "4886", + "value": 4886 + }, + "thresh": 0, + "value": 95, + "when_failed": "", + "worst": 95 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "13", + "value": 13 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 18, + "name": "Head_Health", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "26 (Min/Max 22/28)", + "value": 471203866 + }, + "thresh": 40, + "value": 74, + "when_failed": "", + "worst": 72 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "225", + "value": 225 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26 (0 22 0 0 0)", + "value": 94489280538 + }, + "thresh": 0, + "value": 26, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "87494727", + "value": 87494727 + }, + "thresh": 0, + "value": 79, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "4362h+39m+17.321s", + "value": 10124616601178378 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "702856333", + "value": 702856333 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "361205548", + "value": 361205548 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4064, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdq [SAT]", + "name": "/dev/sdq", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Exos 7E8", + "model_name": "ST1000NM000A-2J3100", + "physical_block_size": 512, + "power_cycle_count": 13, + "power_on_time": { + "hours": 4886 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdq" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Exos_7E8-ST8000NM000A-2KE101-sdi.json b/testdata/sat-Seagate_Exos_7E8-ST8000NM000A-2KE101-sdi.json new file mode 100644 index 0000000..e18fc39 --- /dev/null +++ b/testdata/sat-Seagate_Exos_7E8-ST8000NM000A-2KE101-sdi.json @@ -0,0 +1,593 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "225101888", + "value": 225101888 + }, + "thresh": 44, + "value": 84, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 90 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "632182215", + "value": 632182215 + }, + "thresh": 45, + "value": 88, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "21906", + "value": 21906 + }, + "thresh": 0, + "value": 75, + "when_failed": "", + "worst": 75 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 18, + "name": "Head_Health", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "26 (Min/Max 23/29)", + "value": 488046618 + }, + "thresh": 40, + "value": 74, + "when_failed": "", + "worst": 61 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "10", + "value": 10 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "1609", + "value": 1609 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26 (0 15 0 0 0)", + "value": 64424509466 + }, + "thresh": 0, + "value": 26, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "225101888", + "value": 225101888 + }, + "thresh": 0, + "value": 8, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "21665h+14m+56.209s", + "value": 3849188345402529 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "163797093829", + "value": 163797093829 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "202972837162", + "value": 202972837162 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4064, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdi [SAT]", + "name": "/dev/sdi", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Exos 7E8", + "model_name": "ST8000NM000A-2KE101", + "physical_block_size": 4096, + "power_cycle_count": 25, + "power_on_time": { + "hours": 21906 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdi" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Seagate_Exos_X16-ST16000NM001G-2KK103-sda.json b/testdata/sat-Seagate_Exos_X16-ST16000NM001G-2KK103-sda.json new file mode 100644 index 0000000..1a02067 --- /dev/null +++ b/testdata/sat-Seagate_Exos_X16-ST16000NM001G-2KK103-sda.json @@ -0,0 +1,587 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "239307048", + "value": 239307048 + }, + "thresh": 44, + "value": 84, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 90 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "330010684", + "value": 330010684 + }, + "thresh": 45, + "value": 85, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "13114", + "value": 13114 + }, + "thresh": 0, + "value": 86, + "when_failed": "", + "worst": 86 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 18, + "name": "Head_Health", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "51540393996", + "value": 51540393996 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 97 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "26 (Min/Max 25/32)", + "value": 538509338 + }, + "thresh": 40, + "value": 74, + "when_failed": "", + "worst": 50 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "5", + "value": 5 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "4954", + "value": 4954 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26 (0 23 0 0 0)", + "value": 98784247834 + }, + "thresh": 0, + "value": 26, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 200, + "name": "Pressure_Limit", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "12523h+17m+08.635s", + "value": 4417953684533483 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "385165652077", + "value": 385165652077 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "150964211289", + "value": 150964211289 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4064, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Seagate Exos X16", + "model_name": "ST16000NM001G-2KK103", + "physical_block_size": 4096, + "power_cycle_count": 15, + "power_on_time": { + "hours": 13114 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 26 + }, + "user_capacity": { + "blocks": 31251759104, + "bytes": 16000900661248 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-Silicon_Motion_based_SSDs-TS32GMTS400-sda.json b/testdata/sat-Silicon_Motion_based_SSDs-TS32GMTS400-sda.json new file mode 100644 index 0000000..b352702 --- /dev/null +++ b/testdata/sat-Silicon_Motion_based_SSDs-TS32GMTS400-sda.json @@ -0,0 +1,762 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "796", + "value": 796 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 160, + "name": "Uncorrectable_Error_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 161, + "name": "Valid_Spare_Block_Cnt", + "raw": { + "string": "61", + "value": 61 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 163, + "name": "Initial_Bad_Block_Count", + "raw": { + "string": "21", + "value": 21 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 164, + "name": "Total_Erase_Count", + "raw": { + "string": "136733", + "value": 136733 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 165, + "name": "Max_Erase_Count", + "raw": { + "string": "172", + "value": 172 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 166, + "name": "Min_Erase_Count", + "raw": { + "string": "71", + "value": 71 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 167, + "name": "Average_Erase_Count", + "raw": { + "string": "132", + "value": 132 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 168, + "name": "Max_Erase_Count_of_Spec", + "raw": { + "string": "3000", + "value": 3000 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 169, + "name": "Remaining_Lifetime_Perc", + "raw": { + "string": "96", + "value": 96 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 175, + "name": "Program_Fail_Count_Chip", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 176, + "name": "Erase_Fail_Count_Chip", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 177, + "name": "Wear_Leveling_Count", + "raw": { + "string": "401", + "value": 401 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 178, + "name": "Runtime_Invalid_Blk_Cnt", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 181, + "name": "Program_Fail_Cnt_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 182, + "name": "Erase_Fail_Count_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "4", + "value": 4 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 232, + "name": "Available_Reservd_Space", + "raw": { + "string": "100", + "value": 100 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Host_Writes_32MiB", + "raw": { + "string": "30245", + "value": 30245 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Host_Reads_32MiB", + "raw": { + "string": "72455", + "value": 72455 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 245, + "name": "TLC_Writes_32MiB", + "raw": { + "string": "136733", + "value": 136733 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1008, + "minor_value": 0, + "string": "ACS-2 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Silicon Motion based SSDs", + "model_name": "TS32GMTS400", + "physical_block_size": 512, + "power_cycle_count": 29, + "power_on_time": { + "hours": 796 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.1", + "value": 127 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "deterministic": true, + "supported": true, + "zeroed": true + }, + "user_capacity": { + "blocks": 62533296, + "bytes": 32017047552 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_3.5_HDD_MK.002TSKB-TOSHIBA_MK1002TSKB-sdb.json b/testdata/sat-Toshiba_3.5_HDD_MK.002TSKB-TOSHIBA_MK1002TSKB-sdb.json new file mode 100644 index 0000000..f38814b --- /dev/null +++ b/testdata/sat-Toshiba_3.5_HDD_MK.002TSKB-TOSHIBA_MK1002TSKB-sdb.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "6740", + "value": 6740 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "73882", + "value": 73882 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "8", + "value": 8 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "779", + "value": 779 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (Min/Max 16/31)", + "value": 133145034776 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "24", + "value": 24 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "71787", + "value": 71787 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "107", + "value": 107 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 504, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdb [SAT]", + "name": "/dev/sdb", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 2, + "string": "3.0 Gb/s", + "units_per_second": 30 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba 3.5\" HDD MK.002TSKB", + "model_name": "TOSHIBA MK1002TSKB", + "physical_block_size": 512, + "power_cycle_count": 18, + "power_on_time": { + "hours": 73882 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdb" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_3.5_MG03ACAxxxY_Enterprise_HDD-TOSHIBA_MG03ACA100-sdv.json b/testdata/sat-Toshiba_3.5_MG03ACAxxxY_Enterprise_HDD-TOSHIBA_MG03ACA100-sdv.json new file mode 100644 index 0000000..14485da --- /dev/null +++ b/testdata/sat-Toshiba_3.5_MG03ACAxxxY_Enterprise_HDD-TOSHIBA_MG03ACA100-sdv.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "5061", + "value": 5061 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "50", + "value": 50 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "34688", + "value": 34688 + }, + "thresh": 0, + "value": 14, + "when_failed": "", + "worst": 14 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "50", + "value": 50 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "40", + "value": 40 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "65", + "value": 65 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (Min/Max 11/36)", + "value": 154619543576 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "35752", + "value": 35752 + }, + "thresh": 0, + "value": 11, + "when_failed": "", + "worst": 11 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "499", + "value": 499 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 504, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdv [SAT]", + "name": "/dev/sdv", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba 3.5\" MG03ACAxxx(Y) Enterprise HDD", + "model_name": "TOSHIBA MG03ACA100", + "physical_block_size": 512, + "power_cycle_count": 50, + "power_on_time": { + "hours": 34688 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdv" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_MG04ACA..._Enterprise_HDD-TOSHIBA_MG04ACA200E-sdd.json b/testdata/sat-Toshiba_MG04ACA..._Enterprise_HDD-TOSHIBA_MG04ACA200E-sdd.json new file mode 100644 index 0000000..08caa3c --- /dev/null +++ b/testdata/sat-Toshiba_MG04ACA..._Enterprise_HDD-TOSHIBA_MG04ACA200E-sdd.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "3236", + "value": 3236 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "38978", + "value": 38978 + }, + "thresh": 0, + "value": 3, + "when_failed": "", + "worst": 3 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "4744", + "value": 4744 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "32", + "value": 32 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "34 (Min/Max 17/43)", + "value": 184684707874 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "38115", + "value": 38115 + }, + "thresh": 0, + "value": 5, + "when_failed": "", + "worst": 5 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "643", + "value": 643 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 504, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdd [SAT]", + "name": "/dev/sdd", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba MG04ACA... Enterprise HDD", + "model_name": "TOSHIBA MG04ACA200E", + "physical_block_size": 4096, + "power_cycle_count": 18, + "power_on_time": { + "hours": 38978 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdd" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 34 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_MG04ACA..._Enterprise_HDD-TOSHIBA_MG04ACA400E-sdg.json b/testdata/sat-Toshiba_MG04ACA..._Enterprise_HDD-TOSHIBA_MG04ACA400E-sdg.json new file mode 100644 index 0000000..af1553f --- /dev/null +++ b/testdata/sat-Toshiba_MG04ACA..._Enterprise_HDD-TOSHIBA_MG04ACA400E-sdg.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "7135", + "value": 7135 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "13", + "value": 13 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "25313", + "value": 25313 + }, + "thresh": 0, + "value": 37, + "when_failed": "", + "worst": 37 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "4", + "value": 4 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26 (Min/Max 20/39)", + "value": 167505035290 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "25313", + "value": 25313 + }, + "thresh": 0, + "value": 37, + "when_failed": "", + "worst": 37 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "559", + "value": 559 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 504, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdg [SAT]", + "name": "/dev/sdg", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba MG04ACA... Enterprise HDD", + "model_name": "TOSHIBA MG04ACA400E", + "physical_block_size": 4096, + "power_cycle_count": 7, + "power_on_time": { + "hours": 25313 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdg" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 7814037168, + "bytes": 4000787030016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_MG05ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG05ACA800E-sdw.json b/testdata/sat-Toshiba_MG05ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG05ACA800E-sdw.json new file mode 100644 index 0000000..c8a5e03 --- /dev/null +++ b/testdata/sat-Toshiba_MG05ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG05ACA800E-sdw.json @@ -0,0 +1,788 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "10810", + "value": 10810 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "54", + "value": 54 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "37603", + "value": 37603 + }, + "thresh": 0, + "value": 6, + "when_failed": "", + "worst": 6 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 101, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "51", + "value": 51 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "40", + "value": 40 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "720", + "value": 720 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (Min/Max 15/44)", + "value": 188979544088 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "37151", + "value": 37151 + }, + "thresh": 0, + "value": 8, + "when_failed": "", + "worst": 8 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "548", + "value": 548 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 2, + "logged_count": 2, + "revision": 1, + "table": [ + { + "completion_registers": { + "count": 200, + "device": 64, + "error": 64, + "lba": 7454176, + "status": 65 + }, + "error_description": "Error: UNC at LBA = 0x0071bde0 = 7454176", + "error_number": 2, + "lifetime_hours": 36208, + "previous_commands": [ + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1272235351, + "registers": { + "command": 96, + "count": 232, + "device": 64, + "device_control": 0, + "features": 8, + "lba": 5810912 + } + }, + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1272232458, + "registers": { + "command": 96, + "count": 224, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 7452376 + } + }, + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1272232458, + "registers": { + "command": 96, + "count": 216, + "device": 64, + "device_control": 0, + "features": 8, + "lba": 7457432 + } + }, + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1272232458, + "registers": { + "command": 96, + "count": 208, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 7455448 + } + }, + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1272232458, + "registers": { + "command": 96, + "count": 200, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 7453400 + } + } + ] + }, + { + "completion_registers": { + "count": 152, + "device": 64, + "error": 64, + "lba": 2111240, + "status": 65 + }, + "error_description": "Error: UNC at LBA = 0x00203708 = 2111240", + "error_number": 1, + "lifetime_hours": 26135, + "previous_commands": [ + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1593518119, + "registers": { + "command": 96, + "count": 200, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 2113344 + } + }, + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1593518119, + "registers": { + "command": 96, + "count": 192, + "device": 64, + "device_control": 0, + "features": 128, + "lba": 2112960 + } + }, + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1593518119, + "registers": { + "command": 96, + "count": 184, + "device": 64, + "device_control": 0, + "features": 128, + "lba": 2112576 + } + }, + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1593518119, + "registers": { + "command": 96, + "count": 176, + "device": 64, + "device_control": 0, + "features": 128, + "lba": 2112192 + } + }, + { + "command_name": "READ FPDMA QUEUED", + "powerup_milliseconds": 1593518119, + "registers": { + "command": 96, + "count": 168, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 2111680 + } + } + ] + } + ] + } + }, + "ata_version": { + "major_value": 2040, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdw [SAT]", + "name": "/dev/sdw", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba MG05ACA... Enterprise Capacity HDD", + "model_name": "TOSHIBA MG05ACA800E", + "physical_block_size": 4096, + "power_cycle_count": 51, + "power_on_time": { + "hours": 37603 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdw" + ], + "build_info": "REDACTED", + "exit_status": 64, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_MG06ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG06ACA10TE-sda.json b/testdata/sat-Toshiba_MG06ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG06ACA10TE-sda.json new file mode 100644 index 0000000..3887143 --- /dev/null +++ b/testdata/sat-Toshiba_MG06ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG06ACA10TE-sda.json @@ -0,0 +1,631 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "9056", + "value": 9056 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "30", + "value": 30 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "12818", + "value": 12818 + }, + "thresh": 0, + "value": 68, + "when_failed": "", + "worst": 68 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "30", + "value": 30 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "4", + "value": 4 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "43", + "value": 43 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26 (Min/Max 20/37)", + "value": 158915100698 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "50724870", + "value": 50724870 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "12210", + "value": 12210 + }, + "thresh": 0, + "value": 70, + "when_failed": "", + "worst": 70 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "531", + "value": 531 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2040, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba MG06ACA... Enterprise Capacity HDD", + "model_name": "TOSHIBA MG06ACA10TE", + "physical_block_size": 4096, + "power_cycle_count": 30, + "power_on_time": { + "hours": 12818 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 26 + }, + "user_capacity": { + "blocks": 19532873728, + "bytes": 10000831348736 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_MG06ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG06ACA800E-sda.json b/testdata/sat-Toshiba_MG06ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG06ACA800E-sda.json new file mode 100644 index 0000000..e10c31a --- /dev/null +++ b/testdata/sat-Toshiba_MG06ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG06ACA800E-sda.json @@ -0,0 +1,637 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "5698", + "value": 5698 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "23", + "value": 23 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "31689", + "value": 31689 + }, + "thresh": 0, + "value": 21, + "when_failed": "", + "worst": 21 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "104", + "value": 104 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "31 (Min/Max 19/42)", + "value": 180389871647 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "168820742", + "value": 168820742 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "30456", + "value": 30456 + }, + "thresh": 0, + "value": 24, + "when_failed": "", + "worst": 24 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "531", + "value": 531 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2040, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba MG06ACA... Enterprise Capacity HDD", + "model_name": "TOSHIBA MG06ACA800E", + "physical_block_size": 4096, + "power_cycle_count": 11, + "power_on_time": { + "hours": 31689 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 31 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_MG08ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG08ACA16TE-sda.json b/testdata/sat-Toshiba_MG08ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG08ACA16TE-sda.json new file mode 100644 index 0000000..643d017 --- /dev/null +++ b/testdata/sat-Toshiba_MG08ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG08ACA16TE-sda.json @@ -0,0 +1,675 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "5129", + "value": 5129 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "15166", + "value": 15166 + }, + "thresh": 0, + "value": 63, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 23, + "name": "Helium_Condition_Lower", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 75, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 24, + "name": "Helium_Condition_Upper", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 75, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "5", + "value": 5 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "10", + "value": 10 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "23 (Min/Max 18/33)", + "value": 141735100439 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "524288", + "value": 524288 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "15165", + "value": 15165 + }, + "thresh": 0, + "value": 63, + "when_failed": "", + "worst": 63 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "596", + "value": 596 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2040, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba MG08ACA... Enterprise Capacity HDD", + "model_name": "TOSHIBA MG08ACA16TE", + "physical_block_size": 4096, + "power_cycle_count": 6, + "power_on_time": { + "hours": 15166 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 23 + }, + "user_capacity": { + "blocks": 31251759104, + "bytes": 16000900661248 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_MG09ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG09ACA18TE-sdd.json b/testdata/sat-Toshiba_MG09ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG09ACA18TE-sdd.json new file mode 100644 index 0000000..0922ca3 --- /dev/null +++ b/testdata/sat-Toshiba_MG09ACA..._Enterprise_Capacity_HDD-TOSHIBA_MG09ACA18TE-sdd.json @@ -0,0 +1,747 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "8657", + "value": 8657 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "4772", + "value": 4772 + }, + "thresh": 0, + "value": 89, + "when_failed": "", + "worst": 89 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 23, + "name": "Helium_Condition_Lower", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 75, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 24, + "name": "Helium_Condition_Upper", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 75, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 27, + "name": "MAMR_Health_Monitor", + "raw": { + "string": "986199", + "value": 986199 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "2258", + "value": 2258 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "30 (Min/Max 21/32)", + "value": 137440329758 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "524288", + "value": 524288 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "4179", + "value": 4179 + }, + "thresh": 0, + "value": 90, + "when_failed": "", + "worst": 90 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "636", + "value": 636 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "368942236632", + "value": 368942236632 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "1843674429", + "value": 1843674429 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4088, + "minor_value": 94, + "string": "ACS-4 T13/BSR INCITS 529 revision 5" + }, + "device": { + "info_name": "/dev/sdd [SAT]", + "name": "/dev/sdd", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba MG09ACA... Enterprise Capacity HDD", + "model_name": "TOSHIBA MG09ACA18TE", + "physical_block_size": 4096, + "power_cycle_count": 1, + "power_on_time": { + "hours": 4772 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdd" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 30 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 35156656128, + "bytes": 18000207937536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Toshiba_X300-TOSHIBA_HDWE160-sdb.json b/testdata/sat-Toshiba_X300-TOSHIBA_HDWE160-sdb.json new file mode 100644 index 0000000..d080aae --- /dev/null +++ b/testdata/sat-Toshiba_X300-TOSHIBA_HDWE160-sdb.json @@ -0,0 +1,631 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "10781", + "value": 10781 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "47234", + "value": 47234 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "390", + "value": 390 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "43", + "value": 43 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25 (Min/Max 17/36)", + "value": 154619936793 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "47226", + "value": 47226 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "539", + "value": 539 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 504, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdb [SAT]", + "name": "/dev/sdb", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Toshiba X300", + "model_name": "TOSHIBA HDWE160", + "physical_block_size": 4096, + "power_cycle_count": 31, + "power_on_time": { + "hours": 47234 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdb" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 25 + }, + "user_capacity": { + "blocks": 11721045168, + "bytes": 6001175126016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_RE3_Serial_ATA-WDC_WD1002FBYS-02A6B0-sdb.json b/testdata/sat-Western_Digital_RE3_Serial_ATA-WDC_WD1002FBYS-02A6B0-sdb.json new file mode 100644 index 0000000..dd321d5 --- /dev/null +++ b/testdata/sat-Western_Digital_RE3_Serial_ATA-WDC_WD1002FBYS-02A6B0-sdb.json @@ -0,0 +1,473 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "1108", + "value": 1108 + }, + "thresh": 21, + "value": 253, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "38", + "value": 38 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "89475", + "value": 89475 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "37", + "value": 37 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "35", + "value": 35 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "2", + "value": 2 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "33", + "value": 33 + }, + "thresh": 0, + "value": 117, + "when_failed": "", + "worst": 106 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdb [SAT]", + "name": "/dev/sdb", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital RE3 Serial ATA", + "model_name": "WDC WD1002FBYS-02A6B0", + "physical_block_size": 512, + "power_cycle_count": 37, + "power_on_time": { + "hours": 89475 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 2.5", + "value": 14 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdb" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 33 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_RE3_Serial_ATA-WDC_WD5002ABYS-02B1B0-sda.json b/testdata/sat-Western_Digital_RE3_Serial_ATA-WDC_WD5002ABYS-02B1B0-sda.json new file mode 100644 index 0000000..71a0b72 --- /dev/null +++ b/testdata/sat-Western_Digital_RE3_Serial_ATA-WDC_WD5002ABYS-02B1B0-sda.json @@ -0,0 +1,726 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "1058", + "value": 1058 + }, + "thresh": 21, + "value": 238, + "when_failed": "", + "worst": 236 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "51", + "value": 51 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "66857", + "value": 66857 + }, + "thresh": 0, + "value": 9, + "when_failed": "", + "worst": 9 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "49", + "value": 49 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "34", + "value": 34 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "16", + "value": 16 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 121, + "when_failed": "", + "worst": 108 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 9, + "logged_count": 5, + "revision": 1, + "table": [ + { + "completion_registers": { + "count": 0, + "device": 224, + "error": 4, + "lba": 3059519, + "status": 65 + }, + "error_description": "Error: ABRT at LBA = 0x002eaf3f = 3059519", + "error_number": 9, + "lifetime_hours": 13365, + "previous_commands": [ + { + "command_name": "READ DMA", + "powerup_milliseconds": 4068888754, + "registers": { + "command": 200, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 3059519 + } + }, + { + "command_name": "IDENTIFY DEVICE", + "powerup_milliseconds": 4068888753, + "registers": { + "command": 236, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 0 + } + }, + { + "command_name": "SET FEATURES [Set transfer mode]", + "powerup_milliseconds": 4068888752, + "registers": { + "command": 239, + "count": 70, + "device": 0, + "device_control": 8, + "features": 3, + "lba": 0 + } + } + ] + }, + { + "completion_registers": { + "count": 0, + "device": 224, + "error": 4, + "lba": 3059263, + "status": 65 + }, + "error_description": "Error: ABRT at LBA = 0x002eae3f = 3059263", + "error_number": 8, + "lifetime_hours": 13365, + "previous_commands": [ + { + "command_name": "READ DMA", + "powerup_milliseconds": 4068884690, + "registers": { + "command": 200, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 3059263 + } + }, + { + "command_name": "IDENTIFY DEVICE", + "powerup_milliseconds": 4068884689, + "registers": { + "command": 236, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 0 + } + }, + { + "command_name": "SET FEATURES [Set transfer mode]", + "powerup_milliseconds": 4068884689, + "registers": { + "command": 239, + "count": 70, + "device": 0, + "device_control": 8, + "features": 3, + "lba": 0 + } + } + ] + }, + { + "completion_registers": { + "count": 0, + "device": 224, + "error": 4, + "lba": 3059263, + "status": 65 + }, + "error_description": "Error: ABRT at LBA = 0x002eae3f = 3059263", + "error_number": 7, + "lifetime_hours": 13365, + "previous_commands": [ + { + "command_name": "READ DMA", + "powerup_milliseconds": 4068880630, + "registers": { + "command": 200, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 3059263 + } + }, + { + "command_name": "IDENTIFY DEVICE", + "powerup_milliseconds": 4068880629, + "registers": { + "command": 236, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 0 + } + }, + { + "command_name": "SET FEATURES [Set transfer mode]", + "powerup_milliseconds": 4068880628, + "registers": { + "command": 239, + "count": 70, + "device": 0, + "device_control": 8, + "features": 3, + "lba": 0 + } + } + ] + }, + { + "completion_registers": { + "count": 0, + "device": 224, + "error": 4, + "lba": 3059263, + "status": 65 + }, + "error_description": "Error: ABRT at LBA = 0x002eae3f = 3059263", + "error_number": 6, + "lifetime_hours": 13365, + "previous_commands": [ + { + "command_name": "READ DMA", + "powerup_milliseconds": 4068876568, + "registers": { + "command": 200, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 3059263 + } + }, + { + "command_name": "IDENTIFY DEVICE", + "powerup_milliseconds": 4068876567, + "registers": { + "command": 236, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 0 + } + }, + { + "command_name": "SET FEATURES [Set transfer mode]", + "powerup_milliseconds": 4068876567, + "registers": { + "command": 239, + "count": 70, + "device": 0, + "device_control": 8, + "features": 3, + "lba": 0 + } + } + ] + }, + { + "completion_registers": { + "count": 0, + "device": 224, + "error": 4, + "lba": 3059263, + "status": 65 + }, + "error_description": "Error: ABRT at LBA = 0x002eae3f = 3059263", + "error_number": 5, + "lifetime_hours": 13365, + "previous_commands": [ + { + "command_name": "READ DMA", + "powerup_milliseconds": 4068872504, + "registers": { + "command": 200, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 3059263 + } + }, + { + "command_name": "IDENTIFY DEVICE", + "powerup_milliseconds": 4068872502, + "registers": { + "command": 236, + "count": 0, + "device": 0, + "device_control": 8, + "features": 0, + "lba": 0 + } + }, + { + "command_name": "SET FEATURES [Set transfer mode]", + "powerup_milliseconds": 4068872502, + "registers": { + "command": 239, + "count": 70, + "device": 0, + "device_control": 8, + "features": 3, + "lba": 0 + } + } + ] + } + ] + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital RE3 Serial ATA", + "model_name": "WDC WD5002ABYS-02B1B0", + "physical_block_size": 512, + "power_cycle_count": 49, + "power_on_time": { + "hours": 66857 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 2.5", + "value": 14 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 64, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 976773168, + "bytes": 500107862016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_RE4-WDC_WD1003FBYX-01Y7B0-sda.json b/testdata/sat-Western_Digital_RE4-WDC_WD1003FBYX-01Y7B0-sda.json new file mode 100644 index 0000000..7e501e1 --- /dev/null +++ b/testdata/sat-Western_Digital_RE4-WDC_WD1003FBYX-01Y7B0-sda.json @@ -0,0 +1,473 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "27", + "value": 27 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "4258", + "value": 4258 + }, + "thresh": 21, + "value": 174, + "when_failed": "", + "worst": 172 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "44", + "value": 44 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "92209", + "value": 92209 + }, + "thresh": 0, + "value": 1, + "when_failed": "", + "worst": 1 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "40", + "value": 40 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "36", + "value": 36 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24", + "value": 24 + }, + "thresh": 0, + "value": 123, + "when_failed": "", + "worst": 106 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "644", + "value": 644 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital RE4", + "model_name": "WDC WD1003FBYX-01Y7B0", + "physical_block_size": 512, + "power_cycle_count": 40, + "power_on_time": { + "hours": 92209 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 2.6", + "value": 30 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_RE4-WDC_WD1003FBYZ-010FB0-sdq.json b/testdata/sat-Western_Digital_RE4-WDC_WD1003FBYZ-010FB0-sdq.json new file mode 100644 index 0000000..3d5f1dd --- /dev/null +++ b/testdata/sat-Western_Digital_RE4-WDC_WD1003FBYZ-010FB0-sdq.json @@ -0,0 +1,479 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "4300", + "value": 4300 + }, + "thresh": 21, + "value": 174, + "when_failed": "", + "worst": 174 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "24619", + "value": 24619 + }, + "thresh": 0, + "value": 67, + "when_failed": "", + "worst": 67 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "12", + "value": 12 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "9", + "value": 9 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 0, + "value": 122, + "when_failed": "", + "worst": 109 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdq [SAT]", + "name": "/dev/sdq", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital RE4", + "model_name": "WDC WD1003FBYZ-010FB0", + "physical_block_size": 512, + "power_cycle_count": 12, + "power_on_time": { + "hours": 24619 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 62 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdq" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 25 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_RE4-WDC_WD2003FYYS-02W0B1-sdi.json b/testdata/sat-Western_Digital_RE4-WDC_WD2003FYYS-02W0B1-sdi.json new file mode 100644 index 0000000..5b59fbb --- /dev/null +++ b/testdata/sat-Western_Digital_RE4-WDC_WD2003FYYS-02W0B1-sdi.json @@ -0,0 +1,479 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "8908", + "value": 8908 + }, + "thresh": 21, + "value": 253, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "70", + "value": 70 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "58530", + "value": 58530 + }, + "thresh": 0, + "value": 20, + "when_failed": "", + "worst": 20 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "68", + "value": 68 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "66", + "value": 66 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "3", + "value": 3 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24", + "value": 24 + }, + "thresh": 0, + "value": 128, + "when_failed": "", + "worst": 108 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "3118119", + "value": 3118119 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdi [SAT]", + "name": "/dev/sdi", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 2, + "string": "3.0 Gb/s", + "units_per_second": 30 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital RE4", + "model_name": "WDC WD2003FYYS-02W0B1", + "physical_block_size": 512, + "power_cycle_count": 68, + "power_on_time": { + "hours": 58530 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdi" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_RE4-WDC_WD5003ABYX-01WERA1-sdb.json b/testdata/sat-Western_Digital_RE4-WDC_WD5003ABYX-01WERA1-sdb.json new file mode 100644 index 0000000..5ce03ce --- /dev/null +++ b/testdata/sat-Western_Digital_RE4-WDC_WD5003ABYX-01WERA1-sdb.json @@ -0,0 +1,479 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "178322", + "value": 178322 + }, + "thresh": 51, + "value": 181, + "when_failed": "", + "worst": 181 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "3733", + "value": 3733 + }, + "thresh": 21, + "value": 145, + "when_failed": "", + "worst": 144 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "87", + "value": 87 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "33921", + "value": 33921 + }, + "thresh": 0, + "value": 54, + "when_failed": "", + "worst": 54 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "82", + "value": 82 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "61", + "value": 61 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "25", + "value": 25 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "28", + "value": 28 + }, + "thresh": 0, + "value": 115, + "when_failed": "", + "worst": 103 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 186 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdb [SAT]", + "name": "/dev/sdb", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 2, + "string": "3.0 Gb/s", + "units_per_second": 30 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 6, + "string": "3.0 Gb/s", + "units_per_second": 30 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital RE4", + "model_name": "WDC WD5003ABYX-01WERA1", + "physical_block_size": 512, + "power_cycle_count": 82, + "power_on_time": { + "hours": 33921 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdb" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 28 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 976773168, + "bytes": 500107862016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_RE4-WDC_WD5003ABYZ-011FA0-sda.json b/testdata/sat-Western_Digital_RE4-WDC_WD5003ABYZ-011FA0-sda.json new file mode 100644 index 0000000..93da4e1 --- /dev/null +++ b/testdata/sat-Western_Digital_RE4-WDC_WD5003ABYZ-011FA0-sda.json @@ -0,0 +1,479 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 21, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "3", + "value": 3 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "7277", + "value": 7277 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 90 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "3", + "value": 3 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "70", + "value": 70 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "19", + "value": 19 + }, + "thresh": 0, + "value": 124, + "when_failed": "", + "worst": 113 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital RE4", + "model_name": "WDC WD5003ABYZ-011FA0", + "physical_block_size": 512, + "power_cycle_count": 3, + "power_on_time": { + "hours": 7277 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 62 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 19 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 976773168, + "bytes": 500107862016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_Re-WDC_WD1004FBYZ-01YCBB0-sdh.json b/testdata/sat-Western_Digital_Re-WDC_WD1004FBYZ-01YCBB0-sdh.json new file mode 100644 index 0000000..1dab351 --- /dev/null +++ b/testdata/sat-Western_Digital_Re-WDC_WD1004FBYZ-01YCBB0-sdh.json @@ -0,0 +1,527 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "4041", + "value": 4041 + }, + "thresh": 21, + "value": 179, + "when_failed": "", + "worst": 179 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "39", + "value": 39 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "63920", + "value": 63920 + }, + "thresh": 0, + "value": 13, + "when_failed": "", + "worst": 13 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "38", + "value": 38 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 16, + "name": "Total_LBAs_Read", + "raw": { + "string": "131244010515", + "value": 131244010515 + }, + "thresh": 0, + "value": 2, + "when_failed": "", + "worst": 198 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "30", + "value": 30 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "62", + "value": 62 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 121, + "when_failed": "", + "worst": 111 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2046, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdh [SAT]", + "name": "/dev/sdh", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital Re", + "model_name": "WDC WD1004FBYZ-01YCBB0", + "physical_block_size": 512, + "power_cycle_count": 38, + "power_on_time": { + "hours": 63920 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.1", + "value": 126 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdh" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 26 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_Re-WDC_WD2000FYYZ-01UL1B1-sdj.json b/testdata/sat-Western_Digital_Re-WDC_WD2000FYYZ-01UL1B1-sdj.json new file mode 100644 index 0000000..6b9c2bc --- /dev/null +++ b/testdata/sat-Western_Digital_Re-WDC_WD2000FYYZ-01UL1B1-sdj.json @@ -0,0 +1,501 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "6125", + "value": 6125 + }, + "thresh": 21, + "value": 177, + "when_failed": "", + "worst": 174 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "16", + "value": 16 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "28035", + "value": 28035 + }, + "thresh": 0, + "value": 62, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "9", + "value": 9 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "22", + "value": 22 + }, + "thresh": 0, + "value": 128, + "when_failed": "", + "worst": 108 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdj [SAT]", + "name": "/dev/sdj", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital Re", + "model_name": "WDC WD2000FYYZ-01UL1B1", + "physical_block_size": 512, + "power_cycle_count": 15, + "power_on_time": { + "hours": 28035 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 62 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdj" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 22 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 3907029168, + "bytes": 2000398934016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_Re-WDC_WD3000FYYZ-01UL1B1-sdc.json b/testdata/sat-Western_Digital_Re-WDC_WD3000FYYZ-01UL1B1-sdc.json new file mode 100644 index 0000000..c4f3096 --- /dev/null +++ b/testdata/sat-Western_Digital_Re-WDC_WD3000FYYZ-01UL1B1-sdc.json @@ -0,0 +1,501 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-K ", + "updated_online": true, + "value": 47 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 51, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "10916", + "value": 10916 + }, + "thresh": 21, + "value": 161, + "when_failed": "", + "worst": 152 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "21", + "value": 21 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 140, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OSR-K ", + "updated_online": true, + "value": 46 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "58046", + "value": 58046 + }, + "thresh": 0, + "value": 21, + "when_failed": "", + "worst": 21 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 11, + "name": "Calibration_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "21", + "value": 21 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "16", + "value": 16 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "34", + "value": 34 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "21", + "value": 21 + }, + "thresh": 0, + "value": 131, + "when_failed": "", + "worst": 105 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 510, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 2, + "string": "3.0 Gb/s", + "units_per_second": 30 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital Re", + "model_name": "WDC WD3000FYYZ-01UL1B1", + "physical_block_size": 512, + "power_cycle_count": 21, + "power_on_time": { + "hours": 58046 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 62 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 21 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 5860533168, + "bytes": 3000592982016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 5358 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721816ALE6L4-sdx.json b/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721816ALE6L4-sdx.json new file mode 100644 index 0000000..c4ff212 --- /dev/null +++ b/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721816ALE6L4-sdx.json @@ -0,0 +1,576 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "100", + "value": 100 + }, + "thresh": 54, + "value": 135, + "when_failed": "", + "worst": 135 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "346 (Average 342)", + "value": 25792217434 + }, + "thresh": 1, + "value": 83, + "when_failed": "", + "worst": 83 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "58", + "value": 58 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 20, + "value": 140, + "when_failed": "", + "worst": 140 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "20117", + "value": 20117 + }, + "thresh": 0, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "56", + "value": 56 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 22, + "name": "Helium_Level", + "raw": { + "string": "100", + "value": 100 + }, + "thresh": 25, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "910", + "value": 910 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "910", + "value": 910 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "26 (Min/Max 17/36)", + "value": 154619936794 + }, + "thresh": 0, + "value": 70, + "when_failed": "", + "worst": 70 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 1, + "logged_count": 1, + "revision": 1, + "table": [ + { + "completion_registers": { + "count": 0, + "device": 0, + "error": 132, + "lba": 0, + "status": 65 + }, + "error_description": "Error: ICRC, ABRT at LBA = 0x00000000 = 0", + "error_number": 1, + "lifetime_hours": 1762, + "previous_commands": [ + { + "command_name": "WRITE FPDMA QUEUED", + "powerup_milliseconds": 72789895, + "registers": { + "command": 97, + "count": 136, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 3390976 + } + }, + { + "command_name": "WRITE FPDMA QUEUED", + "powerup_milliseconds": 72789886, + "registers": { + "command": 97, + "count": 160, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 3392512 + } + }, + { + "command_name": "WRITE FPDMA QUEUED", + "powerup_milliseconds": 72789886, + "registers": { + "command": 97, + "count": 152, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 3392000 + } + }, + { + "command_name": "WRITE FPDMA QUEUED", + "powerup_milliseconds": 72789886, + "registers": { + "command": 97, + "count": 144, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 3391488 + } + }, + { + "command_name": "WRITE FPDMA QUEUED", + "powerup_milliseconds": 72789885, + "registers": { + "command": 97, + "count": 128, + "device": 64, + "device_control": 0, + "features": 0, + "lba": 3390464 + } + } + ] + } + ] + } + }, + "ata_version": { + "major_value": 4092, + "minor_value": 156, + "string": "ACS-4 published, ANSI INCITS 529-2018" + }, + "device": { + "info_name": "/dev/sdx [SAT]", + "name": "/dev/sdx", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital Ultrastar DC HC550", + "model_name": "WDC WUH721816ALE6L4", + "physical_block_size": 4096, + "power_cycle_count": 56, + "power_on_time": { + "hours": 20117 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdx" + ], + "build_info": "REDACTED", + "exit_status": 64, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 26 + }, + "user_capacity": { + "blocks": 31251759104, + "bytes": 16000900661248 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721818ALE6L4-sda.json b/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721818ALE6L4-sda.json new file mode 100644 index 0000000..fc2af12 --- /dev/null +++ b/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721818ALE6L4-sda.json @@ -0,0 +1,505 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "44", + "value": 44 + }, + "thresh": 54, + "value": 149, + "when_failed": "", + "worst": 149 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "313 (Average 349)", + "value": 25792676153 + }, + "thresh": 1, + "value": 84, + "when_failed": "", + "worst": 84 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "9", + "value": 9 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 20, + "value": 140, + "when_failed": "", + "worst": 140 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "3533", + "value": 3533 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "9", + "value": 9 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 22, + "name": "Helium_Level", + "raw": { + "string": "100", + "value": 100 + }, + "thresh": 25, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "141", + "value": 141 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "141", + "value": 141 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "35 (Min/Max 21/38)", + "value": 163210133539 + }, + "thresh": 0, + "value": 59, + "when_failed": "", + "worst": 59 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4092, + "minor_value": 156, + "string": "ACS-4 published, ANSI INCITS 529-2018" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital Ultrastar DC HC550", + "model_name": "WDC WUH721818ALE6L4", + "physical_block_size": 4096, + "power_cycle_count": 9, + "power_on_time": { + "hours": 3533 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 35 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 35156656128, + "bytes": 18000207937536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721818ALN604-sda.json b/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721818ALN604-sda.json new file mode 100644 index 0000000..efb04c7 --- /dev/null +++ b/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WDC__WUH721818ALN604-sda.json @@ -0,0 +1,505 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "96", + "value": 96 + }, + "thresh": 54, + "value": 136, + "when_failed": "", + "worst": 136 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0 (Average 332)", + "value": 25791561728 + }, + "thresh": 1, + "value": 92, + "when_failed": "", + "worst": 92 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "5", + "value": 5 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 20, + "value": 140, + "when_failed": "", + "worst": 140 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "545", + "value": 545 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "5", + "value": 5 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 22, + "name": "Helium_Level", + "raw": { + "string": "100", + "value": 100 + }, + "thresh": 25, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "28", + "value": 28 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "28", + "value": 28 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "29 (Min/Max 22/34)", + "value": 146030329885 + }, + "thresh": 0, + "value": 66, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4092, + "minor_value": 156, + "string": "ACS-4 published, ANSI INCITS 529-2018" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 4096, + "model_family": "Western Digital Ultrastar DC HC550", + "model_name": "WDC WUH721818ALN604", + "physical_block_size": 4096, + "power_cycle_count": 5, + "power_on_time": { + "hours": 545 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 29 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 4394582016, + "bytes": 18000207937536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WUH721818ALE6L4-sdd.json b/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WUH721818ALE6L4-sdd.json new file mode 100644 index 0000000..1e7839e --- /dev/null +++ b/testdata/sat-Western_Digital_Ultrastar_DC_HC550-WUH721818ALE6L4-sdd.json @@ -0,0 +1,616 @@ +{ + "ata_additional_product_id": "202224", + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "48", + "value": 48 + }, + "thresh": 54, + "value": 148, + "when_failed": "", + "worst": 148 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "334 (Average 338)", + "value": 25791955278 + }, + "thresh": 1, + "value": 84, + "when_failed": "", + "worst": 84 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "15", + "value": 15 + }, + "thresh": 20, + "value": 140, + "when_failed": "", + "worst": 140 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "926", + "value": 926 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 22, + "name": "Helium_Level", + "raw": { + "string": "100", + "value": 100 + }, + "thresh": 25, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 82, + "name": "Unknown_Attribute", + "raw": { + "string": "255", + "value": 255 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "61", + "value": 61 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "61", + "value": 61 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "33 (Min/Max 18/36)", + "value": 154620002337 + }, + "thresh": 0, + "value": 62, + "when_failed": "", + "worst": 62 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "54506376968", + "value": 54506376968 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "1738553973", + "value": 1738553973 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4092, + "minor_value": 156, + "string": "ACS-4 published, ANSI INCITS 529-2018" + }, + "device": { + "info_name": "/dev/sdd [SAT]", + "name": "/dev/sdd", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": true, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_family": "Western Digital Ultrastar DC HC550", + "model_name": "WUH721818ALE6L4", + "physical_block_size": 4096, + "power_cycle_count": 18, + "power_on_time": { + "hours": 926 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdd" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 33 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 35156656128, + "bytes": 18000207937536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-null-Hitachi_HUA722010CLA630-sda.json b/testdata/sat-null-Hitachi_HUA722010CLA630-sda.json new file mode 100644 index 0000000..3ff7121 --- /dev/null +++ b/testdata/sat-null-Hitachi_HUA722010CLA630-sda.json @@ -0,0 +1,476 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "93", + "value": 93 + }, + "thresh": 54, + "value": 136, + "when_failed": "", + "worst": 136 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "318 (Average 319)", + "value": 25790710078 + }, + "thresh": 24, + "value": 119, + "when_failed": "", + "worst": 119 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "28", + "value": 28 + }, + "thresh": 20, + "value": 144, + "when_failed": "", + "worst": 144 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "67502", + "value": 67502 + }, + "thresh": 0, + "value": 91, + "when_failed": "", + "worst": 91 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "31", + "value": 31 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "84", + "value": 84 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "84", + "value": 84 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (Min/Max 18/36)", + "value": 154620002328 + }, + "thresh": 0, + "value": 250, + "when_failed": "", + "worst": 250 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 0 + } + }, + "ata_version": { + "major_value": 508, + "minor_value": 41, + "string": "ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": false, + "interface_speed": { + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "Hitachi HUA722010CLA630", + "physical_block_size": 512, + "power_cycle_count": 31, + "power_on_time": { + "hours": 67502 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 2.6", + "value": 31 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file diff --git a/testdata/sat-null-SAMSUNG_MZ7L3480HCHQ-00A07-sda.json b/testdata/sat-null-SAMSUNG_MZ7L3480HCHQ-00A07-sda.json new file mode 100644 index 0000000..0617056 --- /dev/null +++ b/testdata/sat-null-SAMSUNG_MZ7L3480HCHQ-00A07-sda.json @@ -0,0 +1,674 @@ +{ + "ata_smart_attributes": { + "revision": 1, + "table": [ + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "10786", + "value": 10786 + }, + "thresh": 0, + "value": 97, + "when_failed": "", + "worst": 97 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "10", + "value": 10 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 177, + "name": "Wear_Leveling_Count", + "raw": { + "string": "129", + "value": 129 + }, + "thresh": 5, + "value": 98, + "when_failed": "", + "worst": 98 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 179, + "name": "Used_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 180, + "name": "Unused_Rsvd_Blk_Cnt_Tot", + "raw": { + "string": "435", + "value": 435 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 181, + "name": "Program_Fail_Cnt_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 182, + "name": "Erase_Fail_Count_Total", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 183, + "name": "Runtime_Bad_Block", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 184, + "name": "End-to-End_Error", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "29", + "value": 29 + }, + "thresh": 0, + "value": 71, + "when_failed": "", + "worst": 57 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "29 (Min/Max 23/43)", + "value": 184685101085 + }, + "thresh": 0, + "value": 71, + "when_failed": "", + "worst": 57 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O-RC- ", + "updated_online": true, + "value": 26 + }, + "id": 195, + "name": "Hardware_ECC_Recovered", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 202, + "name": "Unknown_SSD_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 235, + "name": "Unknown_Attribute", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "1304884573", + "value": 1304884573 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "50913750", + "value": 50913750 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 243, + "name": "Unknown_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 244, + "name": "Unknown_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 245, + "name": "Unknown_Attribute", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 246, + "name": "Unknown_Attribute", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 247, + "name": "Unknown_Attribute", + "raw": { + "string": "65535", + "value": 65535 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 251, + "name": "Unknown_Attribute", + "raw": { + "string": "1792412160", + "value": 1792412160 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4092, + "minor_value": 94, + "string": "ACS-4 T13/BSR INCITS 529 revision 5" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 3, + "name": "2.5 inches" + }, + "in_smartctl_database": false, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "SAMSUNG MZ7L3480HCHQ-00A07", + "physical_block_size": 4096, + "power_cycle_count": 10, + "power_on_time": { + "hours": 10786 + }, + "rotation_rate": 0, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5049", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 29 + }, + "user_capacity": { + "blocks": 937703088, + "bytes": 480103981056 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 9528 + } +} \ No newline at end of file diff --git a/testdata/sat-null-ST18000NM000J-2TV103-sda.json b/testdata/sat-null-ST18000NM000J-2TV103-sda.json new file mode 100644 index 0000000..1a174e2 --- /dev/null +++ b/testdata/sat-null-ST18000NM000J-2TV103-sda.json @@ -0,0 +1,592 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "189861997", + "value": 189861997 + }, + "thresh": 44, + "value": 83, + "when_failed": "", + "worst": 65 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 92, + "when_failed": "", + "worst": 91 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "440935", + "value": 440935 + }, + "thresh": 45, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "1136", + "value": 1136 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 18, + "name": "Unknown_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "24 (Min/Max 24/27)", + "value": 454557720 + }, + "thresh": 0, + "value": 76, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "7", + "value": 7 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "1189", + "value": 1189 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "24 (0 23 0 0 0)", + "value": 98784247832 + }, + "thresh": 0, + "value": 24, + "when_failed": "", + "worst": 40 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---K ", + "updated_online": true, + "value": 35 + }, + "id": 200, + "name": "Multi_Zone_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "104 (35 88 0)", + "value": 38860864094312 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "183631411", + "value": 183631411 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "6230586", + "value": 6230586 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4064, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": false, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "ST18000NM000J-2TV103", + "physical_block_size": 4096, + "power_cycle_count": 11, + "power_on_time": { + "hours": 1136 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 24 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 35156656128, + "bytes": 18000207937536 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-null-ST8000NM017B-2TJ103-sda.json b/testdata/sat-null-ST8000NM017B-2TJ103-sda.json new file mode 100644 index 0000000..36a6ecf --- /dev/null +++ b/testdata/sat-null-ST8000NM017B-2TJ103-sda.json @@ -0,0 +1,570 @@ +{ + "ata_smart_attributes": { + "revision": 10, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "11772680", + "value": 11772680 + }, + "thresh": 44, + "value": 71, + "when_failed": "", + "worst": 64 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO---- ", + "updated_online": true, + "value": 3 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 94, + "when_failed": "", + "worst": 93 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "17", + "value": 17 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POSR-- ", + "updated_online": true, + "value": 15 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "790616774", + "value": 790616774 + }, + "thresh": 45, + "value": 89, + "when_failed": "", + "worst": 60 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "10645", + "value": 10645 + }, + "thresh": 0, + "value": 88, + "when_failed": "", + "worst": 88 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 97, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 18, + "name": "Unknown_Attribute", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 187, + "name": "Reported_Uncorrect", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 188, + "name": "Command_Timeout", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 190, + "name": "Airflow_Temperature_Cel", + "raw": { + "string": "27 (Min/Max 24/30)", + "value": 504889371 + }, + "thresh": 0, + "value": 73, + "when_failed": "", + "worst": 47 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "11", + "value": 11 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "651", + "value": 651 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "27 (0 18 0 0 0)", + "value": 77309411355 + }, + "thresh": 0, + "value": 27, + "when_failed": "", + "worst": 44 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----C- ", + "updated_online": false, + "value": 16 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": true, + "event_count": true, + "performance": true, + "prefailure": false, + "string": "-OSRCK ", + "updated_online": true, + "value": 62 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "10091 (72 195 0)", + "value": 80002355832683 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 241, + "name": "Total_LBAs_Written", + "raw": { + "string": "401457943888", + "value": 401457943888 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "------ ", + "updated_online": false, + "value": 0 + }, + "id": 242, + "name": "Total_LBAs_Read", + "raw": { + "string": "60841830299295", + "value": 60841830299295 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 253 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 4064, + "minor_value": 65535, + "string": "ACS-4 (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": false, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "ST8000NM017B-2TJ103", + "physical_block_size": 4096, + "power_cycle_count": 18, + "power_on_time": { + "hours": 10645 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 27 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3152 + } +} \ No newline at end of file diff --git a/testdata/sat-null-TOSHIBA_HDWR160-sdc.json b/testdata/sat-null-TOSHIBA_HDWR160-sdc.json new file mode 100644 index 0000000..f428a5c --- /dev/null +++ b/testdata/sat-null-TOSHIBA_HDWR160-sdc.json @@ -0,0 +1,630 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "7786", + "value": 7786 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "52", + "value": 52 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "23690", + "value": 23690 + }, + "thresh": 0, + "value": 41, + "when_failed": "", + "worst": 41 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "52", + "value": 52 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "51", + "value": 51 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "59", + "value": 59 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "29 (Min/Max 15/39)", + "value": 167504707613 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "84541451", + "value": 84541451 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "23624", + "value": 23624 + }, + "thresh": 0, + "value": 41, + "when_failed": "", + "worst": 41 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "527", + "value": 527 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2040, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdc [SAT]", + "name": "/dev/sdc", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": false, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "TOSHIBA HDWR160", + "physical_block_size": 4096, + "power_cycle_count": 52, + "power_on_time": { + "hours": 23690 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdc" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 29 + }, + "user_capacity": { + "blocks": 11721045168, + "bytes": 6001175126016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-null-TOSHIBA_MG04ACA100N-sdu.json b/testdata/sat-null-TOSHIBA_MG04ACA100N-sdu.json new file mode 100644 index 0000000..a43abd9 --- /dev/null +++ b/testdata/sat-null-TOSHIBA_MG04ACA100N-sdu.json @@ -0,0 +1,636 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "2013", + "value": 2013 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "33", + "value": 33 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "21821", + "value": 21821 + }, + "thresh": 0, + "value": 46, + "when_failed": "", + "worst": 46 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "33", + "value": 33 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "26", + "value": 26 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "114", + "value": 114 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "23 (Min/Max 14/33)", + "value": 141734838295 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "21471", + "value": 21471 + }, + "thresh": 0, + "value": 47, + "when_failed": "", + "worst": 47 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "648", + "value": 648 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 504, + "minor_value": 0, + "string": "ATA8-ACS (minor revision not indicated)" + }, + "device": { + "info_name": "/dev/sdu [SAT]", + "name": "/dev/sdu", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": false, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "TOSHIBA MG04ACA100N", + "physical_block_size": 512, + "power_cycle_count": 33, + "power_on_time": { + "hours": 21821 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.0", + "value": 63 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdu" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 23 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 1953525168, + "bytes": 1000204886016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-null-TOSHIBA_MG08ADA800E-sdo.json b/testdata/sat-null-TOSHIBA_MG08ADA800E-sdo.json new file mode 100644 index 0000000..17041a5 --- /dev/null +++ b/testdata/sat-null-TOSHIBA_MG08ADA800E-sdo.json @@ -0,0 +1,636 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--K ", + "updated_online": true, + "value": 39 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "9353", + "value": 9353 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 10, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 50, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "14085", + "value": 14085 + }, + "thresh": 0, + "value": 65, + "when_failed": "", + "worst": 65 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 30, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "6", + "value": 6 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 191, + "name": "G-Sense_Error_Rate", + "raw": { + "string": "1", + "value": 1 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "2", + "value": 2 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "28", + "value": 28 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "20 (Min/Max 17/29)", + "value": 124555165716 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "----CK ", + "updated_online": false, + "value": 48 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 220, + "name": "Disk_Shift", + "raw": { + "string": "393218", + "value": 393218 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 222, + "name": "Loaded_Hours", + "raw": { + "string": "13682", + "value": 13682 + }, + "thresh": 0, + "value": 66, + "when_failed": "", + "worst": 66 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 223, + "name": "Load_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 224, + "name": "Load_Friction", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": false, + "string": "-OS--K ", + "updated_online": true, + "value": 38 + }, + "id": 226, + "name": "Load-in_Time", + "raw": { + "string": "519", + "value": 519 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "P----- ", + "updated_online": false, + "value": 1 + }, + "id": 240, + "name": "Head_Flying_Hours", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 1, + "value": 100, + "when_failed": "", + "worst": 100 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 2040, + "minor_value": 109, + "string": "ACS-3 T13/2161-D revision 5" + }, + "device": { + "info_name": "/dev/sdo [SAT]", + "name": "/dev/sdo", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": false, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "TOSHIBA MG08ADA800E", + "physical_block_size": 4096, + "power_cycle_count": 6, + "power_on_time": { + "hours": 14085 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.3", + "value": 511 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smart_support": { + "available": true, + "enabled": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sdo" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "version": [ + 7, + 3 + ] + }, + "temperature": { + "current": 20 + }, + "trim": { + "supported": false + }, + "user_capacity": { + "blocks": 15628053168, + "bytes": 8001563222016 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 57 + } +} \ No newline at end of file diff --git a/testdata/sat-null-WDC__WUS721010ALE6L4-sda.json b/testdata/sat-null-WDC__WUS721010ALE6L4-sda.json new file mode 100644 index 0000000..781d411 --- /dev/null +++ b/testdata/sat-null-WDC__WUS721010ALE6L4-sda.json @@ -0,0 +1,476 @@ +{ + "ata_smart_attributes": { + "revision": 16, + "table": [ + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 1, + "name": "Raw_Read_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 16, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 2, + "name": "Throughput_Performance", + "raw": { + "string": "92", + "value": 92 + }, + "thresh": 54, + "value": 133, + "when_failed": "", + "worst": 133 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "POS--- ", + "updated_online": true, + "value": 7 + }, + "id": 3, + "name": "Spin_Up_Time", + "raw": { + "string": "0", + "value": 51539607552 + }, + "thresh": 24, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 4, + "name": "Start_Stop_Count", + "raw": { + "string": "5", + "value": 5 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--CK ", + "updated_online": true, + "value": 51 + }, + "id": 5, + "name": "Reallocated_Sector_Ct", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 5, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": true, + "string": "PO-R-- ", + "updated_online": true, + "value": 11 + }, + "id": 7, + "name": "Seek_Error_Rate", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 67, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": true, + "prefailure": true, + "string": "P-S--- ", + "updated_online": false, + "value": 5 + }, + "id": 8, + "name": "Seek_Time_Performance", + "raw": { + "string": "18", + "value": 18 + }, + "thresh": 20, + "value": 128, + "when_failed": "", + "worst": 128 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 9, + "name": "Power_On_Hours", + "raw": { + "string": "9829", + "value": 9829 + }, + "thresh": 0, + "value": 99, + "when_failed": "", + "worst": 99 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": true, + "string": "PO--C- ", + "updated_online": true, + "value": 19 + }, + "id": 10, + "name": "Spin_Retry_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 60, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 12, + "name": "Power_Cycle_Count", + "raw": { + "string": "5", + "value": 5 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 192, + "name": "Power-Off_Retract_Count", + "raw": { + "string": "417", + "value": 417 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--C- ", + "updated_online": true, + "value": 18 + }, + "id": 193, + "name": "Load_Cycle_Count", + "raw": { + "string": "417", + "value": 417 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---- ", + "updated_online": true, + "value": 2 + }, + "id": 194, + "name": "Temperature_Celsius", + "raw": { + "string": "29 (Min/Max 21/39)", + "value": 167505100829 + }, + "thresh": 0, + "value": 206, + "when_failed": "", + "worst": 206 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": true, + "performance": false, + "prefailure": false, + "string": "-O--CK ", + "updated_online": true, + "value": 50 + }, + "id": 196, + "name": "Reallocated_Event_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": true, + "error_rate": false, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O---K ", + "updated_online": true, + "value": 34 + }, + "id": 197, + "name": "Current_Pending_Sector", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "---R-- ", + "updated_online": false, + "value": 8 + }, + "id": 198, + "name": "Offline_Uncorrectable", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 100, + "when_failed": "", + "worst": 100 + }, + { + "flags": { + "auto_keep": false, + "error_rate": true, + "event_count": false, + "performance": false, + "prefailure": false, + "string": "-O-R-- ", + "updated_online": true, + "value": 10 + }, + "id": 199, + "name": "UDMA_CRC_Error_Count", + "raw": { + "string": "0", + "value": 0 + }, + "thresh": 0, + "value": 200, + "when_failed": "", + "worst": 200 + } + ] + }, + "ata_smart_error_log": { + "summary": { + "count": 0, + "revision": 1 + } + }, + "ata_version": { + "major_value": 1020, + "minor_value": 41, + "string": "ACS-2, ATA8-ACS T13/1699-D revision 4" + }, + "device": { + "info_name": "/dev/sda [SAT]", + "name": "/dev/sda", + "protocol": "ATA", + "type": "sat" + }, + "firmware_version": "REDACTED", + "form_factor": { + "ata_value": 2, + "name": "3.5 inches" + }, + "in_smartctl_database": false, + "interface_speed": { + "current": { + "bits_per_unit": 100000000, + "sata_value": 3, + "string": "6.0 Gb/s", + "units_per_second": 60 + }, + "max": { + "bits_per_unit": 100000000, + "sata_value": 14, + "string": "6.0 Gb/s", + "units_per_second": 60 + } + }, + "json_format_version": [ + 1, + 0 + ], + "local_time": { + "asctime": "Fri Feb 13 23:31:30 2009 UTC", + "time_t": 1234567890 + }, + "logical_block_size": 512, + "model_name": "WDC WUS721010ALE6L4", + "physical_block_size": 4096, + "power_cycle_count": 5, + "power_on_time": { + "hours": 9829 + }, + "rotation_rate": 7200, + "sata_version": { + "string": "SATA 3.2", + "value": 255 + }, + "serial_number": "REDACTED", + "smart_status": { + "passed": true + }, + "smartctl": { + "argv": [ + "smartctl", + "--json", + "--info", + "--health", + "--attributes", + "--tolerance=verypermissive", + "--nocheck=standby", + "--format=brief", + "--log=error", + "/dev/sda" + ], + "build_info": "REDACTED", + "exit_status": 0, + "platform_info": "REDACTED", + "svn_revision": "5022", + "version": [ + 7, + 1 + ] + }, + "temperature": { + "current": 29 + }, + "user_capacity": { + "blocks": 19532873728, + "bytes": 10000831348736 + }, + "wwn": { + "id": 1234567890, + "naa": 5, + "oui": 3274 + } +} \ No newline at end of file