These are chat archives for Spirals-Team/powerapi

11th
Jun 2015
Daniel Feitosa
@feitosa-daniel
Jun 11 2015 10:23
Hi, I'm also trying to use CLI, and followed your steps. However, I got the following message when I tried to execute it: "unknown cli option modules". I executed the following command (from the stage directory): "./bin/powerapi modules cpu-simple monitor --frequency 1000 --targets 83663 --console". Thanks for helping out.
Maxime Colmant
@mcolmant
Jun 11 2015 12:36
Hello, one option is missing for the aggregation that you want to apply for the given monitoring. Here, you can use the CLI as following: ./bin/powerapi modules cpu-simple monitor --frequency 1000 --targets 83663 --agg max --console
Daniel Feitosa
@feitosa-daniel
Jun 11 2015 12:43

Thanks, but I'm still getting the same error: "unknown cli option modules". Am I using a different version maybe? I've cloned the repository available at "https://github.com/Spirals-Team/powerapi.git".

I don't know whether or not it makes difference, but I'm using the following versions:

  • Java 1.8
  • Scala 2.11.5
  • SBT 0.14
Maxime Colmant
@mcolmant
Jun 11 2015 12:58
Do you use the release 3.2? We made some minor changes in the CLI. It seems that the Wiki is not up to date. If you want more informations, you can use ./bin/powerapi to show the help informations. If you cloned the master branch, you have got the version 3.2. Thus, try this command: ./powerapi modules procfs-cpu-simple monitor --frequency 1000 --targets 83663 --agg max --console
Daniel Feitosa
@feitosa-daniel
Jun 11 2015 13:14

Yes, I have the release 3.2. It worked.
Thanks a lot!

Btw, I tried to check the help information by using "./bin/powerapi -h", but it didn't have any example execution or information over the modules. Therefore, I just noticed that the two helps ("./bin/powerapi -h" and "./bin/powerapi") are different, and seem to be complementary to each other.