blob: eecb83ee73f331c0eb21e532ea8a9c672db6256e [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": [
ganesanba8aee232023-04-08 12:17:15 +000099 # raw command, expected output, comment
100 "0x0a 0x44 0x00 0x00 0x02 0x00 0x00 0x00 0x00",
101 "0x04",
chithrag0a8c8782022-03-01 12:35:00 +0000102 "0x00 0xa0 0x04 0x07",
103 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600104 "Get_SEL_Entry": [
chithragd7e009b2022-03-01 12:20:57 +0000105 # raw command
106 "0x0a 0x43 0x00 0x00",
107 "0x00 0xff",
108 ],
Tony Lee3fdd31e2020-02-15 11:21:40 +0800109 },
Patrick Williams20f38712022-12-08 06:18:26 -0600110 "Self_Test_Results": {
111 "Get": [
Tony Lee3fdd31e2020-02-15 11:21:40 +0800112 # raw command, expected output(s), comment
113 "0x06 0x04",
114 "56 00",
115 "56h = Self Test function not implemented in this controller.",
116 ]
117 },
Patrick Williams20f38712022-12-08 06:18:26 -0600118 "Device GUID": {
119 "Get": [
Tony Lee3fdd31e2020-02-15 11:21:40 +0800120 # raw command, expected output(s), comment
121 "0x06 0x08",
122 "01 70 9b ae da 6f dd 9c b4 4c 36 be 66 c8 49 28",
123 "Get GUID bytes 1 through 16.",
Tony Lee3fdd31e2020-02-15 11:21:40 +0800124 ]
Tony Leec03c8e22020-03-25 13:41:07 +0800125 },
Patrick Williams20f38712022-12-08 06:18:26 -0600126 "LAN_Config_Params": {
127 "Get": [
Tony Leec03c8e22020-03-25 13:41:07 +0800128 # raw command, expected output, comment
129 "0x0c 0x02",
130 "11 02",
Patrick Williams20f38712022-12-08 06:18:26 -0600131 (
132 "11 is Parameter revision, 02 is Configuration parameter data"
133 " e.g. Cipher Suite Entry count"
134 ),
chithrag4ad123a2022-04-12 19:26:05 +0000135 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600136 "Set": [
chithrag4ad123a2022-04-12 19:26:05 +0000137 # raw command, expected output, error response
138 "0x0c 0x01",
139 "11 00",
140 "Unknown (0x82)",
141 "Invalid data field in request",
142 ],
Tony Lee6c998f72020-03-09 18:28:35 +0800143 },
Patrick Williams20f38712022-12-08 06:18:26 -0600144 "Payload": {
145 "Get_Payload_Activation_Status": [
Tony Lee6c998f72020-03-09 18:28:35 +0800146 # raw command, expected output(s), comment
147 "0x06 0x4a 0x01",
148 "01 00 00",
Patrick Williams20f38712022-12-08 06:18:26 -0600149 (
150 "1st byte is instance capacity, last two bytes is activation"
151 " status of instances"
152 ),
Tony Lee6c998f72020-03-09 18:28:35 +0800153 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600154 "Activate_Payload": [
Tony Lee6c998f72020-03-09 18:28:35 +0800155 # raw command, expected output(s), comment
156 "0x06 0x48 0x01 0x01 0xc6 0x00 0x00 0x00",
157 "00 00 00 00 ff 00 ff 00 6f 02 ff ff",
Patrick Williams20f38712022-12-08 06:18:26 -0600158 (
159 "Last two bits are payload vlan number, - FFFFh if VLAN"
160 " addressing is not used"
161 ),
Tony Lee6c998f72020-03-09 18:28:35 +0800162 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600163 "Deactivate_Payload": [
Tony Lee6c998f72020-03-09 18:28:35 +0800164 # raw command, expected output(s), comment
165 "0x06 0x49 0x01 0x01 0x00 0x00 0x00 0x00",
166 "",
167 "Line feed only",
168 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600169 "Get_Payload_Instance_Info": [
Tony Lee6c998f72020-03-09 18:28:35 +0800170 # raw command, expected output(s), comment
171 "0x06 0x4b 0x01 0x01",
172 "00 00 00 00 00 00 00 00 00 00 00 00",
Patrick Williams20f38712022-12-08 06:18:26 -0600173 (
174 "When the payload is activated, the first four bytes are the"
175 " session ID,otherwise it should be 00."
176 ),
nagarjunb22a2255de2022-05-25 19:15:10 +0530177 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600178 "Get_User_Access_Payload": [
nagarjunb22a2255de2022-05-25 19:15:10 +0530179 # raw command,
180 "0x06 0x4d"
181 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600182 "Set_User_Access_Payload": [
nagarjunb22a2255de2022-05-25 19:15:10 +0530183 # raw command,
184 "0x06 0x4c"
185 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600186 "Get_Channel_Payload_Version": [
nagarjunb2293e6e242022-06-10 21:36:19 +0530187 # raw command,
188 "0x06 0x4F"
189 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600190 "Get_Channel_Payload_Support": [
nagarjunb2293e6e242022-06-10 21:36:19 +0530191 # raw command,
192 "0x06 0x4E"
193 ],
Nagarjune94e5402022-01-19 15:26:27 -0500194 },
Patrick Williams20f38712022-12-08 06:18:26 -0600195 "BIOS_POST_Code": {
196 "Get": [
Nagarjune94e5402022-01-19 15:26:27 -0500197 # raw command, expected output, comment
198 "0x30 0xe9",
199 "",
200 "Response bytes will vary in length depending on state of system",
201 "0x89",
Patrick Williams20f38712022-12-08 06:18:26 -0600202 "error response byte when host is powered off",
Nagarjune94e5402022-01-19 15:26:27 -0500203 ]
nagarjunb22cfb2c412022-03-15 15:49:27 +0530204 },
Patrick Williams20f38712022-12-08 06:18:26 -0600205 "Device ID": {
206 "Get": [
chithrag8a17c492022-03-01 12:53:44 +0000207 # raw command, error response, error code
208 "0x06 0x01",
209 "Error: Unable to establish IPMI v2 / RMCP+ session",
210 "0xc7",
nagarjunb22cfb2c412022-03-15 15:49:27 +0530211 ]
212 },
Patrick Williams20f38712022-12-08 06:18:26 -0600213 "Cold Reset": {
214 "reset": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530215 # raw command
216 "0x06 0x02"
217 ]
218 },
Patrick Williams20f38712022-12-08 06:18:26 -0600219 "lan_parameters": {
220 "get_ip": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530221 # raw command
Nagarjun B26499142023-02-16 15:20:14 +0530222 "0x0c 0x02 0x01 0x03 0 0",
nagarjunb22cfb2c412022-03-15 15:49:27 +0530223 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600224 "get_ip_src": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530225 # raw command
Nagarjun B26499142023-02-16 15:20:14 +0530226 "0x0c 0x02 0x01 0x04 0 0",
nagarjunb22cfb2c412022-03-15 15:49:27 +0530227 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600228 "get_dot1q": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530229 # raw command
Nagarjun B26499142023-02-16 15:20:14 +0530230 "0x0c 0x02 0x01 0x14 0 0",
Patrick Williams20f38712022-12-08 06:18:26 -0600231 ],
nagarjunb22cfb2c412022-03-15 15:49:27 +0530232 },
Patrick Williams20f38712022-12-08 06:18:26 -0600233 "SDR_Info": {
234 "get": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530235 # raw command
236 "0x04 0x20 1"
237 ]
238 },
Patrick Williams20f38712022-12-08 06:18:26 -0600239 "Chassis_status": {
240 "get": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530241 # raw command
242 "0x00 0x01"
243 ]
244 },
Patrick Williams20f38712022-12-08 06:18:26 -0600245 "SEL_Info": {
246 "get": [
nagarjunb22cfb2c412022-03-15 15:49:27 +0530247 # raw command
248 "0x0a 0x40"
249 ]
250 },
Patrick Williams20f38712022-12-08 06:18:26 -0600251 "Watchdog": {
leetde9356e2022-03-23 01:39:29 +0000252 # Command action type
Patrick Williams20f38712022-12-08 06:18:26 -0600253 "Get": [
leetde9356e2022-03-23 01:39:29 +0000254 # raw command, expected output(s), comment
255 "0x06 0x25",
256 "05 00 00 00 64 00",
257 "don't log bit enabled",
258 "85 00 00 00 64 00",
259 "don't log bit disabled",
260 "05 00 00 00 64 00",
261 "stop bit stop",
262 "45 00 00 00 64 00",
263 "stop bit resume",
264 "01 00 00 00 64 00",
265 "timer use FRB2",
266 "02 00 00 00 64 00",
267 "timer use POST",
268 "03 00 00 00 64 00",
269 "timer use OS",
270 "04 00 00 00 64 00",
271 "timer use SMS",
272 "05 00 00 00 64 00",
273 "timer use OEM",
274 "05 00 00 00 64 00",
275 "pre-timeout interrupt None",
276 "05 20 00 00 64 00",
277 "pre-timeout interrupt NMI",
278 "05 00 00 00 64 00",
279 "timeout action None",
280 "05 01 00 00 64 00",
281 "timeout action Reset",
282 "05 02 00 00 64 00",
283 "timeout action PowerDown",
284 "05 03 00 00 64 00",
285 "timeout action PowerCycle",
286 "01 00 00 02 00 00",
287 "timeout flag FRB2",
288 "02 00 00 04 00 00",
289 "timeout flag POST",
290 "03 00 00 08 00 00",
291 "timeout flag OS",
292 "04 00 00 10 00 00",
293 "timeout flag SMS",
294 "05 00 00 20 00 00",
295 "timeout flag OEM",
296 "05 00 00 00 30 35 30 35",
297 "Get should return 13.6 seconds",
298 "05 00 00 00 ff ff ff ff",
299 "Bit 6 not set when timer stopped",
300 "0x06 0x25 0x00",
301 "Get with one extra byte",
302 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600303 "Set": [
leetde9356e2022-03-23 01:39:29 +0000304 # raw command, expected output, comment
305 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
306 "none",
307 "don't log bit enabled",
308 "0x06 0x24 0x85 0x00 0x00 0x00 0x64 0x00",
309 "none",
310 "don't log bit disabled",
311 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
312 "none",
313 "stop bit stop",
314 "0x06 0x24 0x45 0x00 0x00 0x00 0x64 0x00",
315 "none",
316 "stop bit resume",
317 "0x06 0x24 0x01 0x00 0x00 0x00 0x64 0x00",
318 "none",
319 "timer use FRB2",
320 "0x06 0x24 0x02 0x00 0x00 0x00 0x64 0x00",
321 "none",
322 "timer use POST",
323 "0x06 0x24 0x03 0x00 0x00 0x00 0x64 0x00",
324 "none",
325 "timer use OS",
326 "0x06 0x24 0x04 0x00 0x00 0x00 0x64 0x00",
327 "none",
328 "timer use SMS",
329 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
330 "none",
331 "timer use OEM",
332 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
333 "none",
334 "pre-timeout interrupt None",
335 "0x06 0x24 0x05 0x20 0x00 0x00 0x64 0x00",
336 "none",
337 "pre-timeout interrupt NMI",
338 "0x06 0x24 0x05 0x00 0x00 0x00 0x64 0x00",
339 "none",
340 "timeout action None",
341 "0x06 0x24 0x05 0x01 0x00 0x00 0x64 0x00",
342 "none",
343 "timeout action Reset",
344 "0x06 0x24 0x05 0x02 0x00 0x00 0x64 0x00",
345 "none",
346 "timeout action PowerDown",
347 "0x06 0x24 0x05 0x03 0x00 0x00 0x64 0x00",
348 "none",
349 "timeout action PowerCycle",
350 "0x06 0x24 0x01 0x00 0x00 0x3e 0x00 0x00",
351 "none",
352 "timeout flag FRB2",
353 "0x06 0x24 0x02 0x00 0x00 0x3e 0x00 0x00",
354 "none",
355 "timeout flag POST",
356 "0x06 0x24 0x03 0x00 0x00 0x3e 0x00 0x00",
357 "none",
358 "timeout flag OS",
359 "0x06 0x24 0x04 0x00 0x00 0x3e 0x00 0x00",
360 "none",
361 "timeout flag SMS",
362 "0x06 0x24 0x05 0x00 0x00 0x3e 0x00 0x00",
363 "none",
364 "timeout flag OEM",
365 "0x06 0x24 0x01 0x02 0x00 0x00 0x20 0x00",
366 "none",
367 "Power down",
368 "0x06 0x24 0x01 0x01 0x00 0x00 0x20 0x00",
369 "none",
370 "Hard reset",
371 "0x06 0x24 0x01 0x03 0x00 0x00 0x20 0x00",
372 "none",
373 "Power cycle",
374 "0x06 0x24 0x01 0x00 0x00 0x00 0x20 0x00",
375 "none",
376 "No action",
377 "0x06 0x24 0x05 0x00 0x00 0x3e 0x30 0x35",
378 "none",
379 "Set for 13.6 seconds",
380 "0x06 0x24 0x05 0x00 0x07 0x00 0x50 0x00",
381 "none",
382 "Pre-timeout interval passes",
383 "0x06 0x24 0x05 0x00 0x04 0x00 0x0A 0x00",
384 "none",
385 "Pre-timeout interval fails",
386 "0x06 0x24 0x05 0x00 0x00 0x20 0xFF 0xFF",
387 "none",
388 "Bit 6 not set when timer stopped",
389 "0x06 0x24 0x05 0x00 0x08 0x00 0x64",
390 "none",
391 "Set with one less byte",
392 "0x06 0x24 0x05 0x00 0x08 0x00 0x64 0x00 0x00",
393 "none",
394 "Set with one extra byte",
395 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600396 "Reset": [
leetde9356e2022-03-23 01:39:29 +0000397 # raw command, expected output, comment
398 "0x06 0x22",
399 "none",
400 "Reset watchdog timer",
401 "0x06 0x22 0x00",
402 "none",
403 "Reset watchdog timer with extra byte",
404 "0x06 0x22",
405 "none",
406 "Reset watchdog timer without initialized watchdog",
Patrick Williams20f38712022-12-08 06:18:26 -0600407 ],
chithrag782ad282022-03-12 10:12:40 +0000408 },
Patrick Williams20f38712022-12-08 06:18:26 -0600409 "SOL": {
410 "Set_SOL": [
George Keishinge635ddc2022-12-08 07:38:02 -0600411 # raw command, expected output(s), comment
Patrick Williams20f38712022-12-08 06:18:26 -0600412 "Invalid value",
413 "Valid values are serial, 9.6 19.2, 38.4, 57.6 and 115.2",
George Keishinge635ddc2022-12-08 07:38:02 -0600414 ]
415 },
Patrick Williams20f38712022-12-08 06:18:26 -0600416 "Get SDR": {
417 "Get": [
chithrag782ad282022-03-12 10:12:40 +0000418 # Get SDR raw command without Reservation ID.
419 "0x0a 0x23 0x00 0x00 0x00 0x00 0x00 0xff",
420 # Netfunction and cmd.
421 "0x0a 0x23",
422 # Record ID offset and bytes to read.
nagarjunb228ea859e2022-07-12 21:39:51 +0530423 "0x01 0x0f",
chithrag782ad282022-03-12 10:12:40 +0000424 # Raw command To Get SDR Partial without Reservation ID.
Patrick Williams20f38712022-12-08 06:18:26 -0600425 "0x0a 0x23 0x00 0x00 0x00 0x00 0x01 0x0f",
chithragdc5679e2022-03-01 11:51:41 +0000426 ],
chithraga6be41e2022-03-01 13:20:23 +0000427 },
Patrick Williams20f38712022-12-08 06:18:26 -0600428 "Get": {
429 "POH_Counter": [
chithraga6be41e2022-03-01 13:20:23 +0000430 # raw command, error response
Patrick Williams20f38712022-12-08 06:18:26 -0600431 "0x00 0x0f",
432 "Error: Unable to establish IPMI v2 / RMCP+ session",
chithraga6be41e2022-03-01 13:20:23 +0000433 ]
chithrag782ad282022-03-12 10:12:40 +0000434 },
Patrick Williams20f38712022-12-08 06:18:26 -0600435 "Device_SDR": {
436 "Get_Info": [
chithrag782ad282022-03-12 10:12:40 +0000437 # raw command, expected output(s), comment
438 "0x04 0x20 0x00",
439 "0x04 0x20 0x01",
440 "rsp=0xc7",
441 "Request data length invalid",
442 "rsp=0xd4",
443 "Insufficient privilege level",
444 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600445 "Get": [
chithrag782ad282022-03-12 10:12:40 +0000446 # raw command, expected output(s), comment
447 "0x04 0x21",
448 "0x00 0x00 0x00 0xff",
449 "rsp=0xc7",
450 "Request data length invalid",
451 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600452 "Reserve_Repository": [
chithrag782ad282022-03-12 10:12:40 +0000453 # raw command, expected output(s), comment
454 "0x04 0x22",
455 "rsp=0xc7",
456 "Request data length invalid",
457 "rsp=0xd4",
458 "Insufficient privilege level",
459 "Reservation cancelled or invalid",
Patrick Williams20f38712022-12-08 06:18:26 -0600460 ],
chithrag015f7872022-03-21 09:42:01 +0000461 },
Patrick Williams20f38712022-12-08 06:18:26 -0600462 "System_Info": {
463 "param0_Set_In_Progress": {
464 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000465 # raw command, expected output(s)
466 "0x06 0x59 0x00 0x00 0x00 0x00",
467 "Request data length invalid",
468 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600469 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000470 # raw command, expected output(s)
ganesanbfc0c35a2022-08-04 07:31:15 +0000471 "0x06 0x58 0x00",
chithrag015f7872022-03-21 09:42:01 +0000472 "Request data length invalid",
473 "Invalid data field in request",
474 ],
475 },
Patrick Williams20f38712022-12-08 06:18:26 -0600476 "param1_System_Firmware_Version": {
477 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000478 # raw command, expected output(s)
479 "0x06 0x59 0x00 0x01 0x00 0x00",
480 "Request data length invalid",
481 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600482 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000483 # raw command, expected output(s)
484 "0x06 0x58 0x01 0x00 0x00 0x0e",
485 "Invalid data field in request",
486 ],
487 },
Patrick Williams20f38712022-12-08 06:18:26 -0600488 "param2_System_Name": {
489 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000490 # raw command, expected output(s)
491 "0x06 0x59 0x00 0x02 0x00 0x00",
492 "Request data length invalid",
493 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600494 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000495 # raw command, expected output(s)
496 "0x06 0x58 0x02 0x00 0x00 0x0e",
497 "Invalid data field in request",
498 ],
499 },
Patrick Williams20f38712022-12-08 06:18:26 -0600500 "param3_Primary_Operating_System_Name": {
501 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000502 # raw command, expected output(s)
503 "0x06 0x59 0x00 0x03 0x00 0x00",
504 "Request data length invalid",
505 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600506 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000507 # raw command, expected output(s)
508 "0x06 0x58 0x03 0x00 0x00 0x0e",
509 "Invalid data field in request",
510 ],
511 },
Patrick Williams20f38712022-12-08 06:18:26 -0600512 "param4_Operating_System_Name": {
513 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000514 # raw command, expected output(s)
515 "0x06 0x59 0x00 0x04 0x00 0x00",
516 "Request data length invalid",
517 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600518 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000519 # raw command, expected output(s)
520 "0x06 0x58 0x04 0x00 0x00 0x0e",
521 "Invalid data field in request",
522 ],
523 },
Patrick Williams20f38712022-12-08 06:18:26 -0600524 "param5_Present_OS_Version_number": {
525 "Get": [
chithrag015f7872022-03-21 09:42:01 +0000526 # raw command, expected output(s)
527 "0x06 0x59 0x00 0x05 0x00 0x00",
528 "Request data length invalid",
529 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600530 "Set": [
chithrag015f7872022-03-21 09:42:01 +0000531 # raw command, expected output(s)
532 "0x06 0x58 0x05 0x00 0x00 0x0e",
533 "Invalid data field in request",
Patrick Williams20f38712022-12-08 06:18:26 -0600534 ],
535 },
nagarjunb2298450742022-04-19 12:00:02 +0530536 },
Patrick Williams20f38712022-12-08 06:18:26 -0600537 "Get Channel Auth Cap": {
538 "get": [
nagarjunb2298450742022-04-19 12:00:02 +0530539 # raw command
540 "0x06 0x38",
541 ]
542 },
Patrick Williams20f38712022-12-08 06:18:26 -0600543 "Cipher Suite": {
544 "get": [
nagarjunb227fabf792022-04-19 11:09:29 +0530545 # raw command, supported algorithm
546 "0x06 0x54",
547 "03 44 81",
548 # 03 - HMAC-SHA256
549 # 44 - sha256_128
550 # 81 - aes_cbc_128
551 ]
552 },
Patrick Williams20f38712022-12-08 06:18:26 -0600553 "SDR": {
554 "Get": [
nagarjunb2287138e62022-04-19 16:49:16 +0530555 # Get SDR raw command without Reservation ID.
556 "0x0a 0x23 0x00 0x00 0x00 0x00 0x00 0xff",
557 # Netfunction and command.
558 "0x0a 0x23",
559 # Record ID offset and bytes to read.
560 "0x00 0x00 0x01 0x0f",
561 # Raw command To Get SDR Partial without reservation ID.
Patrick Williams20f38712022-12-08 06:18:26 -0600562 "0x0a 0x23 0x00 0x00 0x00 0x00 0x01 0x0f",
nagarjunb2287138e62022-04-19 16:49:16 +0530563 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600564 "Reserve SDR Repository": [
nagarjunb2287138e62022-04-19 16:49:16 +0530565 # raw command, expected output(s), comment
566 "0x0a 0x22",
567 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600568 "SDR Repository Info": [
nagarjunb2287138e62022-04-19 16:49:16 +0530569 # raw command.
570 "0x0a 0x20",
571 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600572 "Get SDR allocation Info": [
nagarjunb2287138e62022-04-19 16:49:16 +0530573 # raw command.
574 "0x0a 0x21"
575 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600576 "Delete SDR": [
nagarjunb2287138e62022-04-19 16:49:16 +0530577 # raw command.
578 "0x0a 0x26"
579 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600580 "Partially Add SDR": [
nagarjunb2287138e62022-04-19 16:49:16 +0530581 # raw command.
582 "0x0a 0x25"
Patrick Williams20f38712022-12-08 06:18:26 -0600583 ],
nagarjunb2287138e62022-04-19 16:49:16 +0530584 },
Patrick Williams20f38712022-12-08 06:18:26 -0600585 "FRU": {
586 "Inventory_Area_Info": [
ganesanbc288aff2022-05-19 19:55:47 +0530587 # raw command, expected output(s), comment
588 "0x0a 0x10",
589 "Invalid data field in request",
Patrick Williams20f38712022-12-08 06:18:26 -0600590 "Request data length invalid",
ganesanbc288aff2022-05-19 19:55:47 +0530591 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600592 "Read": [
ganesanbc288aff2022-05-19 19:55:47 +0530593 # raw command
594 "0x0a 0x11",
595 ],
Patrick Williams20f38712022-12-08 06:18:26 -0600596 "Write": [
ganesanbc288aff2022-05-19 19:55:47 +0530597 # raw command
598 "0x0a 0x12",
599 ],
600 },
George Keishingd2795d62018-02-04 23:12:23 -0600601}