blob: 7f713b3061c735f26bd262d4989eda8ad38aee71 [file] [log] [blame]
George Keishinge7e91712021-09-03 11:28:44 -05001#!/usr/bin/env python3
George Keishingd2795d62018-02-04 23:12:23 -06002
3r"""
George Keishingdcf746b2018-02-06 12:43:44 -06004IPMI raw commands table:
George Keishingd2795d62018-02-04 23:12:23 -06005
6 - Define IPMI interface index, commands and expected output.
7
8"""
George Keishing45511e82019-10-15 01:26:55 -05009# The currently supported cipher list.
Joy Onyerikwu004ad3c2018-06-11 16:29:56 -050010# Refer:
11# openbmc/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipe
12# s-phosphor/ipmi/phosphor-ipmi-host/cipher_list.json
Patrick Williams20f38712022-12-08 06:18:26 -060013valid_ciphers = ["17"]
14unsupported_ciphers = ["1", "2", "15", "16"]
George Keishing39967eb2018-04-30 11:36:23 -050015
George Keishingd2795d62018-02-04 23:12:23 -060016IPMI_RAW_CMD = {
17 # Interface name
Patrick Williams20f38712022-12-08 06:18:26 -060018 "power_supply_redundancy": {
George Keishingd2795d62018-02-04 23:12:23 -060019 # Command action type
Patrick Williams20f38712022-12-08 06:18:26 -060020 "Get": [
George Keishingd2795d62018-02-04 23:12:23 -060021 # raw command, expected output(s), comment
22 "0x04 0x2d 0x0b",
23 "00 00 01 00",
24 "Byte position 3rd LSB e.g. 01 indicates disabled",
25 "00 00 02 00",
26 "Byte position 3rd LSB e.g. 02 indicates enabled",
Steven Sombar27c1ad42018-09-11 14:44:25 -050027 "00 40 02 00",
28 "40 is scanning enabled and 02 indicates redundancy enabled",
George Keishingd2795d62018-02-04 23:12:23 -060029 ],
Patrick Williams20f38712022-12-08 06:18:26 -060030 "Enabled": [
George Keishingd2795d62018-02-04 23:12:23 -060031 # raw command, expected output, comment
32 "0x04 0x30 0x0b 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00 0x00",
33 "none",
34 "Enabled nibble position 6th LSB e.g. 0x2",
35 ],
Patrick Williams20f38712022-12-08 06:18:26 -060036 "Disabled": [
George Keishingd2795d62018-02-04 23:12:23 -060037 # raw command, expected output, comment
38 "0x04 0x30 0x0b 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00",
39 "none",
40 "Enabled nibble position 6th LSB e.g. 0x1",
41 ],
Rahul Maheshwariabe13af2018-02-15 22:42:08 -060042 },
Patrick Williams20f38712022-12-08 06:18:26 -060043 "power_reading": {
44 "Get": [
Rahul Maheshwariabe13af2018-02-15 22:42:08 -060045 # raw command, expected output(s), comment
46 "0x2c 0x02 0xdc 0x01 0x01 0x00",
47 "dc d5 00 d5 00 d5 00 d5 00 00 00 00 00 00 00 00 00 00",
48 "Byte position 2nd LSB e.g. d5 Instantaneous power readings",
49 ],
Rahul Maheshwari0eb33f02018-04-10 02:31:54 -050050 },
Patrick Williams20f38712022-12-08 06:18:26 -060051 "conf_param": {
52 "Enabled": [
Rahul Maheshwari0eb33f02018-04-10 02:31:54 -050053 # raw command, expected output, comment
54 "0x2c 0x12 0xdc 0x02 0x00 0x01",
55 "dc",
56 "Enabled nibble position 6th LSB e.g. 0x01",
57 ],
Patrick Williams20f38712022-12-08 06:18:26 -060058 "Disabled": [
Rahul Maheshwari0eb33f02018-04-10 02:31:54 -050059 # raw command, expected output, comment
60 "0x2c 0x12 0xdc 0x02 0x00 0x00",
61 "dc",
62 "Disable nibble position 6th LSB e.g. 0x00",
Patrick Williams20f38712022-12-08 06:18:26 -060063 ],
Tony Lee160aa872020-02-12 16:11:39 +080064 },
Patrick Williams20f38712022-12-08 06:18:26 -060065 "SEL_entry": {
66 "Reserve": [
Tony Lee160aa872020-02-12 16:11:39 +080067 # raw command, expected output, comment
68 "0x0a 0x42",
69 "27 00",
70 "27 is Reservation ID, LSB, 00 Reservation ID, MSB ",
chithrag0a8c8782022-03-01 12:35:00 +000071 ],
Patrick Williams20f38712022-12-08 06:18:26 -060072 "Get_SEL_Time": [
chithrag0a8c8782022-03-01 12:35:00 +000073 # raw command
Patrick Williams20f38712022-12-08 06:18:26 -060074 "0x0a 0x48",
chithrag0a8c8782022-03-01 12:35:00 +000075 ],
Patrick Williams20f38712022-12-08 06:18:26 -060076 "Set_SEL_Time": [
chithragd7e009b2022-03-01 12:20:57 +000077 # raw command, expected output(s)
Patrick Williams20f38712022-12-08 06:18:26 -060078 "0x0a 0x49",
79 "rsp=0xd5",
80 "not supported in present state",
81 "rsp=0xc7",
82 "Request data length invalid",
chithragd7e009b2022-03-01 12:20:57 +000083 ],
Patrick Williams20f38712022-12-08 06:18:26 -060084 "Clear_SEL": [
chithragd7e009b2022-03-01 12:20:57 +000085 # raw command, expected output(s)
86 "0x0a 0x47",
87 "0x43 0x4c 0x52 0xaa",
88 "sel clear",
89 "Clearing SEL",
90 "rsp=0xc5",
91 "Reservation cancelled or invalid",
92 "0x43 0x4c 0x52 0x00",
93 ],
Patrick Williams20f38712022-12-08 06:18:26 -060094 "SEL_info": [
chithragd7e009b2022-03-01 12:20:57 +000095 # raw command
96 "0x0a 0x40"
chithrag0a8c8782022-03-01 12:35:00 +000097 ],
Patrick Williams20f38712022-12-08 06:18:26 -060098 "Create_SEL": [
chithrag0a8c8782022-03-01 12:35:00 +000099 # raw command
100 "0x0a 0x44 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x04",
101 "0x00 0xa0 0x04 0x07",
102 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600103 "Get_SEL_Entry": [
chithragd7e009b2022-03-01 12:20:57 +0000104 # raw command
105 "0x0a 0x43 0x00 0x00",
106 "0x00 0xff",
107 ],
Tony Lee3fdd31e2020-02-15 11:21:40 +0800108 },
Patrick Williams20f38712022-12-08 06:18:26 -0600109 "Self_Test_Results": {
110 "Get": [
Tony Lee3fdd31e2020-02-15 11:21:40 +0800111 # raw command, expected output(s), comment
112 "0x06 0x04",
113 "56 00",
114 "56h = Self Test function not implemented in this controller.",
115 ]
116 },
Patrick Williams20f38712022-12-08 06:18:26 -0600117 "Device GUID": {
118 "Get": [
Tony Lee3fdd31e2020-02-15 11:21:40 +0800119 # raw command, expected output(s), comment
120 "0x06 0x08",
121 "01 70 9b ae da 6f dd 9c b4 4c 36 be 66 c8 49 28",
122 "Get GUID bytes 1 through 16.",
Tony Lee3fdd31e2020-02-15 11:21:40 +0800123 ]
Tony Leec03c8e22020-03-25 13:41:07 +0800124 },
Patrick Williams20f38712022-12-08 06:18:26 -0600125 "LAN_Config_Params": {
126 "Get": [
Tony Leec03c8e22020-03-25 13:41:07 +0800127 # raw command, expected output, comment
128 "0x0c 0x02",
129 "11 02",
Patrick Williams20f38712022-12-08 06:18:26 -0600130 (
131 "11 is Parameter revision, 02 is Configuration parameter data"
132 " e.g. Cipher Suite Entry count"
133 ),
chithrag4ad123a2022-04-12 19:26:05 +0000134 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600135 "Set": [
chithrag4ad123a2022-04-12 19:26:05 +0000136 # raw command, expected output, error response
137 "0x0c 0x01",
138 "11 00",
139 "Unknown (0x82)",
140 "Invalid data field in request",
141 ],
Tony Lee6c998f72020-03-09 18:28:35 +0800142 },
Patrick Williams20f38712022-12-08 06:18:26 -0600143 "Payload": {
144 "Get_Payload_Activation_Status": [
Tony Lee6c998f72020-03-09 18:28:35 +0800145 # raw command, expected output(s), comment
146 "0x06 0x4a 0x01",
147 "01 00 00",
Patrick Williams20f38712022-12-08 06:18:26 -0600148 (
149 "1st byte is instance capacity, last two bytes is activation"
150 " status of instances"
151 ),
Tony Lee6c998f72020-03-09 18:28:35 +0800152 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600153 "Activate_Payload": [
Tony Lee6c998f72020-03-09 18:28:35 +0800154 # raw command, expected output(s), comment
155 "0x06 0x48 0x01 0x01 0xc6 0x00 0x00 0x00",
156 "00 00 00 00 ff 00 ff 00 6f 02 ff ff",
Patrick Williams20f38712022-12-08 06:18:26 -0600157 (
158 "Last two bits are payload vlan number, - FFFFh if VLAN"
159 " addressing is not used"
160 ),
Tony Lee6c998f72020-03-09 18:28:35 +0800161 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600162 "Deactivate_Payload": [
Tony Lee6c998f72020-03-09 18:28:35 +0800163 # raw command, expected output(s), comment
164 "0x06 0x49 0x01 0x01 0x00 0x00 0x00 0x00",
165 "",
166 "Line feed only",
167 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600168 "Get_Payload_Instance_Info": [
Tony Lee6c998f72020-03-09 18:28:35 +0800169 # raw command, expected output(s), comment
170 "0x06 0x4b 0x01 0x01",
171 "00 00 00 00 00 00 00 00 00 00 00 00",
Patrick Williams20f38712022-12-08 06:18:26 -0600172 (
173 "When the payload is activated, the first four bytes are the"
174 " session ID,otherwise it should be 00."
175 ),
nagarjunb22a2255de2022-05-25 19:15:10 +0530176 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600177 "Get_User_Access_Payload": [
nagarjunb22a2255de2022-05-25 19:15:10 +0530178 # raw command,
179 "0x06 0x4d"
180 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600181 "Set_User_Access_Payload": [
nagarjunb22a2255de2022-05-25 19:15:10 +0530182 # raw command,
183 "0x06 0x4c"
184 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600185 "Get_Channel_Payload_Version": [
nagarjunb2293e6e242022-06-10 21:36:19 +0530186 # raw command,
187 "0x06 0x4F"
188 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600189 "Get_Channel_Payload_Support": [
nagarjunb2293e6e242022-06-10 21:36:19 +0530190 # raw command,
191 "0x06 0x4E"
192 ],
Nagarjune94e5402022-01-19 15:26:27 -0500193 },
Patrick Williams20f38712022-12-08 06:18:26 -0600194 "BIOS_POST_Code": {
195 "Get": [
Nagarjune94e5402022-01-19 15:26:27 -0500196 # raw command, expected output, comment
197 "0x30 0xe9",
198 "",
199 "Response bytes will vary in length depending on state of system",
200 "0x89",
Patrick Williams20f38712022-12-08 06:18:26 -0600201 "error response byte when host is powered off",
Nagarjune94e5402022-01-19 15:26:27 -0500202 ]
nagarjunb22cfb2c412022-03-15 15:49:27 +0530203 },
Patrick Williams20f38712022-12-08 06:18:26 -0600204 "Device ID": {
205 "Get": [
chithrag8a17c492022-03-01 12:53:44 +0000206 # raw command, error response, error code
207 "0x06 0x01",
208 "Error: Unable to establish IPMI v2 / RMCP+ session",
209 "0xc7",
nagarjunb22cfb2c412022-03-15 15:49:27 +0530210 ]
211 },
Patrick Williams20f38712022-12-08 06:18:26 -0600212 "Cold Reset": {
213 "reset": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530214 # raw command
215 "0x06 0x02"
216 ]
217 },
Patrick Williams20f38712022-12-08 06:18:26 -0600218 "lan_parameters": {
219 "get_ip": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530220 # raw command
Nagarjun B26499142023-02-16 15:20:14 +0530221 "0x0c 0x02 0x01 0x03 0 0",
nagarjunb22cfb2c412022-03-15 15:49:27 +0530222 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600223 "get_ip_src": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530224 # raw command
Nagarjun B26499142023-02-16 15:20:14 +0530225 "0x0c 0x02 0x01 0x04 0 0",
nagarjunb22cfb2c412022-03-15 15:49:27 +0530226 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600227 "get_dot1q": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530228 # raw command
Nagarjun B26499142023-02-16 15:20:14 +0530229 "0x0c 0x02 0x01 0x14 0 0",
Patrick Williams20f38712022-12-08 06:18:26 -0600230 ],
nagarjunb22cfb2c412022-03-15 15:49:27 +0530231 },
Patrick Williams20f38712022-12-08 06:18:26 -0600232 "SDR_Info": {
233 "get": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530234 # raw command
235 "0x04 0x20 1"
236 ]
237 },
Patrick Williams20f38712022-12-08 06:18:26 -0600238 "Chassis_status": {
239 "get": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530240 # raw command
241 "0x00 0x01"
242 ]
243 },
Patrick Williams20f38712022-12-08 06:18:26 -0600244 "SEL_Info": {
245 "get": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530246 # raw command
247 "0x0a 0x40"
248 ]
249 },
Patrick Williams20f38712022-12-08 06:18:26 -0600250 "Watchdog": {
leetde9356e2022-03-23 01:39:29 +0000251 # Command action type
Patrick Williams20f38712022-12-08 06:18:26 -0600252 "Get": [
leetde9356e2022-03-23 01:39:29 +0000253 # raw command, expected output(s), comment
254 "0x06 0x25",
255 "05 00 00 00 64 00",
256 "don't log bit enabled",
257 "85 00 00 00 64 00",
258 "don't log bit disabled",
259 "05 00 00 00 64 00",
260 "stop bit stop",
261 "45 00 00 00 64 00",
262 "stop bit resume",
263 "01 00 00 00 64 00",
264 "timer use FRB2",
265 "02 00 00 00 64 00",
266 "timer use POST",
267 "03 00 00 00 64 00",
268 "timer use OS",
269 "04 00 00 00 64 00",
270 "timer use SMS",
271 "05 00 00 00 64 00",
272 "timer use OEM",
273 "05 00 00 00 64 00",
274 "pre-timeout interrupt None",
275 "05 20 00 00 64 00",
276 "pre-timeout interrupt NMI",
277 "05 00 00 00 64 00",
278 "timeout action None",
279 "05 01 00 00 64 00",
280 "timeout action Reset",
281 "05 02 00 00 64 00",
282 "timeout action PowerDown",
283 "05 03 00 00 64 00",
284 "timeout action PowerCycle",
285 "01 00 00 02 00 00",
286 "timeout flag FRB2",
287 "02 00 00 04 00 00",
288 "timeout flag POST",
289 "03 00 00 08 00 00",
290 "timeout flag OS",
291 "04 00 00 10 00 00",
292 "timeout flag SMS",
293 "05 00 00 20 00 00",
294 "timeout flag OEM",
295 "05 00 00 00 30 35 30 35",
296 "Get should return 13.6 seconds",
297 "05 00 00 00 ff ff ff ff",
298 "Bit 6 not set when timer stopped",
299 "0x06 0x25 0x00",
300 "Get with one extra byte",
301 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600302 "Set": [
leetde9356e2022-03-23 01:39:29 +0000303 # raw command, expected output, comment
304 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
305 "none",
306 "don't log bit enabled",
307 "0x06 0x24 0x85 0x00 0x00 0x00 0x64 0x00",
308 "none",
309 "don't log bit disabled",
310 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
311 "none",
312 "stop bit stop",
313 "0x06 0x24 0x45 0x00 0x00 0x00 0x64 0x00",
314 "none",
315 "stop bit resume",
316 "0x06 0x24 0x01 0x00 0x00 0x00 0x64 0x00",
317 "none",
318 "timer use FRB2",
319 "0x06 0x24 0x02 0x00 0x00 0x00 0x64 0x00",
320 "none",
321 "timer use POST",
322 "0x06 0x24 0x03 0x00 0x00 0x00 0x64 0x00",
323 "none",
324 "timer use OS",
325 "0x06 0x24 0x04 0x00 0x00 0x00 0x64 0x00",
326 "none",
327 "timer use SMS",
328 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
329 "none",
330 "timer use OEM",
331 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
332 "none",
333 "pre-timeout interrupt None",
334 "0x06 0x24 0x05 0x20 0x00 0x00 0x64 0x00",
335 "none",
336 "pre-timeout interrupt NMI",
337 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
338 "none",
339 "timeout action None",
340 "0x06 0x24 0x05 0x01 0x00 0x00 0x64 0x00",
341 "none",
342 "timeout action Reset",
343 "0x06 0x24 0x05 0x02 0x00 0x00 0x64 0x00",
344 "none",
345 "timeout action PowerDown",
346 "0x06 0x24 0x05 0x03 0x00 0x00 0x64 0x00",
347 "none",
348 "timeout action PowerCycle",
349 "0x06 0x24 0x01 0x00 0x00 0x3e 0x00 0x00",
350 "none",
351 "timeout flag FRB2",
352 "0x06 0x24 0x02 0x00 0x00 0x3e 0x00 0x00",
353 "none",
354 "timeout flag POST",
355 "0x06 0x24 0x03 0x00 0x00 0x3e 0x00 0x00",
356 "none",
357 "timeout flag OS",
358 "0x06 0x24 0x04 0x00 0x00 0x3e 0x00 0x00",
359 "none",
360 "timeout flag SMS",
361 "0x06 0x24 0x05 0x00 0x00 0x3e 0x00 0x00",
362 "none",
363 "timeout flag OEM",
364 "0x06 0x24 0x01 0x02 0x00 0x00 0x20 0x00",
365 "none",
366 "Power down",
367 "0x06 0x24 0x01 0x01 0x00 0x00 0x20 0x00",
368 "none",
369 "Hard reset",
370 "0x06 0x24 0x01 0x03 0x00 0x00 0x20 0x00",
371 "none",
372 "Power cycle",
373 "0x06 0x24 0x01 0x00 0x00 0x00 0x20 0x00",
374 "none",
375 "No action",
376 "0x06 0x24 0x05 0x00 0x00 0x3e 0x30 0x35",
377 "none",
378 "Set for 13.6 seconds",
379 "0x06 0x24 0x05 0x00 0x07 0x00 0x50 0x00",
380 "none",
381 "Pre-timeout interval passes",
382 "0x06 0x24 0x05 0x00 0x04 0x00 0x0A 0x00",
383 "none",
384 "Pre-timeout interval fails",
385 "0x06 0x24 0x05 0x00 0x00 0x20 0xFF 0xFF",
386 "none",
387 "Bit 6 not set when timer stopped",
388 "0x06 0x24 0x05 0x00 0x08 0x00 0x64",
389 "none",
390 "Set with one less byte",
391 "0x06 0x24 0x05 0x00 0x08 0x00 0x64 0x00 0x00",
392 "none",
393 "Set with one extra byte",
394 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600395 "Reset": [
leetde9356e2022-03-23 01:39:29 +0000396 # raw command, expected output, comment
397 "0x06 0x22",
398 "none",
399 "Reset watchdog timer",
400 "0x06 0x22 0x00",
401 "none",
402 "Reset watchdog timer with extra byte",
403 "0x06 0x22",
404 "none",
405 "Reset watchdog timer without initialized watchdog",
Patrick Williams20f38712022-12-08 06:18:26 -0600406 ],
chithrag782ad282022-03-12 10:12:40 +0000407 },
Patrick Williams20f38712022-12-08 06:18:26 -0600408 "SOL": {
409 "Set_SOL": [
George Keishinge635ddc2022-12-08 07:38:02 -0600410 # raw command, expected output(s), comment
Patrick Williams20f38712022-12-08 06:18:26 -0600411 "Invalid value",
412 "Valid values are serial, 9.6 19.2, 38.4, 57.6 and 115.2",
George Keishinge635ddc2022-12-08 07:38:02 -0600413 ]
414 },
Patrick Williams20f38712022-12-08 06:18:26 -0600415 "Get SDR": {
416 "Get": [
chithrag782ad282022-03-12 10:12:40 +0000417 # Get SDR raw command without Reservation ID.
418 "0x0a 0x23 0x00 0x00 0x00 0x00 0x00 0xff",
419 # Netfunction and cmd.
420 "0x0a 0x23",
421 # Record ID offset and bytes to read.
nagarjunb228ea859e2022-07-12 21:39:51 +0530422 "0x01 0x0f",
chithrag782ad282022-03-12 10:12:40 +0000423 # Raw command To Get SDR Partial without Reservation ID.
Patrick Williams20f38712022-12-08 06:18:26 -0600424 "0x0a 0x23 0x00 0x00 0x00 0x00 0x01 0x0f",
chithragdc5679e2022-03-01 11:51:41 +0000425 ],
chithraga6be41e2022-03-01 13:20:23 +0000426 },
Patrick Williams20f38712022-12-08 06:18:26 -0600427 "Get": {
428 "POH_Counter": [
chithraga6be41e2022-03-01 13:20:23 +0000429 # raw command, error response
Patrick Williams20f38712022-12-08 06:18:26 -0600430 "0x00 0x0f",
431 "Error: Unable to establish IPMI v2 / RMCP+ session",
chithraga6be41e2022-03-01 13:20:23 +0000432 ]
chithrag782ad282022-03-12 10:12:40 +0000433 },
Patrick Williams20f38712022-12-08 06:18:26 -0600434 "Device_SDR": {
435 "Get_Info": [
chithrag782ad282022-03-12 10:12:40 +0000436 # raw command, expected output(s), comment
437 "0x04 0x20 0x00",
438 "0x04 0x20 0x01",
439 "rsp=0xc7",
440 "Request data length invalid",
441 "rsp=0xd4",
442 "Insufficient privilege level",
443 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600444 "Get": [
chithrag782ad282022-03-12 10:12:40 +0000445 # raw command, expected output(s), comment
446 "0x04 0x21",
447 "0x00 0x00 0x00 0xff",
448 "rsp=0xc7",
449 "Request data length invalid",
450 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600451 "Reserve_Repository": [
chithrag782ad282022-03-12 10:12:40 +0000452 # raw command, expected output(s), comment
453 "0x04 0x22",
454 "rsp=0xc7",
455 "Request data length invalid",
456 "rsp=0xd4",
457 "Insufficient privilege level",
458 "Reservation cancelled or invalid",
Patrick Williams20f38712022-12-08 06:18:26 -0600459 ],
chithrag015f7872022-03-21 09:42:01 +0000460 },
Patrick Williams20f38712022-12-08 06:18:26 -0600461 "System_Info": {
462 "param0_Set_In_Progress": {
463 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000464 # raw command, expected output(s)
465 "0x06 0x59 0x00 0x00 0x00 0x00",
466 "Request data length invalid",
467 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600468 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000469 # raw command, expected output(s)
ganesanbfc0c35a2022-08-04 07:31:15 +0000470 "0x06 0x58 0x00",
chithrag015f7872022-03-21 09:42:01 +0000471 "Request data length invalid",
472 "Invalid data field in request",
473 ],
474 },
Patrick Williams20f38712022-12-08 06:18:26 -0600475 "param1_System_Firmware_Version": {
476 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000477 # raw command, expected output(s)
478 "0x06 0x59 0x00 0x01 0x00 0x00",
479 "Request data length invalid",
480 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600481 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000482 # raw command, expected output(s)
483 "0x06 0x58 0x01 0x00 0x00 0x0e",
484 "Invalid data field in request",
485 ],
486 },
Patrick Williams20f38712022-12-08 06:18:26 -0600487 "param2_System_Name": {
488 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000489 # raw command, expected output(s)
490 "0x06 0x59 0x00 0x02 0x00 0x00",
491 "Request data length invalid",
492 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600493 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000494 # raw command, expected output(s)
495 "0x06 0x58 0x02 0x00 0x00 0x0e",
496 "Invalid data field in request",
497 ],
498 },
Patrick Williams20f38712022-12-08 06:18:26 -0600499 "param3_Primary_Operating_System_Name": {
500 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000501 # raw command, expected output(s)
502 "0x06 0x59 0x00 0x03 0x00 0x00",
503 "Request data length invalid",
504 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600505 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000506 # raw command, expected output(s)
507 "0x06 0x58 0x03 0x00 0x00 0x0e",
508 "Invalid data field in request",
509 ],
510 },
Patrick Williams20f38712022-12-08 06:18:26 -0600511 "param4_Operating_System_Name": {
512 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000513 # raw command, expected output(s)
514 "0x06 0x59 0x00 0x04 0x00 0x00",
515 "Request data length invalid",
516 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600517 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000518 # raw command, expected output(s)
519 "0x06 0x58 0x04 0x00 0x00 0x0e",
520 "Invalid data field in request",
521 ],
522 },
Patrick Williams20f38712022-12-08 06:18:26 -0600523 "param5_Present_OS_Version_number": {
524 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000525 # raw command, expected output(s)
526 "0x06 0x59 0x00 0x05 0x00 0x00",
527 "Request data length invalid",
528 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600529 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000530 # raw command, expected output(s)
531 "0x06 0x58 0x05 0x00 0x00 0x0e",
532 "Invalid data field in request",
Patrick Williams20f38712022-12-08 06:18:26 -0600533 ],
534 },
nagarjunb2298450742022-04-19 12:00:02 +0530535 },
Patrick Williams20f38712022-12-08 06:18:26 -0600536 "Get Channel Auth Cap": {
537 "get": [
nagarjunb2298450742022-04-19 12:00:02 +0530538 # raw command
539 "0x06 0x38",
540 ]
541 },
Patrick Williams20f38712022-12-08 06:18:26 -0600542 "Cipher Suite": {
543 "get": [
nagarjunb227fabf792022-04-19 11:09:29 +0530544 # raw command, supported algorithm
545 "0x06 0x54",
546 "03 44 81",
547 # 03 - HMAC-SHA256
548 # 44 - sha256_128
549 # 81 - aes_cbc_128
550 ]
551 },
Patrick Williams20f38712022-12-08 06:18:26 -0600552 "SDR": {
553 "Get": [
nagarjunb2287138e62022-04-19 16:49:16 +0530554 # Get SDR raw command without Reservation ID.
555 "0x0a 0x23 0x00 0x00 0x00 0x00 0x00 0xff",
556 # Netfunction and command.
557 "0x0a 0x23",
558 # Record ID offset and bytes to read.
559 "0x00 0x00 0x01 0x0f",
560 # Raw command To Get SDR Partial without reservation ID.
Patrick Williams20f38712022-12-08 06:18:26 -0600561 "0x0a 0x23 0x00 0x00 0x00 0x00 0x01 0x0f",
nagarjunb2287138e62022-04-19 16:49:16 +0530562 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600563 "Reserve SDR Repository": [
nagarjunb2287138e62022-04-19 16:49:16 +0530564 # raw command, expected output(s), comment
565 "0x0a 0x22",
566 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600567 "SDR Repository Info": [
nagarjunb2287138e62022-04-19 16:49:16 +0530568 # raw command.
569 "0x0a 0x20",
570 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600571 "Get SDR allocation Info": [
nagarjunb2287138e62022-04-19 16:49:16 +0530572 # raw command.
573 "0x0a 0x21"
574 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600575 "Delete SDR": [
nagarjunb2287138e62022-04-19 16:49:16 +0530576 # raw command.
577 "0x0a 0x26"
578 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600579 "Partially Add SDR": [
nagarjunb2287138e62022-04-19 16:49:16 +0530580 # raw command.
581 "0x0a 0x25"
Patrick Williams20f38712022-12-08 06:18:26 -0600582 ],
nagarjunb2287138e62022-04-19 16:49:16 +0530583 },
Patrick Williams20f38712022-12-08 06:18:26 -0600584 "FRU": {
585 "Inventory_Area_Info": [
ganesanbc288aff2022-05-19 19:55:47 +0530586 # raw command, expected output(s), comment
587 "0x0a 0x10",
588 "Invalid data field in request",
Patrick Williams20f38712022-12-08 06:18:26 -0600589 "Request data length invalid",
ganesanbc288aff2022-05-19 19:55:47 +0530590 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600591 "Read": [
ganesanbc288aff2022-05-19 19:55:47 +0530592 # raw command
593 "0x0a 0x11",
594 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600595 "Write": [
ganesanbc288aff2022-05-19 19:55:47 +0530596 # raw command
597 "0x0a 0x12",
598 ],
599 },
George Keishingd2795d62018-02-04 23:12:23 -0600600}