summaryrefslogtreecommitdiffstats
path: root/obmcutil
Commit message (Collapse)AuthorAgeFilesLines
* obmcutil: add more info to state subcommandAlexander Filippov2019-04-031-2/+9
| | | | | | | | | | | | | | | | | Adds new subcommand to request the OS state. Adds bootprogress and osstate to the output of state/status subcommands. Tested: The output of `obmcutil state` must look like: ``` CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.Off CurrentHostState : xyz.openbmc_project.State.Host.HostState.Off BootProgress : xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive ``` Change-Id: I59937986317fe2ac487d355a627de1070ba813f8 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
* obmcutil: Add chassiskill optionAnthony Wilson2019-02-141-1/+4
| | | | | Change-Id: I9b8289e433bfcf918d430c012ec8879b58e523b0 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* obmcutil: Add wait/timeout optionAnthony Wilson2018-10-251-3/+79
| | | | | | | | | | | | The option to block/wait for a state transition to complete has been added. The transition is expected to occur within a set timeout window and will terminate if the desired state has not been observed within that window. It may be possible for the state transition to complete outside this window, but it is assumed to be a failure. Change-Id: Icb9ff29f51b8712469fd9957b7e4b287704cb314 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* obmcutil: Update argument handlingAnthony Wilson2018-10-231-5/+21
| | | | | | | | | In anticipation of new options being added to the program, this change should make it easier and cleaner to integrate those options. Change-Id: Ie996c34ef9c8493d68bc17d6e7a6d39a537ba2cd Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* obmcutil: Added {power,chassis}{on,off} optionsAnthony Wilson2018-10-231-1/+39
| | | | | | | | | | | | | | | | | The base functions of these options have been implemented, so power ons/offs can be performed. However, the 'verbose' and 'wait' functionality associated with them from the python version of the script has not been implemented here (yet). So there is no error checking in the case of on/off failures at this moment. 'chassiskill' has also not been implemented here and is planned to be implemented in its own script. The option may be added to this script as a call to the other script when that gets implemented. Change-Id: I739f0a74e90fb4727fd3333d2a601da1dc49799c Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* obmcutil: Add 'power' optionAnthony Wilson2018-10-231-2/+19
| | | | | Change-Id: I50dea20337599d33a6f90aad3d39df4874228936 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* obmcutil: Add bootprogress optionAnthony Wilson2018-10-231-2/+9
| | | | | Change-Id: I6deccd1210a528a92f429935b8a043b922cfbcf2 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* obmcutil: Add help optionAnthony Wilson2018-10-231-1/+17
| | | | | Change-Id: I8b477a165d984f16fbb94a0b94d249ccb52ec378 Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
* obmcutil: Rewrite in sh and move to phosphor-state-managerAnthony Wilson2018-10-231-0/+61
Due to space, security, and performance concerns obmcutil is being converted to shell script. Have implemented the basic state interface queries (bmc, chassis, and host). Moved to phosphor-state-manager repo as this tool mostly deals with setting and querying state interfaces. Change-Id: Ib42da06a45e386dd1cc150ac85b638bdf87bdb9d Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
OpenPOWER on IntegriCloud