op-test
op-test copied to clipboard
Support for running commands on EBMC
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:
- 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 bebusctl call org.open_power.OCC.Control /org/open_power/control/occ0 org.open_power.OCC.PassThrough SetMode yq 11 3250 - 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 ValueFor example, to get the power consumed by the IO link A, the command would bebusctl get-property org.open_power.OCC.Control /xyz/openbmc_project/sensors/power/io_a_power xyz.openbmc_project.Sensor.Value ValueThe 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. - To
sleepfor some time period. For example,sleep 60to sleep for one minute on the BMC after the benchmark has been started in the LPAR before measuring the power consumed.
@Anjali-Karamil can we close this issue, hope you got unblocked now
Yes, the issue can be closed now. I am able to use the feature to make progress. Thank you for working on this.