Debian Codegraph @

tests/smart_dumps/04_malformed.json

raw
1 {
2 "json_format_version": [
3 1,
4 0
5 ],
6 "smartctl": {
7 "version": [
8 7,
9 3
10 ],
11 "svn_revision": "5338",
12 "platform_info": "x86_64-linux-6.0.2-zen",
13 "build_info": "(local build)",
14 "argv": [
15 "smartctl",
16 "--health",
17 "--capabilities",
18 "--attributes",
19 "--info",
20 "--json",
21 "--nocheck=never",
22 "/dev/sda"
23 ],
24 "drive_database_version": {
25 "string": "7.3/5417"
26 },
27 "exit_status": 0
28 },
29 hahaha
30 "local_time": {
31 "time_t": 1672926876,
32 "asctime": "Thu Jan 5 14:54:36 2023 CET"
33 },
34 "device": {
35 "name": "/dev/sda",
36 "info_name": "/dev/sda [SAT]",
37 "type": "sat",
38 "protocol": "ATA"
39 },
40 "model_name": "TOSHIBA THNSNH128GBST",
41 "serial_number": "123456789012",
42 "wwn": {
43 "naa": 5,
44 "oui": 2061,
45 "id": 1234
46 },
47 "firmware_version": "HTRAN101",
48 "user_capacity": {
49 "blocks": 250069680,
50 "bytes": 128035676160
51 },
52 "logical_block_size": 512,
53 "physical_block_size": 512,
54 "rotation_rate": 0,
55 "form_factor": {
56 "ata_value": 3,
57 "name": "2.5 inches"
58 },
59 "trim": {
60 "supported": true,
61 "deterministic": true,
62 "zeroed": true
63 },
64 "in_smartctl_database": false,
65 "ata_version": {
66 "string": "ACS-2 (minor revision not indicated)",
67 "major_value": 1016,
68 "minor_value": 0
69 },
70 "sata_version": {
71 "string": "SATA 3.1",
72 "value": 127
73 },
74 "interface_speed": {
75 "max": {
76 "sata_value": 14,
77 "string": "6.0 Gb/s",
78 "units_per_second": 60,
79 "bits_per_unit": 100000000
80 },
81 "current": {
82 "sata_value": 3,
83 "string": "6.0 Gb/s",
84 "units_per_second": 60,
85 "bits_per_unit": 100000000
86 }
87 },
88 "smart_support": {
89 "available": true,
90 "enabled": true
91 },
92 "smart_status": {
93 "passed": true
94 },
95 "ata_smart_data": {
96 "offline_data_collection": {
97 "status": {
98 "value": 2,
99 "string": "was completed without error",
100 "passed": true
101 },
102 "completion_seconds": 120
103 },
104 "self_test": {
105 "status": {
106 "value": 0,
107 "string": "completed without error",
108 "passed": true
109 },
110 "polling_minutes": {
111 "short": 2,
112 "extended": 8
113 }
114 },
115 "capabilities": {
116 "values": [
117 91,
118 3
119 ],
120 "exec_offline_immediate_supported": true,
121 "offline_is_aborted_upon_new_cmd": false,
122 "offline_surface_scan_supported": true,
123 "self_tests_supported": true,
124 "conveyance_self_test_supported": false,
125 "selective_self_test_supported": true,
126 "attribute_autosave_enabled": true,
127 "error_logging_supported": true,
128 "gp_logging_supported": true
129 }
130 },
131 "ata_sct_capabilities": {
132 "value": 57,
133 "error_recovery_control_supported": true,
134 "feature_control_supported": true,
135 "data_table_supported": true
136 },
137 "ata_smart_attributes": {
138 "revision": 16,
139 "table": [
140 {
141 "id": 1,
142 "name": "Raw_Read_Error_Rate",
143 "value": 100,
144 "worst": 100,
145 "thresh": 0,
146 "when_failed": "",
147 "flags": {
148 "value": 10,
149 "string": "-O-R-- ",
150 "prefailure": false,
151 "updated_online": true,
152 "performance": false,
153 "error_rate": true,
154 "event_count": false,
155 "auto_keep": false
156 },
157 "raw": {
158 "value": 0,
159 "string": "0"
160 }
161 },
162 {
163 "id": 2,
164 "name": "Throughput_Performance",
165 "value": 100,
166 "worst": 100,
167 "thresh": 50,
168 "when_failed": "",
169 "flags": {
170 "value": 5,
171 "string": "P-S--- ",
172 "prefailure": true,
173 "updated_online": false,
174 "performance": true,
175 "error_rate": false,
176 "event_count": false,
177 "auto_keep": false
178 },
179 "raw": {
180 "value": 0,
181 "string": "0"
182 }
183 },
184 {
185 "id": 240,
186 "name": "Unknown_SSD_Attribute",
187 "value": 100,
188 "worst": 100,
189 "thresh": 50,
190 "when_failed": "",
191 "flags": {
192 "value": 19,
193 "string": "PO--C- ",
194 "prefailure": true,
195 "updated_online": true,
196 "performance": false,
197 "error_rate": false,
198 "event_count": true,
199 "auto_keep": false
200 },
201 "raw": {
202 "value": 0,
203 "string": "0"
204 }
205 }
206 ]
207 },
208 "power_on_time": {
209 "hours": 29029
210 },
211 "power_cycle_count": 2322,
212 "temperature": {
213 "current": 32
214 }
215 }