Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for running commands on EBMC #769

Open
Anjali-Karamil opened this issue Aug 2, 2023 · 0 comments
Open

Support for running commands on EBMC #769

Anjali-Karamil opened this issue Aug 2, 2023 · 0 comments
Assignees

Comments

@Anjali-Karamil
Copy link

Anjali-Karamil commented Aug 2, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants