Sridevi Ramesh | 0c8c4ce | 2017-02-11 01:28:36 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This module is for OS checkstop opertions. |
| 3 | Resource ../../lib/rest_client.robot |
| 4 | Resource ../../lib/utils.robot |
| 5 | Library OperatingSystem |
| 6 | |
| 7 | *** Keywords *** |
| 8 | |
| 9 | Getscom 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 | |
| 21 | Gard 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 | |
| 32 | Putscom 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} |