blob: 769e185ddd65f0b8058643d73202319aeabc9e35 [file] [log] [blame]
Sridevi Ramesh0c8c4ce2017-02-11 01:28:36 -06001*** Settings ***
2Documentation This module is for OS checkstop opertions.
3Resource ../../lib/rest_client.robot
4Resource ../../lib/utils.robot
5Library OperatingSystem
6
7*** Keywords ***
8
9Getscom Operations On OS
10 [Documentation] Executes getscom command on OS
11 ... with the given input command.
12 [Arguments] ${input_cmd}
13 #input_cmd -l|--list-chips
14 # -c|--chip <chip-id> <addr>
15
16 ${output} ${stderr}= Execute Command getscom ${input_cmd}
17 ... return_stderr=True
18 Should Be Empty ${stderr}
19 [Return] ${output}
20
21Gard Operations On OS
22 [Documentation] Executes opal-gard command on OS
23 ... with the given input command.
24 [Arguments] ${input_cmd}
25 #input_cmd list/clear all/show <gard_record_id>
26
27 ${output} ${stderr}= Execute Command opal-gard ${input_cmd}
28 ... return_stderr=True
29 Should Be Empty ${stderr}
30 [Return] ${output}
31
32Putscom Through OS
33 [Documentation] Executes putscom command on OS
34 ... with the given input arguments.
35 [Arguments] ${chip_id} ${fru} ${address}
36 #chip_id processor ID
37 #fru FRU value
38 #address chip address
39
40 ${cmd}= Catenate putscom -c 0x${chip_id} 0x${fru} 0x${address}
41 Start Command ${cmd}