op-test icon indicating copy to clipboard operation
op-test copied to clipboard

Support for running commands on EBMC

Open Anjali-Karamil opened this issue 2 years ago • 1 comments

Support for running commands on the EBMC of an LPAR is required to automate experiments which require running some commands on the EBMC console of the LPAR. For example, I would like to automate an Energy management related experiment using op-test where I need to run the following commands on the EBMC of the LPAR:

  1. To set system frequency - busctl call org.open_power.OCC.Control /org/open_power/control/occ0 org.open_power.OCC.PassThrough SetMode yq 11 <frequency_MHz> For example, to set the frequency to 3250 MHz, the command would be busctl call org.open_power.OCC.Control /org/open_power/control/occ0 org.open_power.OCC.PassThrough SetMode yq 11 3250
  2. To get the power consumed by a component - busctl get-property org.open_power.OCC.Control /xyz/openbmc_project/sensors/power/<sensor_name> xyz.openbmc_project.Sensor.Value Value For example, to get the power consumed by the IO link A, the command would be busctl get-property org.open_power.OCC.Control /xyz/openbmc_project/sensors/power/io_a_power xyz.openbmc_project.Sensor.Value Value The possible values for <sensor_name> are - p1_cache_power, p1_power, io_a_power, p1_mem_power, proc0_core7_1_temp, total_power, p0_mem_power, storage_a_power, fans_a_power, p0_power.
  3. To sleep for some time period. For example, sleep 60 to sleep for one minute on the BMC after the benchmark has been started in the LPAR before measuring the power consumed.

Anjali-Karamil avatar Aug 02 '23 18:08 Anjali-Karamil

@Anjali-Karamil can we close this issue, hope you got unblocked now

PraveenPenguin avatar Jul 10 '24 05:07 PraveenPenguin

Yes, the issue can be closed now. I am able to use the feature to make progress. Thank you for working on this.

Anjali-Karamil avatar Jul 12 '24 03:07 Anjali-Karamil